Knowledgebase: Windows Hosting
Asp.Net error Unrecognized attribute 'targetFramework'
Posted by PremiumReseller.com on 28 January 2012 12:38 PM

You upload website to hosting space and receive error

Configuration Error
Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

The error means website is created with Asp.net 2.0 and you upload Asp.net 4.0 website.

You need to configure correct Asp.net version before uploading website files.

If files are already uploaded, you can do following steps to fix

+ Remove or rename web.config file

+ Update Asp.net version in Website Settings in WebsitePanel.

+ Re-upload web.config file to wwwroot folder.

(115 vote(s))
This article was helpful
This article was not helpful