Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 687
OMID Avatar asked Apr 19 '17 10:04

OMID


People also ask

What is Web host in .NET core?

The host is responsible for app startup and lifetime management. At a minimum, the host configures a server and a request processing pipeline. The host can also set up logging, dependency injection, and configuration. This article covers the Web Host, which remains available only for backward compatibility.


1 Answers

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.

like image 62
arnaudauroux Avatar answered Sep 28 '22 15:09

arnaudauroux