Asp.net web api 在asp.net core 3.0 web api中处理请求时发生未经处理的异常

Asp.net web api 在asp.net core 3.0 web api中处理请求时发生未经处理的异常,asp.net-web-api,visual-studio-2019,asp.net-core-3.0,Asp.net Web Api,Visual Studio 2019,Asp.net Core 3.0,我正在尝试运行NETCore3.0WebAPI项目,但我遇到以下错误 An unhandled exception occured while processing the request in asp.net core 3.0 web api 根据您收到的错误,这是: [ApiController] [Route("[controller]}")]//the example have extra `}` here public class WeatherForecastControlle

我正在尝试运行NETCore3.0WebAPI项目,但我遇到以下错误

An unhandled exception occured while processing the request in asp.net 
core 3.0 web api

根据您收到的错误,这是:

[ApiController]
[Route("[controller]}")]//the example have extra `}` here 
public class WeatherForecastController : ControllerBase
产生以下错误:

检查每个“{”字符是否具有匹配的“}”字符


您需要检查
WeatherForecastController
的属性路由及其
Get
操作,以确定是否有任何额外的
{
/
}
或缺少括号。

问题是?您是否阅读了详细信息并检查了有关要检查的内容的应用程序?”{另一个控制器中缺少括号,谢谢你的建议“Xing Zou”@Vikas Great..如果你已经解决了问题,你能告诉我吗