Subscribe For Free Updates!

We'll not spam mate! We promise.

May 28, 2013

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

Views:

This Error would be occurred due to wrong  Framework settings in Web.config file or in IIS Server.
Following are cases Which will help you solving this error.



1) This typically happens when you have an attribute of targetFramework="4.0" in the web.config but the App Pool is set to run ASP.NET 2.0. The targetFramework attribute is entirely unrecognized by ASP.NET 2.0 - so changing it to 2.0 won't have the desired effect.
and you  have to switched  AppPool to 4.0.
You could also remove the attribute entirely, however if your site was coded with the 4.0 Framework, then I'm sure something else will cause an error as well.

2) some time this Error  due to registering the framework with IIS is what worked for me:
just run this command on CMD command Prompt . with proper directory according to your PC settings.
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i.

Plese Feel Free to Socializer This Post
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

1 comments:

  1. BlueHost is ultimately one of the best hosting provider with plans for all of your hosting needs.

    ReplyDelete

Become a Fan

visual studio learn