我有一个ASP.Net Web API项目无法在Visual Studio 2019中加载.当我尝试从解决方案资源管理器重新加载该项目时,出现错误:
I have a ASP.Net Web API project that is failing to load in Visual Studio 2019. When I try to reload the project from the Solution Explorer I get the error:
该方法或操作未实现
The method or operation is not implemented
任何想法可能是什么原因造成的?
Any ideas what might be causing this?
推荐答案有点神秘的错误消息-阻止项目加载的实际问题是:
A bit of a cryptic error message - the actual problem preventing the project from loading was:
在该项目的csproj文件中,我有
In the csproj file for the project, section, I had
<UseIIS>true</UseIIS>和IISUrl指向尚未在IIS上设置的本地站点,例如
and IISUrl pointing to a local site that was not yet set up on IIS, e.g.
<IISUrl>localhost:12321</IISUrl>没有站点绑定到localhost:12321
where there was no site bound to localhost:12321
更多推荐
Web API项目无法在Visual Studio 2019中加载
发布评论