An unhandled exception occurred while processing the request

May 5, 2023AngularASP.NET Core
← Back to Blog

I am facing this issue when running ASP.NET Core MVC with an Angular project.

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.

Microsoft.AspNetCore.SpaServices.Extensions.Util.TaskTimeoutExtensions.WithTimeout(Task task, TimeSpan timeoutDelay, string message)

Screenshot:


Solution:

To resolve this issue,Increase the timeout period in the configuration file of your application. For example, in the launchSettings.json file, you can set the "readyTimeout" property to a higher value, such as 60000 (60 seconds).

"iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "readyTimeout": 60000, "iisExpress": { "applicationUrl": "http://localhost:16098", "sslPort": 44332 }

[Ruby_E_Template id="6484"]

#Angular#ASP.NET Core