微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ASP.NET应用程序配置IIS后,会出现错误

我将ASP.NET Web应用程序更改为使用本地IIS,而不是IIS Express.现在重新打开解决方案后,加载应用程序时会出现以下错误

error : Project ‘Atlas2’ Could not be opened because the Visual C# 2015 compiler Could not be created. ‘Atlas2’ is already part of the workspace.

error : Project ‘Atlas2’ Could not be opened because the Visual C#
2015 compiler Could not be created. An item with the same key has
already been added.

有人可以帮助我如何重新加载项目?
我正在使用Visual Studio Team Services(TFS Online),如果有帮助的话.

解决方法

解决了我的问题.我卸载了项目并编辑了.csproj文件.我做了以下更改:

>< UseIISExpress> false< / UseIISExpress>真实
>删除< UseIIS> True< / UseIIS>
>删除< IISUrl> http:// localhost / MyWebApp< / IISUrl>

然后我重新加载了该项目.有效.其实它回滚使用IIS Express.

原文地址:https://www.jb51.cc/aspnet/249983.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐