Reputation: 457
Works locally but NOT on Azure AppService
Using: Visual Studio 2022
Asp.Net MVC .NET 6
AzureApp Platform: Windows 32/bit
My App is a sample
I went through through from AzureAppSample
I am able to run it locally on mymachine. It is when I deploy to Azure using Visual Studio 2022 and then view my public URL that I get the error. When I look at the logs in Azure using Kudu I find "Application ...../ROOT' with physical root 'C:\home\site\wwwroot\' failed to load coreclr. Exception message: CLR worker thread exited prematurely</Data>
"
Upvotes: 0
Views: 1890
Reputation: 10258
Try adding the following to your configuration so that you can get a better idea of what the error is:
ASPNETCORE_DETAILEDERRORS = 1
Upvotes: 3