-4

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

I am using window xp and iis 5.1 to run the application.

error is occurred

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

Line 32:            </providers>
Line 33:        </roleManager>
Line 34:        <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
Line 35:            <assemblies>
Line 36:                <add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
Community
  • 1
  • 1
imran
  • 68
  • 1
  • 6
  • This issue may be resolved by 4.0.3. [You can check out the KB article here.](http://support.microsoft.com/kb/2599651) @ me and let me know if this fixes your issue, I may try to get a canonical question/answer for this error and close dupes. Thanks. –  Nov 28 '11 at 20:03

2 Answers2

2

Make sure that you have configured IIS to run your application in .NET 4.0.

Damir Arh
  • 17,637
  • 2
  • 45
  • 83
1

Registering the framework with IIS is what worked for me:

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i
kenik
  • 1,788
  • 13
  • 12