• Register
Welcome to Kodlogs, programming questions and answer website.
+1 vote
27 views
I am having issues:

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

<compilation debug="true" targetFramework="4.0">

i tried changing frameworks
by (390 points)  

1 Answer

0 votes
You might have attribute of targetFramework="4.0" in the web.config but the App Pool is set to run ASP.NET 2.0.

also try Registering the framework with IIS :

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i

Try In IIS

Click on Application Pools

Right Click on DefaultAppPool --->> Set Application Pool Default....--->>Change .Net Version to V 4
by (390 points)  
...