由于其配置,无法加载Web应用程序项目 [英] Unable to load Web Application project due to its configuration
问题描述
我在VS2013中加载Web应用程序项目时出现问题。这个项目依赖于IIS Express,但我不会安装IIS Express,因为我已经安装了IIS。
I've a problem with loading Web Application project in VS2013. This project depends on IIS Express, but I wouldn't install IIS Express because I already installed IIS.
我可以在.csproj文件中编辑什么来加载这个项目?我试图设置为false,但这对我解决问题没有帮助。
What I can edit in .csproj file to load this project? I've tried to set to false, but it's wouldn't help me to solve problem.
感谢您的建议。
Upd.1:另外,我无法创建新的Web项目 - VS告诉我同样的事情。
Upd.1: Also, I cannot create new web projects - VS tell me same things.
推荐答案
发生了也给我。我的解决方法:
Happened to me too. My workaround:
- 右键单击(无法加载)项目=>编辑web.csproj
- 找到行
< UseIISExpress> true< / UseIISExpress>
,并将其更改为false
。 - 保存,关闭,重新加载项目。
- Right-click the (failed-to-load) project => edit web.csproj
- Find the line
<UseIISExpress>true</UseIISExpress>
, and change it tofalse
. - Save, close, reload project.
结果 - 不同错误:
Web应用程序项目Web配置为使用IIS。若要访问本地IIS网站,必须在管理员帐户的上下文中运行Visual Studio。此外,您必须安装以下IIS组件:
The Web Application Project web is configured to use IIS. To access local IIS Web sites, you must run Visual Studio in the context of an administrator account. In addition, you must install the following IIS components:
ASP.NET
所以:
- 再次编辑,更改
< UseIIS> True< / UseIIS>
到false
- 保存,关闭,重新加载项目。
结果 - 成功!
这篇关于由于其配置,无法加载Web应用程序项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!