Do you know you can earn heaps of $$ by answering questions on kodlogs, for more info contact us through feedback link at footer? We are Australian based web site and pay you for answering questions

  • Register
Welcome to Kodlogs Q&A, where you can ask programming questions and receive answers from other members of the community. For programmers, by programmers Kodlogs is an open community for anyone that does coding. We help you get answers to your toughest coding questions, share knowledge with your coworkers in private, and find your next IT dream job.
+1 vote
15 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)  
...