find a location for property in a new city

Wednesday 24 March 2010

Unrecognized attribute 'targetFramework' when upgrading to .NET 4

I received and error saying "Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive." with a description of "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."

Unlike .NET v3 and v3.5 which were essentially extensions to v2. .NET4 is an entirely self contained brand spanking new (and much lighter) framework. As such you will need to change your application pool like so:

Go to IIS and find the Application Pool you are using. Right click it and select Basic Settings then simply change the target framework to .NET Framework v4 as illustrated.

Follow britishdev on Twitter

9 comments:

  1. ain't working ,, still the same error !! :(

    ReplyDelete
  2. worked for me mate. sure you got the right application pool?

    ReplyDelete
  3. Didn't exactly help, but try this fix that worked for me. I posted the response here (search for ‘goHiker’):

    http://forums.asp.net/p/1627935/4425127.aspx/1?p=True&t=634414101513664807

    ReplyDelete
  4. Works for me. Thanks.

    ReplyDelete
  5. Great, exactly what I needed to make it work.
    Thanks.

    ReplyDelete
  6. หนังฟรี UHD24.COM, an online movie website, was established for the purpose of allowing viewers to have fun and enjoy online movies and online series that are available to watch in abundance today.

    ReplyDelete