This article explains how to identify the specific .NET runtime version required by an application on a Windows Server. This information is essential for ensuring compatibility when configuring Internet Information Services (IIS) or managing application pools.
Before you begin
You will need:
Administrator access to the Windows Server.
Access to the application's source code or project files (if available).
The name of the specific application or service you are investigating.
Identifying the required .NET runtime
Depending on the type of application you are hosting, there are different ways to determine the required .1NET runtime.
For .NET Framework applications
Most legacy Windows applications and many ASP.NET websites run on the .NET Framework.
Locate the application's project file (e.g.,
web.configor a.csprojfile).Open the file in a text editor.
Look for the
<targetFramework>tag.Identify the version number listed within that tag.
Example: <targetFramework="4.7.2" /> indicates the application requires .NET Framework 4.7.2.
For .NET (Core) applications
Modern applications, including those built on .NET Core or .NET 5/6/7/8+, may require the .NET Runtime or the .NET Core Hosting Bundle.
Locate the application's configuration file (e.g.,
appsettings.jsonorweb.config).Check for the
runtimeorframeworkspecifications in the configuration.If the application is a standalone executable, you can use the
dotnet --infocommand in the command prompt to see which runtimes are currently installed on the server.Check the application's documentation or the developer's repository to confirm the minimum required version.
Confirm the result
For .NET Framework: The version number in the
web.configshould match the version installed on the server (e.g., 4.8).For .NET (Core): The
dotnet --infocommand should list the specific version (e.g., .NET 6.0.x) as an installed runtime.
Limitations
This article does not cover identifying requirements for third-party software where the source code or configuration files are not accessible. In those cases, you must consult the software vendor's documentation to determine the required .NET version.
