Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive

InfoPath alternatives for form designing SharePoint

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 whily 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.

fallow my other articles:-

– The underlying provider failed on Open error in Asp.Net Entity framework


– Cannot install .NET Framework 3.5 features on Windows Server 2012

– The underlying provider failed on open in entity framework mvc


You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply