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.

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....