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

19 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
  14. Running into the error "Unrecognized attribute 'targetFramework'" while upgrading to .NET 4 can be frustrating, especially when you’re expecting a smooth transition. It usually points to mismatches in configuration files or the environment setup — a small detail, but one that can stop everything from working correctly. This situation reminds me a bit of trying to ดูซีรี่ย์ Netflix with a bad internet connection. You’re excited to see what happens next, but a small technical issue can freeze the whole experience. Just like Netflix streaming needs the right settings and bandwidth, .NET upgrades require compatible configurations and attention to detail. In both cases, fixing the issue brings satisfaction — and lets you get back to what matters, whether it's coding or binge-watching your favorite show.

    ReplyDelete
  15. It feels just like when you're trying to watch free movies online ดูหนังฟรี — you find a promising website, but then something goes wrong: broken links, missing subtitles, or poor quality. Similarly, this error shows up when your configuration file includes target Framework but the server doesn’t support .NET 4.0 yet. The solution? Make sure your hosting environment is properly upgraded and your IIS (Internet Information Services) is configured to use the right .NET version.

    ReplyDelete