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

17 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. Through globalnewsory, you weave together stories that not only inform but also inspire others to embrace diverse perspectives. Global News Ory

    ReplyDelete
  7. I truly enjoyed your article. It was informative and captivating from start to finish. Thanks for sharing your workPureInformation

    ReplyDelete
  8. This article answered so many of my questions. Thank you for presenting the information so clearly and effectively! amazon nonprofit account

    ReplyDelete
  9. http://www.britishdeveloper.co.uk/2010/03/upgrade-to-net-4-unrecognized-attribute.html?sc=1740657356215#c4545324795381176249

    ReplyDelete
  10. Thank you for the content you shared with me to learn from. I hope it will be useful for me and those who read it. รับทำเว็บไซต์ มหาสารคาม

    ReplyDelete
  11. Hello, I just visited your blog for the first time and I think this blog will be useful for everyone.
    รับทำเว็บไซต์ จันทบุรี

    ReplyDelete
  12. This article is an excellent resource for anyone looking to learn more about the topic.

    ReplyDelete
  13. This article is thought-provoking and helps readers gain a fresh perspective on the topic. website

    ReplyDelete