加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

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

发布时间:2020-12-15 23:05:56 所属栏目:asp.Net 来源:网络整理
导读:我将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
我将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.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读