Web API项目无法在Visual Studio 2019中加载

编程入门 行业动态 更新时间:2024-10-25 13:31:04
本文介绍了Web API项目无法在Visual Studio 2019中加载-错误:'未实现方法或操作'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个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中加载

本文发布于:2023-11-14 19:11:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1588294.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   项目   API   Web   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!