Search code examples
asp.net-core.net-8.0abp-frameworkazure-appservice

HTTP Error 500.30 - ASP.NET Core app failed to start(abp-commercial)


I have a newly created ABP Commercial tiered application. I am deploying the project to Azure using a CI/CD pipeline, and the pipeline works perfectly. However, when I run the app, I encounter the following error: "HTTP Error 500.30 - ASP.NET Core app failed to start."enter image description here

  1. I deployed the same project on IIS, and it is working fine.

  2. To investigate the target framework issue, I created a new .NET 8 project and published it on Azure using Visual Studio, and it works.

  3. I also tried the following solution, but it did not work for me:

    1. Configuration issue:

      i) Changed hostingModel from "inprocess" to "outofprocess" in the web.config file.

      InProcess

enter image description here

Out Of Process

enter image description here

ii) Updated the Azure app service configuration: Platform settings -> Platform -> Changed from 32-bit to 64-bit.

enter image description here

  1. Published the same project on Azure using Visual Studio, but I am still encountering the same error ("HTTP Error 500.30 - ASP.NET Core app failed to start").

Here it's publish profile:
enter image description here

  1. I also checked the error logs in the Application event log on the Azure App Service and the eventlog.xml file in the Kudu console, where I found the following errors.

enter image description here

Application '/LM/W3SVC/924033019/ROOT' with physical root 'C:\home\site\wwwroot\' failed to load coreclr. Exception message:
CLR worker thread exited prematurely
Process Id: 5284.
File Version: 18.0.24201.8. Description: IIS ASP.NET Core Module V2 Request Handler. Commit:
Application '/LM/W3SVC/924033019/ROOT' with physical root 'C:\home\site\wwwroot\' has exited from Program.Main with exit code = '1'. Please check the stderr logs for more information.
Process Id: 5284.
File Version: 18.0.24201.8. Description: IIS ASP.NET Core Module V2 Request Handler. Commit:   

Solution

  • I resolved the issue by configuring Redis on the Azure App Service and updating the connection string in the "appsettings.json" file. In a tiered application, Redis is essential. For more information, please refer to this link:Redis is essentials for tiered application