I got this error while working in Asp.Net.
Server Error in '/' Application.
An error occurred during the processing of a configuration file required to service this request
I got this error while deploying my web site to .Net framework 4.0. In my local machine it is working fine.
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.
Solution:
The above error will come usually if you write the below line in web.config file.
<compilation targetFramework="4.0" defaultLanguage="c#" debug="true">
This error comes if your .net framework set as .Net 2.0. So to resolve this issue, change your .Net framework settings to 4.0
Server Error in '/' Application.
An error occurred during the processing of a configuration file required to service this request
I got this error while deploying my web site to .Net framework 4.0. In my local machine it is working fine.
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.
Solution:
The above error will come usually if you write the below line in web.config file.
<compilation targetFramework="4.0" defaultLanguage="c#" debug="true">
This error comes if your .net framework set as .Net 2.0. So to resolve this issue, change your .Net framework settings to 4.0