Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive
19,488
Solution 1
This normally happens when your application pool in IIS is set to 2.0 instead of 4.0
Solution 2
For convenience of others, go to control panel -> Admin tools -> IIS Manager -> View Application Pool -> Change .NET version from 2.0 to 4.0
Author by
Parth Kalra
Updated on July 27, 2022Comments
-
Parth Kalra almost 2 years
I have just uploaded my website on a hosting site.
I get the following error while I try to access my site.
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Line 7:<system.web> Line 8:<customErrors mode="Off"/> Line 9:<compilation debug="true" targetFramework="4.0">
Please help, Thank You Parth.