info: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
User profile is available. Using 'C:\Users\mayuying\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
Hosting environment: Production
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1]
Request starting HTTP/1.1 GET http://localhost:5000/
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1]
Executing action method Souti.Web.Controllers.HomeController.Index (Souti.Web) with arguments ((null)) - ModelState is Valid
fail: Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewResultExecutor[3]
The view 'Index' was not found. Searched locations: /Views/Home/Index.cshtml, /Views/Shared/Index.cshtml
info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2]
Executed action Souti.Web.Controllers.HomeController.Index (Souti.Web) in 32.3144ms
fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[0]
An unhandled exception has occurred: The view 'Index' was not found. The following locations were searched:
/Views/Home/Index.cshtml
/Views/Shared/Index.cshtml
请问我在 vs上访问可以 但是我使用dotnet 命令启动完成功 但是 访问报错 请问是什么原因啊?
- ASP.NET Core ConfigureServices 中从 appsettings.json
- .Net5 强制https请求重复跳转问题
- HttpContext.Items["Properties"]全局获取
- asp.net core 连接Oracle数据,异常,无法正常open
- 博客园的服务怎么实现预热后加入K8S集群的
你是在哪个路径下运行 dotnet run 命令的?