23 Comments

I was getting the error "Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive" on an ASP .NET 4.0 website. This was caused by the application pool targeting the wrong .net framework, change the application pool to the correct .net framework and the error will be resolved.

 

Error

image

Solution

image

23 Replies to “How to resolve: "Unrecognized attribute ‘targetFramework’. Note that attribute names are case-sensitive"”

  1. You may also get this error if you have opened a website (not using a solution) that was developed for in VS2010 framework 4.0 with VS2008 on windows XP. In this scenario the app is using XP’s webserver rather than VS2010’s built in webserver.

  2. Very nice post, i was searching about the error for last one hour. But you have resolved my error.

    Thanks

  3. in menu

    Website -> Start Options -> build tab – > Select Target Framework in combo box (.NET FrameWork 4)

  4. Server Error in ‘/’ Application.

    Configuration Error

    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.

    Source Error:

    Line 10:
    Line 11:
    Line 12:
    Line 13:
    Line 14:

    Source File: D:\WEBDATA\highgradetutors.com\web.config Line: 12

    Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456

  5. Thanx it helps me…!
    Can u Tell me how to install IIS on Windows7 actuaaly I am facing problem during installing iis i.e. (Not full featurs are added)
    and IIS is not Install to my PC(I am Having Legal Windows7 version).

  6. Just go to Control Panel > Programs and Features > Turn Windows features on or off > Check Internet Information Services
    If you are installing it on a dev machine for the first time, make sure all subfolder checkboxes are checked, so you can play arround with all the features.

  7. hello really a good but i have a problem.

    i have .net 3.5 framewrok so as go to following path

    Website -> Start Options -> build tab – > Select Target Framework in combo box

    i found .Net FrameWork 3.5

    & the application i want to run on my pc is build in 4.o.
    so how do i solve this problem?

  8. hello,i have actually Hardik problem
    i have .net 3.5 framewrok so as go to following path
    Website -> Start Options -> build tab – > Select Target Framework in combo box
    i found .Net FrameWork 3.5

    so what do i do?i need help immediately

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Related Posts