HTTP Error 500.30 on IIS means the ASP.NET Core app failed to start inside the IIS worker process. The ASP.NET Core Module (ANCM) tried to start the .NET runtime in-process, and it failed. In most cases, the real reason is in the Event Viewer.
This quick fix guide uses a sample app that fails on a Windows Server and shows how to find the exact error and fix it. If you still need to set up IIS, check our IIS installation guide for Windows VPS.
What Is HTTP Error 500.30 on IIS?
When you open the site, IIS shows this page:
HTTP Error 500.30 - ASP.NET Core app failed to start
This is an in-process start failure. The worker process fails, and the app does not start. Common causes include:
- The app needs a .NET version that is not installed on the server.
- The Hosting Bundle is missing or broken.
- The app pool identity cannot read the app files.
- The app code or config (for example,
appsettings.json, a connection string, or a secret) throws an error at startup.
500.30 vs 500.31 Errors
Both errors mean ANCM could not start the app in-process, but the cause is different.
| Error |
Name |
Usual meaning |
| 500.30 |
In-process start failure |
The runtime started or tried to start, but the app failed. Check Event Viewer and the app's own startup errors. |
| 500.31 |
ANCM failed to find native dependencies |
The Microsoft.NETCore.App or Microsoft.AspNetCore.App runtime that the app needs is not installed. |
Also, a missing .NET version can cause a 500.30 error. So don't rely on the error number alone. Always read the message in the Event Viewer.
Test Setup: A Failed ASP.NET Core Deployment
To show the fix, we break an app on purpose. Our test setup includes:
- Windows Server with IIS installed.
- A sample ASP.NET Core app published with
dotnet publish -c Release.
- The app targets a newer .NET version than the one installed on the server.
- The site opens with 500.30.
Run this command to build the app and save the files in a folder named publish:
dotnet publish -c Release -o .\publish
Copy the contents of the publish folder to the IIS physical path, for example C:\inetpub\wwwroot\myapp. Make sure web.config is in that folder.
Step 1: Check Event Viewer
Event Viewer is the best place to start. It shows why the app failed to start, and the message usually names the exact problem.
- Open Event Viewer.
- Go to Windows Logs > Application.
- Look for errors where the Source is IIS AspNetCore Module V2, or IIS Express AspNetCore Module for IIS Express.
- Open the newest error and read the message.
Also, you can list the latest ANCM errors from PowerShell:
Get-WinEvent -FilterHashtable @{LogName='Application'; Level=2} -MaxEvents 20 | Where-Object { $_.ProviderName -like '*AspNetCore*' } | Format-List TimeCreated, Id, Message
The message usually names the missing runtime, the missing file, or the exception.
Step 2: Check the .NET Hosting Bundle
The .NET Hosting Bundle installs the .NET runtime, the ASP.NET Core runtime, and the ASP.NET Core Module. Install the bundle that matches your app's .NET version from the official .NET download page.
Run this command to see which .NET runtimes are installed on the server:
The runtime list must include Microsoft.AspNetCore.App and Microsoft.NETCore.App in the version your app needs.
To see which version your app needs, go to the app folder:
cd C:\inetpub\wwwroot\myapp
Then, check the runtime file:
Get-Content .\MyApp.runtimeconfig.json
Replace MyApp with your app name. Check the name and version values under framework. Then, compare them with the output of dotnet --list-runtimes.
You must install IIS before the Hosting Bundle. If you installed IIS after the bundle, repair the bundle. After the install or repair, restart IIS in an Administrator Command Prompt:
net stop was /ynet start w3svc
If the runtime is still missing, you can do one of these:
- Install the right .NET version on the server.
- Change the app to use a version that is already on the server.
- Publish the app as self-contained, so it carries its own runtime.
Step 3: Check the App Pool
The app pool runs your site in IIS. Wrong settings can stop the app from starting, so you must check them.
Open IIS Manager > Application Pools and select the pool for your site.
- Set the .NET CLR version to No Managed Code.
- Open Advanced Settings and check Enable 32-Bit Applications. Set it to
False for a 64-bit app and True for a 32-bit app. A mismatch can stop the app from loading.
- Check that the pool is started.
Also, confirm that one app pool runs only one in-process app.
Step 4: Check Permissions
The app pool needs permission to read your app files. If it can't, the app won't start. For a pool named MyAppPool, give it access with this command:
icacls "C:\inetpub\wwwroot\myapp" /grant "IIS AppPool\MyAppPool:(OI)(CI)RX" /T
Change MyAppPool and the path to your own values.
Step 5: Run the App Locally
Running the app manually shows the real error on screen. This helps when Event Viewer doesn't give enough detail. Run the app from a command prompt on the server:
cd C:\inetpub\wwwroot\myappdotnet .\MyApp.dll
Replace MyApp.dll with your app's DLL name. If the app is self-contained, run MyApp.exe instead.
The console shows the real error. If the app opens at http://localhost:5000/, the problem is in the IIS setup, not in your code.
Step 6: Use stdout Logs to Find the Error
If the earlier steps don't show the cause, turn on stdout logging. It saves the app's startup messages to a file. Use it only for a short time, and turn it off after you fix the error.
- Create a
logs folder inside the app folder.
- Give the app pool identity write access to it:
New-Item -ItemType Directory -Path "C:\inetpub\wwwroot\myapp\logs" -Forceicacls "C:\inetpub\wwwroot\myapp\logs" /grant "IIS AppPool\MyAppPool:(OI)(CI)M"
- Edit
C:\inetpub\wwwroot\myapp\web.config and set the aspNetCore element like this:
1<aspNetCore processPath="dotnet"2 arguments=".\MyApp.dll"3 stdoutLogEnabled="true"4 stdoutLogFile=".\logs\stdout"5 hostingModel="InProcess" />
- Open the site once, then read the newest file in the
logs folder.
- Fix the error you find.
- Set
stdoutLogEnabled="false" again and save web.config.
Important Note: Always turn stdout logging off after the fix. There is no limit on log file size or number of files, so it can fill the disk and cause app or server failure.
Common HTTP Error 500.30 on IIS and Fixes
Use this table to match what you see with the most common cause. Then, follow the fix:
| What you see |
Common cause |
Fix |
| Event log says a framework or version was not found |
Required .NET runtime is missing |
Install the matching Hosting Bundle, then restart IIS. |
dotnet --list-runtimes lacks the app's version |
Wrong or old runtime on the server |
Install the right version or publish self-contained. |
| Site fails right after you installed IIS or the bundle |
Module not registered correctly |
Repair the Hosting Bundle, then run net stop was /y and net start w3svc. |
App works with dotnet MyApp.dll but not in IIS |
App pool or permission problem |
Check the app pool settings and grant IIS AppPool\<name> read access. |
Error code 0x800700c1 in the event log |
32-bit and 64-bit mismatch |
Set Enable 32-Bit Applications to match the app. |
| Console shows an exception at startup |
Bad config, connection string, or secret |
Fix the setting named in the error. |
| Many apps share one pool |
In-process apps cannot share a process |
Give each app its own app pool. |
web.config is missing or broken |
Bad publish |
Delete the old files and publish again. |
Test the ASP.NET Core App After the Fix
After the fix, test the site to make sure it works. Restart the app pool and send a request. A result of 200 means the app is running:
Restart-WebAppPool -Name "MyAppPool"Invoke-WebRequest http://localhost/ -UseBasicParsing | Select-Object StatusCode
Finally, check that stdoutLogEnabled is false in web.config.
Tips: If you cannot confirm the cause or cannot safely make the change on a live server, stop and ask for help. Review the PerLod Managed Support scope to see what is covered, and note that patching or incident fixes are not included by default.
Conclusion
HTTP Error 500.30 on IIS means the ASP.NET Core app failed to start. Read the Event Viewer, then check the Hosting Bundle and runtime, the app pool, and permissions. If it is still unclear, run the app from the command line or enable stdout logging for a short time. Remember to turn it off after you fix the error.
We hope you enjoy this troubleshooting guide. If you need a clean server to test on, a Windows VPS gives you Administrator access over RDP.