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

If you are experiencing the following error when you attempt to open your web application:

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.

 

Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

 

The error is indicating 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 fix this issue, you can go to Control Panel, navigate to "IIS manager" on the left hand, click ".net Application", click "change" icon to choose ASP.NET 4.0 and proper mode, and apply

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

SQL server- network related or instance-specific error happened while connection establishing

  Instance-specific or network related error happening while connecting to SQL server   Please...

OleDB connection string examples

OleDB connection string examples MS Access (Jet) "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA...

Do you allow custom COM components?

Do you allow custom COM components? We are not offering to install the custom COM components...

Error when accessing a WCF services

Error when accessing a WCF services Error when accessing a WCF service: "IIS specified...

How to cache static contents to client with UseMaxAge?

You can consider to caches static contents to the client with UseMaxAge if your website has too...