Web API项目无法在Visual Studio 2019中加载-错误:'未实现方法或操作' [英] Web API project fails to load in Visual Studio 2019 - error: 'The method or operation is not implemented'
问题描述
我有一个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>http://localhost:12321</IISUrl>
没有站点绑定到localhost:12321
where there was no site bound to localhost:12321
这篇关于Web API项目无法在Visual Studio 2019中加载-错误:'未实现方法或操作'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!