有关VS.NET2005 IDE和ASP.NET 2.0的问题 [英] Question with regards to VS.NET2005 IDE and ASP.NET 2.0

查看:58
本文介绍了有关VS.NET2005 IDE和ASP.NET 2.0的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我明白默认VS2005使用ASP.NET开发服务器来运行和测试ASP.NET应用程序。我们是否有可能在新的IDE环境中使用IIS进行ASP.NET应用程序调试?


谢谢,


Alan

Hi,

I understand that be default VS2005 uses the ASP.NET development server to
run and test ASP.NET applications. Is it possible that we use IIS for
ASP.NET application debugging in new IDE environment?

Thank you,

Alan

推荐答案

是的,


创建Web应用程序时,您可以选择在

IIS中创建它。这就是我创建所有网站的方式(我在我的机器上使用IIS中的虚拟网站

并将文件保存在一个单独的位置):


1.文件 - 新 - 网站

2.在新网站中打开的窗口设置位置下拉附近

窗口底部为HTTP

3.选择您选择的语言网站。

3.点击浏览按钮按钮。

4.在选择位置中窗口确保在左侧菜单中选择了本地IIS



5.单击右上角的文件夹图标创建新的虚拟目录。

6.将别名设置为您想要的网站名称。

7.浏览和/或创建文件夹以保存网站文件

您选择的位置。

8.点击确定按钮按钮。

9.点击网站中心列表中的新网站点击

突出显示它。

10.点击"开"按钮。

11.返回新网站窗口你应该看到类似的东西:
http:// localhost / [你的网站名称在这里] 。

12.点击确定按钮。


-

此致,


S. Justin Gengo,MCP

Web开发人员/程序员

www.aboutfortunate.com


混乱就是订单。

Nietzsche

" AM-SG" <人****** @ newsgroup.nospam>在留言中写道

新闻:%2 **************** @ TK2MSFTNGP14.phx.gbl ...
Yes,

When you create a web application you have the option to create it right in
IIS. This is how I create all of my websites (I use virtual sites within IIS
on my machine and keep the files in a folder in a separate location):

1. File - New - Website
2. In the "New Web Site" window that opens set the location drop down near
the bottom of the window to "HTTP"
3. Select the language of your choice for the website.
3. Click the "Browse" button.
4. In the "Choose Location" window make certain that Local IIS is selected
in the menu on the left.
5. Click the top right folder icon "Create New Virtual Directory".
6. Set the alias name to the name you want for the website.
7. Browse for and/or create the file folder to hold the website files in the
location of your choice.
8. Click the "OK" button.
9. Select the new website in the center list of websites by clicking on it
to highlight it.
10. Click the "Open" button.
11. Back in the "New Web Site" window you should see something like:
http://localhost/[your website name here].
12. Click the "OK" button.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"A.M-SG" <al******@newsgroup.nospam> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...


我理解默认VS2005使用ASP.NET开发服务器来运行和测试ASP.NET应用程序。是否有可能在新的IDE环境中使用IIS进行ASP.NET应用程序调试?

谢谢,

Alan
Hi,

I understand that be default VS2005 uses the ASP.NET development server to
run and test ASP.NET applications. Is it possible that we use IIS for
ASP.NET application debugging in new IDE environment?

Thank you,

Alan



嗨贾斯汀,


很高兴知道。有没有办法将现有的应用程序转换成IIS?


感谢您的帮助,

Alaln

S。 Justin Gengo <贾斯汀@ [no_spam_please] aboutfortunate.com>写在

消息新闻:uv ************** @ TK2MSFTNGP12.phx.gbl ...
Hi Justin,

That is good to know. Is there any way to convert an existing applications
to IIS?

Thank you for help,
Alaln
"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com> wrote in
message news:uv**************@TK2MSFTNGP12.phx.gbl...
是的,

创建Web应用程序时,您可以选择在IIS中正确创建它。这就是我创建所有网站的方式(我在我的机器上的IIS中使用虚拟网站,并将文件保存在一个单独的
位置):

1。文件 - 新 - 网站
2.在新网站中打开的窗口设置窗口底部附近的位置下拉到HTTP
3.选择您选择的网站语言。
3.点击浏览 ;按钮。
4.在选择位置中窗口确保在左侧菜单中选择了本地IIS。
5.单击右上角的文件夹图标创建新的虚拟目录。
6.将别名设置为你想要的网站名称。
7.浏览和/或创建文件夹,将网站文件保存在你选择的位置。
8.点击确定 ;按钮。
9.点击网站中心列表中的新网站点击
突出显示它。
10.点击打开按钮。按钮。
11.返回新网站窗口你应该看到类似的东西:
http:// localhost / [你的网站名称在这里] 。
12.点击确定。按钮。

-
真诚的,

S. Justin Gengo,MCP
网站开发人员/程序员

www.aboutfortunate.com

混乱无序。 ;
Nietzsche
AM-SG <人****** @ newsgroup.nospam>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP14.phx.gbl ...
Yes,

When you create a web application you have the option to create it right
in IIS. This is how I create all of my websites (I use virtual sites
within IIS on my machine and keep the files in a folder in a separate
location):

1. File - New - Website
2. In the "New Web Site" window that opens set the location drop down near
the bottom of the window to "HTTP"
3. Select the language of your choice for the website.
3. Click the "Browse" button.
4. In the "Choose Location" window make certain that Local IIS is selected
in the menu on the left.
5. Click the top right folder icon "Create New Virtual Directory".
6. Set the alias name to the name you want for the website.
7. Browse for and/or create the file folder to hold the website files in
the location of your choice.
8. Click the "OK" button.
9. Select the new website in the center list of websites by clicking on it
to highlight it.
10. Click the "Open" button.
11. Back in the "New Web Site" window you should see something like:
http://localhost/[your website name here].
12. Click the "OK" button.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"A.M-SG" <al******@newsgroup.nospam> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...


我明白默认情况下VS2005使用ASP.NET开发服务器来运行和测试ASP.NET应用程序。是否有可能在新的IDE环境中使用IIS进行ASP.NET应用程序调试?

谢谢,

Alan
Hi,

I understand that be default VS2005 uses the ASP.NET development server
to run and test ASP.NET applications. Is it possible that we use IIS for
ASP.NET application debugging in new IDE environment?

Thank you,

Alan




就我个人而言,我总是从ASP.NET文件系统应用程序开始,然后

手动挂钩IIS。 (使用ASP.NET开发服务器是非常危险的 - 你的代码将以比IIS更多的权限运行




手动挂钩IIS。只需在IIS中创建一个虚拟目录

Admin,例如 http:// localhost / MyApplication / 指向您的''网页

项目''。


返回VS2005并右键单击您的Web项目,然后从菜单中选择

Propery Pages。在启动选项下你应该能够选择一个自定义服务器并输入一个基本网址 - 选择该选项并且

输入 http:// localhost / MyApplication / 作为基本网址。


Bingo!


我的意思是发布关于ASP.NET开发的危险

服务器一段时间了......明天也许! :)


Josh
http:// www.thejoyofcode.com/

Personally I always start with ASP.NET File System application and then
manually hook up IIS. (Using the ASP.NET development server is
downright dangerous - your code would run with many more permissions
than you would under IIS)

To manually hook up IIS. Simply create a Virtual Directory in IIS
Admin, e.g. http://localhost/MyApplication/ pointing to your ''web
project''.

Go back into VS2005 and right click on your web project and choose
Propery Pages from the menu. Under startup options you should be able
to choose a custom server and enter a base url - choose that option and
enter http://localhost/MyApplication/ as your base url.

Bingo!

I''ve been meaning to post about the danger of the ASP.NET Development
Server for a while now... tomorrow maybe! :)

Josh
http://www.thejoyofcode.com/


这篇关于有关VS.NET2005 IDE和ASP.NET 2.0的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆