I am getting the message, "An error occurred while starting the application" on app launch after successful deployment of a web app via Visual Studio on Azure cloud. The application works well in Visual Studio. It is based on .NET framework 4.6. Kindly advise.
"An error occurred while starting the application" on app launch
The error message is too generic, it is difficult to find the issue with starting application. Azure provides built-in diagnostics to assist with debugging Azure app service web app, you can try to
enable diagnostics logging and check if some useful information are written in logs.
With Regards,
Fei Han
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
I am new to Azure and discovered that one needs to set up application insights to derive details of the actual cause of the error (in this case 5xx). Still working on it and hoping to get the full error description just like in the development environment.
Thanks for your feedback.
set up application insights to derive details of the actual cause of the error
Application insights can be used to monitor your live web application and detect & diagnose issues. You can get detailed information from this documentation.
With Regards,
Fei Han
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
None
0 Points
2 Posts
Web App Publishing - An error occurred while starting the application
Nov 22, 2017 12:55 PM|ONYAND|LINK
Hi All
I am getting the message, "An error occurred while starting the application" on app launch after successful deployment of a web app via Visual Studio on Azure cloud. The application works well in Visual Studio. It is based on .NET framework 4.6. Kindly advise.
Regards,
D.O.
All-Star
40565 Points
6233 Posts
Microsoft
Re: Web App Publishing - An error occurred while starting the application
Nov 23, 2017 02:24 AM|Fei Han - MSFT|LINK
Hi ONYAND,
The error message is too generic, it is difficult to find the issue with starting application. Azure provides built-in diagnostics to assist with debugging Azure app service web app, you can try to enable diagnostics logging and check if some useful information are written in logs.
With Regards,
Fei Han
None
0 Points
2 Posts
Re: Web App Publishing - An error occurred while starting the application
Nov 23, 2017 12:32 PM|ONYAND|LINK
Hi Fei,
I am new to Azure and discovered that one needs to set up application insights to derive details of the actual cause of the error (in this case 5xx). Still working on it and hoping to get the full error description just like in the development environment. Thanks for your feedback.
Regards,
D.O.
All-Star
40565 Points
6233 Posts
Microsoft
Re: Web App Publishing - An error occurred while starting the application
Nov 24, 2017 06:03 AM|Fei Han - MSFT|LINK
Hi ONYAND,
Application insights can be used to monitor your live web application and detect & diagnose issues. You can get detailed information from this documentation.
With Regards,
Fei Han