---
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."
---

# <i class="fal fa-globe" aria-hidden="true"></i> 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> web site.

✅ Know which .NET CLR version each <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> application pool needs  
✅ Fix the application pool in IIS Manager in a minute  
✅ Avoid the error at the next install or update  

## <i class="fal fa-circle-info" aria-hidden="true"></i> Which .NET CLR Version Each Application Pool Needs

On Windows Server, every <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> [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.

## <i class="fal fa-bug" aria-hidden="true"></i> 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.*  

## <i class="fal fa-wrench" aria-hidden="true"></i> 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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.*  

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>The CLI configures the application pools at every <a href="https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7/">install</a> and <a href="https://docs.nodinite.com/install-and-update/getting-started/version-7/updating-nodinite-v7/">update</a>. Avoid manual changes to <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> application pools between updates, so the next run starts from the expected state.</p></div>
</aside>

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-rocket" aria-hidden="true"></i> [Install Nodinite v7][Install]  
* <i class="fal fa-list-check" aria-hidden="true"></i> [IIS Windows Features][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-globe" aria-hidden="true"></i> [Web Client][]  
* <i class="fal fa-cloud-sun" aria-hidden="true"></i> [Web API][]  
* <i class="fal fa-cloud-arrow-down" aria-hidden="true"></i> [Log API][]  
* <i class="fal fa-arrow-turn-up" aria-hidden="true"></i> [Windows Server Troubleshooting][Windows Overview]  

[Core Services]:https://docs.nodinite.com/core-services/overview/
[IIS]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/overview/
[IIS Windows Features]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/iis-windows-features/
[Install]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7/
[Log API]:https://docs.nodinite.com/core-services/log-api/overview/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[MCP Endpoint]:https://docs.nodinite.com/core-services/mcp-endpoint/overview/
[Monitoring Service]:https://docs.nodinite.com/core-services/monitoring-service/overview/
[png_HttpRuntime_TargetFramework]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/Common/IIS/httpRuntime_targetFramework.png
[png_iis_application_pool_change_v2_to_v4]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/Common/IIS/iis_application_pool_change_v2_to_v4.png
[Prerequisites]:https://docs.nodinite.com/install-and-update/getting-started/prerequisites/
[Step 7]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/07-install-the-generated-package/
[Updating Nodinite v7]:https://docs.nodinite.com/install-and-update/getting-started/version-7/updating-nodinite-v7/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web Client]:https://docs.nodinite.com/core-services/web-client/overview/
[Windows Overview]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/overview/