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:
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:
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.
Registering the framework with IIS is what worked for me:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With