Shingala94
Shingala94

Reputation: 404

Which .net version is used ? The one in web conifg or the one used while building?

Probably a noob question but what version of .NET is used in a ASPX web application? Is it the version defined in the project propperties or the one defined in the web.config file of the website?

I need to know this because an API I am using in the web application is closing all non TLS1.2 protocolls. And as far as I understand TLS1.2 is the default in .NET 4.5. The server is Windows Server 2008.

Upvotes: 1

Views: 43

Answers (1)

squillman
squillman

Reputation: 13641

Visual Studio uses web.config values to initialize the property pages. So, they're one in the same.

You see the .NET version from the property pages in the web.config similar to this:

<configuration>
   <system.web>
      <compilation targetFramework="4.5" />
   </system.web>
</configuration>

If you change the target framework in the project properties and save, you should see the updated target framework in that value in your web.config file.

Upvotes: 1

Related Questions