c# - Runtime problems for ASP.Net website in IIS7/Win7 .Net 4.0 -


The project's target framework is 4.0 in VS-2010. In IIS7, the net version of the localhost is 4.0. But for my application's app pool, there is no 4.0 framework available to choose from. And after browsing to a file after visiting the site, I get this error:

  Parser error message: Unrecognized feature 'targetFramework' Note that attribute names are case-sensitive. Source error: Line 14: Line 15: & lt; System.web & gt; Line 16: & lt; Compilation debug = "true" targetFramework = "4.0" /> Line 17: Line 18: & lt; Authentication mode = "form" & gt; Source file: C: \ inetpub \ wwwroot \ TestApp \ web.config Line: 16 version information: Microsoft. Net Framework version: 2.0.50727.4927; ASP.NET version 2.0.50727.4927  

Please help me.

Thanks Reddy

You should install the .NET 4 runtime on your server. If you already run aspnet_regiis.exe


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -