Show ASP.NET 5 error page in Azure web app

前端 未结 7 474
猫巷女王i
猫巷女王i 2020-12-14 17:04

I am getting a 500 Internal Server Error when deploying our ASP.NET 5 web application to an Azure Web App.

How do I get the details and stacktrace f

相关标签:
7条回答
  • 2020-12-14 17:38

    I had exactly the same problems - always getting 500 and never seen a tiniest log or information what was wrong. Even after commenting out everything in Startup.cs and simply accessing static files I was getting 500 (though surprisingly sometimes the static file was served correctly, it changed from publish to publish of the same app).

    I suppose that some file(s) got corrupted in my deployment and azure wasn't detecting it. Or maybe there were some files left on the server that caused conflicts during runtime - next time I think it would be also worth to change publish profile to not keep extra files on server (by default they are not deleted).

    I ended up removing and re-creating the app, which solved the problem.

    0 讨论(0)
提交回复
热议问题