.Net Framework 4.5 was installed on my machine and on the IIS Application Pool, I set the .NET CLR version to 4.0.
My question is when running .NET code in this IIS site, which framework version is it using: 4.0 or 4.5 ?
Please see below screen shots.
Use Registry Editor (older framework versions) From the Start menu, choose Run, enter regedit, and then select OK. You must have administrative credentials to run regedit. Open the subkey that matches the version you want to check. Use the table in the Detect .NET Framework 1.0 through 4.0 section.
The AppPool's .NET CLR Version is different from the .NET Framework Version.
The .NET CLR Version 4.0 is the CLR base for the following .NET Framework Versions:
So having a .NET CLR Version of 4.0 just means you support the above Frameworks, which will run under their deployed framework version.
Source: https://docs.microsoft.com/en-us/dotnet/standard/clr#clr-versions
Here is a full mapping of CLR to .NET Framework versions, based off this official documentation. https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/versions-and-dependencies#version-information
CLR 1.0
.NET Framework 1.0
CLR 1.1
.NET Framework 1.1
CLR 2.0
.NET Framework 2.0
.NET Framework 3.0
.NET Framework 3.5
CLR 4
.NET Framework 4
.NET Framework 4.5
.NET Framework 4.5.1
.NET Framework 4.5.2
.NET Framework 4.6
.NET Framework 4.6.1
.NET Framework 4.6.2
.NET Framework 4.7
.NET Framework 4.7.1
.NET Framework 4.7.2
.NET Framework 4.8
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With