Web Project使用IIS,但我得到关于配置IISExpress的错误 [英] Web Project using IIS, but I get error about configuration of IISExpress

查看:1166
本文介绍了Web Project使用IIS,但我得到关于配置IISExpress的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试加载使用端口主机头名称的项目。
我的主机文件有
127.0.0.1 mysite



当试图在VS2010中加载项目时,得到以下错误。


Web项目Client.Web的URL http:// mysite $ b配置为使用IIS Express作为Web服务器,但URL是
当前在本地IIS Web服务器上配置。要打开这个
项目,必须使用IIS管理器从本地IIS Web服务器中使用这个
URL来删除绑定。


问题是,我没有使用IIS Express和网站被配置为使用IIS。我有一个在iis中创建的网站使用主机头名称。

我有其他web项目作为应用程序运行在端口81上 http:// mysite / MyService ,不会导致此问题。



我可以如何使项目运行在端口mysite root使用IIS,仍然使用VS2010?



如果我只使用一个端口号,同样的事情发生,例如:127.0.0.0:81

解决方案

旧问题,但这里有一个答案:



在Client.Web.csproj或Client.Web.csproj.user文件中,搜索UseIISExpress将该值设置为 false 。这将是在这两个文件之一。



然后VS2010应该能够打开和运行/调试项目。


I'm trying to load a project that uses port host header names. My host file has 127.0.0.1 mysite

I get the following error when attempting to load the project in VS2010.

The URL 'http://mysite' for Web project 'Client.Web' 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.

The issue is is that I'm not using IIS Express and the web site is configured to use IIS. I have a site created within iis to use host header names.

I have other web projects that are running as an application on port 81 ex http://mysite/MyService, that do not cause this issue.

What can I do to get the project to run under port mysite root using IIS and still use VS2010?

The same thing happens if I just use a port number, ex: 127.0.0.0:81

解决方案

Old question, but here's an answer:

In either your Client.Web.csproj or Client.Web.csproj.user file, search for "UseIISExpress" and set that value to false. It'll be in one of those two files.

Then VS2010 should be able to open and run/debug the project.

这篇关于Web Project使用IIS,但我得到关于配置IISExpress的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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