How to Troubleshoot .NET 10 IIS Error 500.31 in 2026?

Microsoft describes HTTP 500.31 as an ASP.NET Core Module startup failure where the module cannot find a required native dependency, and a missing runtime is a common cause (Microsoft’s 500.31 troubleshooting guidance). Check the application’s target framework and logs first, then compare its runtime requirements with what the server has installed. Repair or install the Hosting Bundle only when the evidence points there, and verify the application with a real request afterward.

This guide is for developers, Windows Server administrators, and small-business technical leads responsible for IIS-hosted ASP.NET Core applications.
It’s especially useful when an application worked in testing but returns 500.31 after deployment or a server change.

What 500.31 tells you—and what it does not

The error is a clue, not a complete diagnosis. Microsoft’s error reference associates 500.31 with the ASP.NET Core Module being unable to find native dependencies needed to start the application. A missing or incompatible runtime can be involved, but the error page alone does not establish that the Hosting Bundle is absent or damaged (500.31 and related IIS errors).

Before changing the server, record three things:

That short record helps separate an application packaging issue from a server runtime or IIS module issue. It also makes a later rollback or escalation more specific.

Does a server with .NET 10 installed guarantee that every .NET 10 IIS app will start? No. Confirm which runtime is installed, the application’s target framework, the deployment mode, and the architecture expected by the published app. The presence of an SDK or a different runtime version does not, by itself, prove that the required runtime is available to the IIS-hosted application. Microsoft’s .NET deployment documentation explains how framework-dependent and self-contained deployments differ.

Step 1: Confirm the application’s actual framework requirement

Start with the deployed application, not the version you think was published.

Check the project file in the build source for its target framework. Then inspect the published output for a *.runtimeconfig.json file. It describes runtime configuration for the application; it can help confirm what the deployed application expects. Microsoft documents the format and behavior in its runtime configuration reference.

Next, identify the deployment mode:

How do you confirm whether IIS has the required ASP.NET Core runtime? Run the runtime check on the server itself, in an elevated command prompt or PowerShell session:

dotnet --list-runtimes
dotnet --info

dotnet --list-runtimes reports the shared runtimes visible to the dotnet command. dotnet --info provides additional environment details. The Microsoft .NET command-line reference documents these commands.

Compare the output with the app’s requirements; do not treat a list of installed SDKs as proof that the needed runtime is present. If the command is unavailable, that is evidence about the command-line environment, not conclusive proof that every IIS component is missing. Continue with the application files, installed programs, and IIS module checks.

Step 2: Use Event Viewer to narrow down the failure

Open Event Viewer and go to Windows Logs > Application. Filter or review entries around the recorded failure time. Look for messages from the ASP.NET Core Module or entries that identify a missing framework, dependency, or startup failure.

Read the message in context. An explicit message that a required framework or dependency cannot be found points toward a runtime or deployment mismatch. A message that identifies a different missing native dependency should not be “fixed” by installing runtimes at random. Microsoft’s IIS troubleshooting guidance explains how to use error details to investigate startup failures.

If Event Viewer does not provide enough detail, enable ASP.NET Core Module diagnostics temporarily and follow Microsoft’s logging and diagnostics instructions. Keep diagnostic output in a directory with appropriate access controls. Logs may expose file paths, configuration details, or application data. Turn verbose output off after collecting evidence, and do not leave diagnostic files in a publicly served directory.

Avoid changing multiple settings at once. If the error changes after a single controlled adjustment, that gives you a clearer signal about which branch to investigate next.

Step 3: Choose the fix that matches the evidence

Use this comparison to decide what to inspect or change. The error code alone is not enough to choose an action.

Evidence or condition Likely area to check Next action
Framework-dependent app requires a shared runtime that is absent Server runtime Install the required runtime using Microsoft’s documented process, then retest
Published output indicates a self-contained deployment Publish output and target platform Verify the deployed files and platform match the server; do not assume a shared-runtime install is the fix
App and server architecture do not match Application pool and publish architecture Check the application-pool bitness and the app’s target architecture
Evidence points to a missing or damaged ASP.NET Core Module IIS module and Hosting Bundle Follow Microsoft’s Hosting Bundle installation or repair guidance
Logs identify a different missing dependency or configuration problem Application package or configuration Investigate that dependency or setting before altering installed runtimes

Can you install the Hosting Bundle immediately to clear 500.31? Only when the evidence indicates an absent or damaged IIS integration component, or when the required runtime is not installed and the documented installation path includes it. The ASP.NET Core and IIS hosting documentation covers the Hosting Bundle and IIS hosting setup.

Check the installation order as well. If IIS was added after the Hosting Bundle, use Microsoft’s current instructions to repair or rerun the relevant installer as appropriate. Do not uninstall runtimes or repeatedly install different versions without evidence. That can introduce new variables without fixing the original mismatch.

For an architecture check, open IIS Manager > Application Pools, select the application pool, and open Advanced Settings. Review Enable 32-Bit Applications and compare it with the app’s published architecture. Change it only if the application and server configuration require it. Microsoft’s IIS publishing guide provides the broader deployment context.

Step 4: Verify the repair with the application, not the installer

An installer reporting success does not confirm that the site can start. After a runtime or Hosting Bundle change, follow Microsoft’s documented IIS and hosting-module reload requirements. Then test the application through the same IIS site and request path that failed.

Use this sequence:

What should you check after repairing the Hosting Bundle? Confirm that the relevant IIS components have reloaded, repeat the original application request, and inspect fresh logs. If 500.31 remains, return to the evidence: check the runtime requirement, published output, application-pool architecture, configuration, and missing dependencies. Do not assume that a successful repair proves the application package itself is correct.

If the application is still unavailable, restore the previous known-good deployment or configuration where possible, then continue testing outside the live request path. Avoid making unrelated server changes while the cause is still unclear.

Add runtime checks to the Windows Server IIS deployment process

Treat the error as an acceptance gap, not just an isolated server problem. Before publishing, record the target framework and deployment mode. After publishing, inspect the output and confirm that the expected runtime or self-contained files are present. Before cutover, compare those requirements with the server’s installed components and IIS application-pool architecture.

A compact deployment record can include:

This is particularly useful when a team deploys from one environment to another or hands the application to a Windows administrator. The same checks make it easier to tell whether a later failure followed a code release, a server change, or a difference in publish output.

Keep the operating-system choice separate from the application diagnosis. A Windows Server version does not automatically install the runtime your application needs, and changing the server edition is not a substitute for checking the target framework. If you are preparing a new environment, verify the current Windows Server versions and language options on the NetAmd server options page. For a setup that also hosts virtual machines, review the NetAmd hypervisor host options separately; virtualization choices do not replace IIS runtime validation.

If you need help with the wider deployment process, continue with an IIS environment and publishing guide before changing the production server. When you are planning a new Windows environment rather than repairing an existing application, compare the required Windows Server version and language with the options currently listed by NetAmd. An independent server can provide a dedicated environment for a workload that needs consistent access to its Windows configuration, but it will not correct a missing runtime, incompatible publish output, or faulty application dependency on its own.

Further reading

Deploy Your .NET 10 Workload on Dedicated Windows Server

Choose Windows Server 2025 for your NetAmd dedicated server, with the license billed monthly.

Configure the number of IP addresses for your needs

Each server includes 1 dedicated IPv4 address, with up to 255 additional addresses available. Total due = monthly total × number of months.