Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6950955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:09:27+00:00 2026-05-27T14:09:27+00:00

Possible Duplicate: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive Firstly, let me

  • 0

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

Firstly, let me say that I’m aware that this question has been asked a few times on this site – but the answers to all of these don’t resolve my issue.

I’m seeing the following issue when I try to add a new managed handler in IIS7:

Unrecognized attribute ‘targetFramework’. Note that attribute names
are case-sensitive.

The environment is Windows Server Enterprise 2008 SP1 with IIS7 installed.

My application is using .NET 4.0. The .NET framework was installed after IIS:

I’ve tried/checked the following:

  • My app pool is using .NET 4.0 (I have one version of .NET 4.0 installed, no beta’s etc.)
  • Ensured .NET 4.0 is registered correctly with IIS using ‘aspnet_regiis.exe -iru’.
  • Recycled the app pool, rebooted the machine.
  • Completely uninstalled .NET 4.0, then re-installed it.
  • Removed the ‘targetFramework’ attribute – this just causes a crash elsewhere.

To me it looks like IIS is still referencing a previous version of .NET somehow, even though my app pools in IIS tell me they are using .NET 4.0.

My website loads fine, but I can’t setup my custom image handler due to this issue.

I’d greatly appreciate any advice.

Thanks.

UPDATE

This is crazy.. I’ve completely rebuilt by environment from scratch:

  • Download ‘Windows Server Enterprise without Hyper V SP1’ from MSDN.
  • Install .NET 4.0
  • Install ASP.NET MVC 3
  • Add the ‘Web Server’ role – ensure App Pool is using .NET 4.0
  • Deploy my project

The same error occurs when I try to add a custom hanlder mapping. I’m either doing something incorrectly / completely stupid or there is some issue with IIS7 in this setup. IIS doesn’t recognise the ‘targetFramework’ attribute from .NET 4.0, even though my app pool is set to use .NET 4.0.

If I use the command ‘aspnet_regiis -lv’, it tells me that only .NET 4 is registered with IIS.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:09:28+00:00Added an answer on May 27, 2026 at 2:09 pm

    Registering the framework with IIS is what worked for me:

    C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Javascript color gradient I have color one (let's say yellow) and color
Possible Duplicate: How do I calculate someone's age in C#? Maybe this could be
Possible Duplicate: Parsing text in C Say I have written to a text file
Possible Duplicate: What is 0x10 in decimal? I notice that Console.WriteLine(18); writes 18, but
Possible Duplicate: Can we change the device time using an application? is that possible
Possible Duplicate: Qt equivalent of PathAppend? Is there a class that handles file paths
Possible Duplicate: C++ templates that accept only certain types For example, if we want
Possible Duplicate: XPath: How to match attributes that contain a certain string I'm trying
Possible Duplicate: A Singleton that is not globally accessible Do you know a good
Possible Duplicate: Why not use tables for layout in HTML? Under what conditions should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.