Forum Discussion
Amran23
Jun 27, 2025MCT
HTTP Error 500.30 - ASP.NET Core app failed to start which is hosted in Azure Web App
I have deployed ASP.NET 8 ABP backend application into Azure Web APP using Azure DevOps pipeline as following yaml. The pipeline executed successfully and the application build & deploy was successful as we verify the build files/folders went into the site/wwwroot directory into Azure Web App. But when we trying to browse the application, it;s throwing error: HTTP Error 500.30 - ASP.NET Core app failed to start(attached screenshot).
Note: When we build, release & deploy the application using Visual Studio 2022, it's working as expected.
trigger:
branches:
include:
- master
variables:
- name: solution
value: '**/*.sln'
- name: buildPlatform
value: 'Any CPU'
- name: buildConfiguration
value: 'Release'
stages:
- stage: __default
jobs:
- job: Job
pool:
vmImage: 'windows-latest'
steps:
- task: UseDotNet@2
displayName: 'Use latest .NET8'
inputs:
version: 8.0.x
includePreviewVersions: true
- task: NuGetToolInstaller@1
displayName: Install Nuget Tool
- task: NuGetCommand@2
displayName: Restore nuget packages
inputs:
restoreSolution: '$(solution)'
- task: NuGetToolInstaller@1
displayName: Install Nuget Tool
- task: NuGetCommand@2
displayName: Restore nuget packages
inputs:
restoreSolution: '$(solution)'
- task: DotNetCoreCLI@2
displayName: 'Dotnet build projects'
inputs:
command: build
projects: '**/src/*/*.HttpApi.Host.csproj'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Dotnet publish
inputs:
command: publish
publishWebProjects: True
arguments: '--configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)'
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: Publish artifact
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
condition: succeededOrFailed()
- task: AzureRmWebAppDeployment@5
displayName: "Deploy to Azure Web App"
inputs:
ConnectionType: 'AzureRM'
azureSubscription: 'Visual Studio Enterprise Subscription (fd7a0e48-ef92-4ae6-b1a7-6a62c6dd318d)'
appType: 'webApp'
WebAppName: 'backend-pipeline'
package: '$(Build.ArtifactStagingDirectory)'
RuntimeStack: 'DOTNETCORE|8.0'
I have debugged this error using the steps below:
- Navigate to the root directory of the application using CMD
- Run the application using the command dotnet run (yourApplicationName).dll but noting error found.
- Then checked Diagnose and solve problems > Diagnostic Tools > Application Event Logs and found below two error logs,
What is causing this error?
Azure IIS Support Blog Microsoft IIS Web Development
No RepliesBe the first to reply