Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

4.6.1 framework update leaves web.config httpRuntime still at 4.5?

i recently upgraded our c# Web Applications to use .net framework 4.6.1 from 4.5 and only today noticed in the web.configs the .net version differs from the .net version. Everything seems to work fine in production but my questions is, since the httpRuntime did not auto change to 4.6.1, i'm curious if thats intentional or do i need to manually key that in or is there some other reason for it to be on 4.5?

like image 554
Kakoritz Avatar asked Apr 07 '16 15:04

Kakoritz


People also ask

What is httpRuntime in web config?

The HttpRuntimeSection allows you to handle those parameters that affect the behavior of the ASP.NET runtime. It refers to the node in the configuration file that is indicated by the <httpRuntime> element and can be used at any level in the configuration hierarchy.

How do I upgrade my .NET framework?

To update the target framework for all projects, right-click on the project (one by one), click properties, and from the “Application” tab change the target framework to the desired one as in the following screenshot and select “Yes” in the popup that is displayed after the framework is changed.

What is httpRuntime in asp net?

The HttpRuntime object is used at the beginning of the ASP.NET pipeline model that processes HTTP requests. The ProcessRequest method drives all subsequent ASP.NET Web processing.


1 Answers

The main purpose of runtime target framework is for compatibility. Some breaking change may be introduced in the new version of asp.net. In order not to break the existing application, the breaking change is quirked through the target framework. You can find more details through this blog.

like image 175
mattfei Avatar answered Oct 23 '22 07:10

mattfei