Unrecognized attribute 'targetFramework'. Note> these attribute names are case sensitive

I am trying to publish a web application from my VS2012 to a remote computer. I published the files, but when I try to open a website, I get this error:

Configuration error

Description. An error occurred while processing the configuration file needed to service this request. Please view the specific error details below and modify the configuration file accordingly.

Parser error message: unrecognized attribute 'targetFramework'. Note these attribute names are case sensitive.

Source Error:

Line 41: Line 42: <compilation targetFramework="4.0" /> Line 43: <httpRuntime targetFramework="4.0" /> Line 44: <authentication mode="Forms"> Line 45: <forms loginUrl="~/" timeout="2880" /> 

(line 43 is in red)

On the remote computer: * IIS7 is installed (as well as IIS6, I think) * ASP.NET 4.0 is installed * "aspnet_regiis -ir"> installed successfully * IIS7> Application Pools> ASP.NET 4.0> for the .NET Framework v4.0.30319 " * IIS7> my web application> "ASP.NET 4.0" (Integrated) is selected. I don’t know if this is important, but the server windows are Vidows Server 2008 RT Enterprise 64-bit and my computer is 32-bit Windows 7 .

Nothing helped...

enter image description hereenter image description here

+6
source share
1 answer

httpRuntime does not have targetFramework available for installation, uninstall it and it will work.

+7
source

Source: https://habr.com/ru/post/948876/


All Articles