ASP.NET 4.0 application error: Unrecognized attribute 'targetFramework'

You may experience the following error when you attempt to open your web application:

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.

The error indicates that your account is configured to run with the ASP.NET 2.0 framework, but your application is an ASP.NET 4.0 application.

To resolve the problem simply go to the ASP.NET Version page in Plesk to switch the framework to 4.0:

 
Websites & Domains --> Show Advanced Operations --> ASP.NET Settings
  • 30 Users Found This Useful
Was this answer helpful?

Related Articles

MSSQL database connection string

Please use following connection string syntax for connecting MSSQL DB from your ASP/.NET scripts....

Backup MSSQL database

To export MSSQL Database. If you are subscribed to several hosting packages and have access...

change php.ini settings in Plesk

To modify PHP settings in Plesk:   Websites & Domains --> Show Advanced Operations...

Changing folder permissions in Plesk

From the Plesk panel, go to "Websites & Domains" and then "File Manager".   To the right of...

Connecting to my database remotely

Remote database connections to MySQL/MSSQL are not supported on our shared hosting plans.   To...