[英]Visual Studio 2013, IIS, IIS Express - bug?
An ASP.NET C# project would't load with error: ASP.NET C#项目不会加载并显示错误:
The site for the URL ' http://localhost:51752/ ', configured for Web project 'AndroidWS', exists on both the local IIS web server and the IIS Express web server. 为Web项目'AndroidWS'配置的URL'http :// localhost:51752 / '的站点在本地IIS Web服务器和IIS Express Web服务器上均存在。 You need to use IIS Manager to change this site's binding(s) in IIS.
您需要使用IIS管理器来更改IIS中此站点的绑定。
If I delete 如果我删除
<site name="AndroidWS" id="1"> ... </site>
section from IIS Express configuration file, I get another kind of error: 在IIS Express配置文件中,出现另一种错误:
The URL ' http://localhost:51752/ ' for Web project 'AndroidWS' is configured to use IIS Express as the web server but the URL is currently configured on the local IIS web server. Web项目'AndroidWS'的URL'http :// localhost: 51752 /'已配置为使用IIS Express作为Web服务器,但是当前在本地IIS Web服务器上配置了URL。 To open this project, you must use IIS Manager to remove the bindings using this URL from the local IIS web server.
若要打开此项目,必须使用IIS管理器从本地IIS Web服务器中删除使用此URL的绑定。
But this project is not configured to use IIS Express: 但是此项目未配置为使用IIS Express:
<UseIISExpress>false</UseIISExpress>
<UseIIS>false</UseIIS>
The only way to open this project is to set: 打开此项目的唯一方法是设置:
<UseIIS>true</UseIIS>
Ok, it is a workaround, but I am not very comfortable with it because of our team work process - I have to set this parameter back to false before every check-in. 好的,这是一种解决方法,但是由于我们的团队工作流程,我对此不太满意-我必须在每次入住之前将此参数设置回false。
PS. PS。 This situation repeats for all projects - Visual Studio says that they are configured to use IIS Express, but they are not.
所有项目都重复这种情况-Visual Studio表示将它们配置为使用IIS Express,但事实并非如此。
Deleting the csproj.user did the trick. 删除csproj.user就可以了。 The message
讯息
"xxx is configured to use IIS Express as the web server but the URL is currently configured on the local IIS web server. To open this project, you must use IIS Manager to remove the bindings using this URL from the local IIS web server."
“ xxx被配置为使用IIS Express作为Web服务器,但当前在本地IIS Web服务器上配置了URL。要打开此项目,必须使用IIS管理器从本地IIS Web服务器上使用此URL删除绑定。”
is misleading as the conflicting info is not in IIS but in the csproj.user file. 之所以会产生误导,是因为冲突的信息不在IIS中,而在csproj.user文件中。
从IIS管理器中删除了所有站点,“默认网站”除外,现在一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.