---
title: Fix Configuration Error - Target Framework for Nodinite Web Sites in IIS
description: "Fix the IIS 'targetFramework' configuration error for Nodinite web sites. Learn which .NET CLR version each application pool needs on Windows Server: No Managed Code for .NET 10, v4.0 for .NET Framework 4.8."
---

# :fa-globe: Configuration Error - Target Framework 2.0 instead of 4.x

This guide helps you fix configuration errors caused by an [IIS][] application pool that runs the wrong .NET CLR version for a :Nodinite: web site.

✅ Know which .NET CLR version each :Nodinite: application pool needs  
✅ Fix the application pool in IIS Manager in a minute  
✅ Avoid the error at the next install or update  

## :fa-circle-info: Which .NET CLR Version Each Application Pool Needs

On Windows Server, every :Nodinite: [Core Service][Core Services] and each IIS-hosted agent is its own IIS web site with its own application pool. The [CLI install package][Step 7] creates the pools and sets their .NET CLR version; you don't set them by hand.

|Web site runtime|Examples|Application pool .NET CLR version|
|---|---|---|
|.NET 10 (ASP.NET Core, through the Hosting Bundle)|[Web Client][], [Web API][], [Log API][], [Logging Service][], [Monitoring Service][], [MCP Server][MCP Endpoint], and most agents|**No Managed Code**|
|.NET Framework 4.8|The BizTalk, Windows Server, Dynamics CRM, and IBM DataPower agents|**.NET CLR Version v4.0.30319**|

The [.NET 10 Hosting Bundle][IIS Windows Features] and .NET Framework 4.8 are both in the [prerequisites][Prerequisites]. A .NET Framework 4.8 web site fails with the `targetFramework` error below when its application pool runs .NET CLR v2.0, for example after someone recreated the pool by hand or an old server template changed the default.

## :fa-bug: The Problem

The web site returns an HTTP 500 configuration error that points at the `targetFramework` attribute of `httpRuntime`:

![HTTP runtime configuration error caused by the targetFramework attribute][png_HttpRuntime_TargetFramework]  
*Example of the error a .NET Framework 4.x web site shows when its application pool runs .NET CLR v2.0.*  

## :fa-wrench: Solution

Set the application pool of the failing web site to the .NET CLR version in the table above.

### How do I change the .NET CLR version of an application pool?

1. Click **Start**, click **Run**, type `inetmgr`, and click **OK** to open *Internet Information Services (IIS) Manager*.
2. In the tree, expand the server and click **Application Pools**.
3. Find the application pool of the failing :Nodinite: web site.
4. Right-click it and click **Basic Settings** to open the **Edit Application Pool** dialog.
5. Change **.NET CLR version** from `.NET CLR Version v2.0.50727` to `.NET CLR Version v4.0.30319` (or to **No Managed Code** for a .NET 10 web site).
6. Click **OK** and reload the page in your browser.

![Edit Application Pool dialog changing the .NET CLR version from v2.0 to v4.0][png_iis_application_pool_change_v2_to_v4]  
*Example of changing the .NET CLR version of an application pool in IIS Manager.*  

>[!TIP]
>The CLI configures the application pools at every [install][Install] and [update][Updating Nodinite v7]. Avoid manual changes to :Nodinite: application pools between updates, so the next run starts from the expected state.

## :fa-hand-point-right: Next Steps

* :fa-rocket: [Install Nodinite v7][Install]  
* :fa-list-check: [IIS Windows Features][]  

## :fa-link-horizontal: Related Topics

* :fa-globe: [Web Client][]  
* :fa-cloud-sun: [Web API][]  
* :fa-cloud-arrow-down: [Log API][]  
* :fa-arrow-turn-up: [Windows Server Troubleshooting][Windows Overview]  

[Core Services]:{ndr}/Core%20Services/Overview.md
[IIS]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Overview.md
[IIS Windows Features]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Windows%20Features.md
[Install]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[MCP Endpoint]:{ndr}/Core%20Services/MCP%20Endpoint/Overview.md
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[png_HttpRuntime_TargetFramework]:{ndm}/Documentation%20Pictures/IM/Common/IIS/httpRuntime_targetFramework.png
[png_iis_application_pool_change_v2_to_v4]:{ndm}/Documentation%20Pictures/IM/Common/IIS/iis_application_pool_change_v2_to_v4.png
[Prerequisites]:{ndr}/Install%20and%20Update/Getting%20started/2.%20Prerequisites.md
[Step 7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/07%20-%20Install%20the%20Generated%20Package.md
[Updating Nodinite v7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Updating%20Nodinite%20v7.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md
[Windows Overview]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Overview.md