我想用的,而不是IIS前$ IIS 7 P $ PSS中的Visual Web Developer 2010想用、而不是、IIS、PSS

由网友(Sandm ° 旧颜)分享简介:我有一些麻烦的设置我的VWD 2010环境下我本地IIS 7.5,而不是IIS EX preSS运行。I am having some trouble setting up my vwd 2010 environment to run under my local iis 7.5 instead of iis exp...

我有一些麻烦的设置我的VWD 2010环境下我本地IIS 7.5,而不是IIS EX preSS运行。

I am having some trouble setting up my vwd 2010 environment to run under my local iis 7.5 instead of iis express.

每当我去项目属性,选择网络选项卡上,我在服务器选择本地IIS Web服务器。它在项目URL 的http://本地主机/ myprojectname

Whenever I go to the project properties and select the 'web' tab, I choose under Servers, 'Local iis web server'. It automatically puts in the Project URL http://localhost/myprojectname.

我点击创建虚拟目录,并谈到了这个警告,,,

I click Create Virtual Directory and it comes up with this warning,,,

无法创建虚拟目录。该网站OFR的网址的http://本地主机/ myprojectname 都存在本地IIS Web服务器和IIS防爆preSS Web服务器上。你需要编辑C:用户麦克文件 iisex preSS 设置对ApplicationHost.config文件由IIS EX preSS改变所使用的端口号或使用IIS管理器来改变网站结合(S)在IIS中。

'Unable to create the virtual directory. The site ofr the url http://localhost/myprojectname exists on both the local IIS Web server and the IIS Express web server. You need to edit the 'c:UsersMikeDocumentsiisexpressconfigapplicationhost.config' file to change the port number in use by iis express or use iis manager to change the sites binding(s) in iis.'

您的帮助是极大的AP preciated在解释为什么我不能使用内置的功能来使用,而不是IIS IIS 7.5 EX preSS。

Your help is greatly appreciated in explaining why I can't use the built in functionality to use iis 7.5 instead of iis express.

感谢你在前进。

推荐答案

这个问题可能发生,因为有一个站点设置在IISEx preSS绑定到端口80,这也被定期IIS。

This issue can happen because there is a site setup in IISExpress bound to port 80, which is also used by regular IIS.

开拓对ApplicationHost.config因为它提到,并期待这样的事情:

Open up the applicationhost.config as it mentions and look for something like:


<site name="SomeAppName-Site" id="15">
    <application path="/" applicationPool="Clr4IntegratedAppPool">
    <virtualDirectory path="/" physicalPath="C:UsersYourNameDocumentsMy Web SitesSomeProjectsWebSite" />
    </application>
    <bindings>
       <binding protocol="http" bindingInformation="*:80:localhost" />
    </bindings>
</site>

请注意的部分,上面写着:80 改变这对某些其它端口,以便它与80通过在IISEx preSS另一应用不共享,并且不使用。你可以查看其他网站的节点对ApplicationHost.config找到一个没用过,或尝试8081个开始。

Note the part that says :80 change this to some other port so it's not shared with 80, and not in use by another application in IISExpress. You can look over the other site nodes in applicationhost.config to find one not used, or try 8081 for starters.

阅读全文

相关推荐

最新文章