[小心这个问题已经被问到,但没有任何建议似乎有效,而且在我的情况下超时是 0 ]
问题:
我无法在我的计算机上运行 .NET core/angular 应用程序
它可以在家里(Win 7、VS 2019 社区)运行,但不能在我的工作电脑上运行(Win10、VS 2019 专业版)
Chrome/FFox 不断加载索引页面,然后我超时
错误:
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware: Error: An unhandled exception has occurred while executing the request.
System.TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds. Check the log output for error information.
at Microsoft.AspNetCore.SpaServices.Extensions.Util.TaskTimeoutExtensions.WithTimeout[T](Task`1 task, TimeSpan timeoutDelay, String message)
at Microsoft.AspNetCore.SpaServices.Extensions.Proxy.SpaProxy.PerformProxyRequest(HttpContext context, HttpClient httpClient, Task`1 baseUriTask, CancellationToken applicationStoppingToken, Boolean proxy404s)
at Microsoft.AspNetCore.Builder.SpaProxyingExtensions.<>c__DisplayClass2_0.<<UseProxyToSpaDevelopmentServer>b__0>d.MoveNext()
--- End of stack trace from …
Run Code Online (Sandbox Code Playgroud)