How to fix StackOverflowException after upgrading from .Net 6 to .Net 8
Abhishek, Burra
30
Reputation points
Hello,
I have upgraded 5 projects in my solution from .Net 6 to .Net 8 using upgrade assistant in Visual Studio.
When I run the solution, StackOverflowException is being thrown and Swagger is not loading. Looks like onchangetokenfired() method is being called many times resulting in infinite loop.
Please help in fixing this issue.
Developer technologies ASP.NET ASP.NET Core
4,815 questions
Developer technologies .NET Other
4,103 questions
Sign in to answer