asp.net core - Blazor server app closes without error during debugging - Stack Overflow

The application started in debug mode stops reacting unexpectedly, without errors being intercepted and

The application started in debug mode stops reacting unexpectedly, without errors being intercepted and/or exceptions being generated. I don't know if this behavior can also happen when starting in release mode. In practice, the web application stops reacting in the browser. However, if I pause the execution in Visual Studio, a message warns me that the debug has timed out because the underlying application is no longer running:

The attempts I made to solve the problem are: I tried to hook the unhandled errors with: AppDomain.CurrentDomain.UnhandledException += (handling code) But unhandled errors are not intercepted.

I tried to remove the automatic start of the browser when the app starts in order to disconnect the closing of the browser with the end of the execution of the application.

It does not solve the problem.

Notes: It is a Blazor server application, it uses .NET 9 (but even with .NET 8 I encountered the problem). I updated visual studio, and all the nughet packages connected to the application.

The application, terminating without there being any clues as to the cause because the debugging does not stop anywhere, can no longer be fixed.

Thanks

I tried to catch unhandled errors, but it seems that the app does not close due to exceptions during execution (debugging does not catch errors). I use Edge browser. I tried to remove breakpoints from the code.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744137539a4560130.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信