Azure WebApp won't start: An error occurred while starting the application. Profile loading error

I have an asp.net core 1.1.1 web application that is working correctly from IIS Express. After I deploy it to Azure, the web app won't start. I am getting the following error:

An error occurred while starting the application. .NET Framework X86 v4.0.30319.42000 | Microsoft.AspNetCore.Hosting Version 1.1.1 | Microsoft Windows 6.2.9200

I removed almost everything from Startup.cs and enabled every debugging feature that I know of. The only errors I can get are eventlog.xml:

Warning: Could not create stdoutLogFile \\?\D:\home\site\wwwroot\logs\stdout_6624_201732620236.log, ErrorCode = -2147024893.

.NET Runtime version 4.0.30319.0 - Loading profiler failed.  Failed trying to receive from out of process a request to attach a profiler.  HRESULT: 0x8007006d.

      

I am guessing this is some kind of permission issue, but I have no idea where or how to set the permissions for the Azure file system.

Please help me, I am pulling my hair out. I sit here for hours solving this.

Thank.

+3


source to share


1 answer


I was able to solve the problem myself and I hope this solution can help someone.

The problem was setting up external authentication providers. As suggested, I installed the application secrets using the Secret Manager Tool, however I did not configure the variables after deploying to Azure.



I think it is somehow misleading that there is an Authentication / Authorization section in the Azure Web App settings. I put the secrets correctly. It was only after this that I realized that the settings should be in the Application Settings section like normal pairs of application settings.

+3


source







All Articles