ASP.NET Core publish error: An error occurred while starting the application

OMID picture OMID · Apr 19, 2017 · Viewed 11k times · Source

I tried to publish my ASP.NET Core application on Windows Server 2008 R2 but I get this error: "An error occurred while starting the application."

Without any more description!

What can I do?

Answer

arnaudauroux picture arnaudauroux · Apr 19, 2017

Please take a look at this post: https://scottsauber.com/2017/04/10/how-to-troubleshoot-an-error-occurred-while-starting-the-application-in-asp-net-core-on-iis which will give you a good starter kit to get basic log informations when this kind of error appear.
It may be a bad startup configuration or related to the .NET Core runtime installed but very difficult to say without more technical information.