I want to make sure my local is matching the production environment closely and that means running IIS and not the ASP.NET development server that comes with Visual Web Developer express edition. What is the best way to do this?
我要确保本地的产品环境与生产环境匹配,这意味着运行IIS而不是ASP。与Visual Web Developer express edition一起提供的NET开发服务器。最好的方法是什么?
2 个解决方案
#1
3
In Visual Studio you right-click the project, select Properties then Web and change it to use Local IIS. It seems the process is similar for VWD, but there there is a Properties node you open instead. I don't have VWD installed right now so can't check to see if this method is indeed accurate but the article is recent so I assume that it is.
在Visual Studio中,右键单击项目,选择Properties然后Web,并将其更改为使用本地IIS。看起来这个过程与VWD类似,但是有一个属性节点可以打开。我现在没有安装VWD,所以不能检查这个方法是否准确,但是这篇文章是最近的,所以我假设它是。
#2
1
First make sure you have installed and configured IIS server. To check whether IIS server is installed: Run->inetmgr press enter. To know how to install and configure IIS server check the following Link: http://chalaki.com/install-iis6-windows-xp-professional-sp3-setup-run-csharp-cgi/425/
首先确保已经安装并配置了IIS服务器。检查IIS服务器是否安装:运行->inetmgr按enter。要了解如何安装和配置IIS服务器,请查看以下链接:http://chalaki.com/install-iis6-windows-xp-professional-sp3-setup-run-csharp-cgi/425/
To develop Website using Visual developer 2008 with IIS instead of "ASP.NET Development Server", In the new website window under "Location" click on "Browse" to see the different Server options including IIS Server. User can select the server as IIS server instead of "File System", then the "Location" option will be "HTTP" instead of "File System".
使用Visual developer 2008开发网站,使用IIS而不是“ASP”。NET开发服务器“,在新的网站窗口“位置”下点击“浏览”查看不同的服务器选项,包括IIS服务器。用户可以选择服务器作为IIS服务器而不是“文件系统”,那么“位置”选项将是“HTTP”而不是“文件系统”。
In Visual developer 2008 under Properties->Start Option->Server->"Use local IIS server" option is not shown, Even though IIS server was installed and configured successfully. the only options shown are "use default server" and " Use custom server with base URL".
在Visual developer 2008中,在属性—>启动选项—>服务器—>“使用本地IIS服务器”选项下没有显示,即使IIS服务器已成功安装和配置。显示的唯一选项是“使用默认服务器”和“使用带有基本URL的自定义服务器”。
So in Visual developer 2008 to run on IIS server(If IIS server is installed), Need do the following:
因此,在Visual developer 2008中,要在IIS服务器上运行(如果安装了IIS服务器),需要执行以下操作:
New Website -> Under Locations Click on "Browse" -> Click on "Local IIS" and then select the "IIS Virtual Directory"(IIS vitual Directory which is directory created by the user while configuring IIS server) -> Open
新网站->下位置点“浏览”->点“本地IIS”,然后选择“IIS虚拟目录”(IIS vitual目录,是用户在配置IIS服务器时创建的目录)->打开
While Running/debugging, the server which you selected while creating the website, the same server will used to open the website, that is while creating the website if you selected "IIS Server" then the website will be opened though IIS server.
在运行/调试时,您在创建网站时选择的服务器,将使用相同的服务器来打开网站,也就是在创建网站时,如果您选择了“IIS服务器”,那么该网站将通过IIS服务器打开。
One more thing is, while installing Visual developer 2008 and IIS server, If you installed IIS server after installing Visual studio then you need to do the following before creating new website:
还有一件事是,在安装Visual developer 2008和IIS服务器时,如果安装了Visual studio之后安装了IIS服务器,那么在创建新网站之前需要进行以下操作:
Run ->cmd press enter (then enter the following Command)-> C:\WINDOWS\Microsoft.NET\Framework\Version aspnet_regiis -i press Enter then you get message after 3 seconds "ASP.net was installed successfully". (*Version will be v2.0.50727 in most cases)
- >运行cmd按enter(然后输入以下命令)- > C:\WINDOWS\Microsoft.网络\框架\版本aspnet_regiis -我按回车,然后你在3秒后得到消息“ASP.net成功安装”。(*版本大多为v2.0.50727)
#1
3
In Visual Studio you right-click the project, select Properties then Web and change it to use Local IIS. It seems the process is similar for VWD, but there there is a Properties node you open instead. I don't have VWD installed right now so can't check to see if this method is indeed accurate but the article is recent so I assume that it is.
在Visual Studio中,右键单击项目,选择Properties然后Web,并将其更改为使用本地IIS。看起来这个过程与VWD类似,但是有一个属性节点可以打开。我现在没有安装VWD,所以不能检查这个方法是否准确,但是这篇文章是最近的,所以我假设它是。
#2
1
First make sure you have installed and configured IIS server. To check whether IIS server is installed: Run->inetmgr press enter. To know how to install and configure IIS server check the following Link: http://chalaki.com/install-iis6-windows-xp-professional-sp3-setup-run-csharp-cgi/425/
首先确保已经安装并配置了IIS服务器。检查IIS服务器是否安装:运行->inetmgr按enter。要了解如何安装和配置IIS服务器,请查看以下链接:http://chalaki.com/install-iis6-windows-xp-professional-sp3-setup-run-csharp-cgi/425/
To develop Website using Visual developer 2008 with IIS instead of "ASP.NET Development Server", In the new website window under "Location" click on "Browse" to see the different Server options including IIS Server. User can select the server as IIS server instead of "File System", then the "Location" option will be "HTTP" instead of "File System".
使用Visual developer 2008开发网站,使用IIS而不是“ASP”。NET开发服务器“,在新的网站窗口“位置”下点击“浏览”查看不同的服务器选项,包括IIS服务器。用户可以选择服务器作为IIS服务器而不是“文件系统”,那么“位置”选项将是“HTTP”而不是“文件系统”。
In Visual developer 2008 under Properties->Start Option->Server->"Use local IIS server" option is not shown, Even though IIS server was installed and configured successfully. the only options shown are "use default server" and " Use custom server with base URL".
在Visual developer 2008中,在属性—>启动选项—>服务器—>“使用本地IIS服务器”选项下没有显示,即使IIS服务器已成功安装和配置。显示的唯一选项是“使用默认服务器”和“使用带有基本URL的自定义服务器”。
So in Visual developer 2008 to run on IIS server(If IIS server is installed), Need do the following:
因此,在Visual developer 2008中,要在IIS服务器上运行(如果安装了IIS服务器),需要执行以下操作:
New Website -> Under Locations Click on "Browse" -> Click on "Local IIS" and then select the "IIS Virtual Directory"(IIS vitual Directory which is directory created by the user while configuring IIS server) -> Open
新网站->下位置点“浏览”->点“本地IIS”,然后选择“IIS虚拟目录”(IIS vitual目录,是用户在配置IIS服务器时创建的目录)->打开
While Running/debugging, the server which you selected while creating the website, the same server will used to open the website, that is while creating the website if you selected "IIS Server" then the website will be opened though IIS server.
在运行/调试时,您在创建网站时选择的服务器,将使用相同的服务器来打开网站,也就是在创建网站时,如果您选择了“IIS服务器”,那么该网站将通过IIS服务器打开。
One more thing is, while installing Visual developer 2008 and IIS server, If you installed IIS server after installing Visual studio then you need to do the following before creating new website:
还有一件事是,在安装Visual developer 2008和IIS服务器时,如果安装了Visual studio之后安装了IIS服务器,那么在创建新网站之前需要进行以下操作:
Run ->cmd press enter (then enter the following Command)-> C:\WINDOWS\Microsoft.NET\Framework\Version aspnet_regiis -i press Enter then you get message after 3 seconds "ASP.net was installed successfully". (*Version will be v2.0.50727 in most cases)
- >运行cmd按enter(然后输入以下命令)- > C:\WINDOWS\Microsoft.网络\框架\版本aspnet_regiis -我按回车,然后你在3秒后得到消息“ASP.net成功安装”。(*版本大多为v2.0.50727)