简体   繁体   中英

500.30 - ASP.NET Core app failed to start running in Visual Studio

The dreaded error has been plaguing me for days...

Running:

  • .net core 5.0.409
  • VS Professional 2019
  • Windows 10

When running from command line (dotnet run {project}.csproj) everything runs just fine, but when running from Visual Studio on IIS Express I receive the 500.30.

No breakpoints are hit in startup or program.

Event log is unhelpful: "Application {name} hit unexpected managed exception, exception code = '0xe0434352'. Please check the stderr logs for more information."

I cannot for the life of me get stdout logging to work.

Nothing useful in the Output logs.

This works fine in VS on other machines.

I can't quite explain why this worked, but upgrading VS to 2022 sucessfully resolved the problem. However, one indication that led me to this solution is that the application was developed using 2022 and I was trying to run on 2019.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM