Home > asp net error > asp.net error compilation targetframework= 4.0

Asp.net Error Compilation Targetframework= 4.0

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive up vote 292 down vote favorite 31 I'm trying to up load my site and I'm getting this error message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive. The site works fine on my local pc but won't open when I loaded it to my host at tried to view it on line. asp.net share|improve this question edited Sep 23 '11 at 14:54 Hans Passant 652k809511598 asked Sep 23 '11 at 14:38 Mike Nacci 1,457286 Does it not show which file contains that or where? –Jon Skeet Sep 23 '11 at 14:39 Was it built previously on pre 4.0 framework? elegantcode.com/2009/11/10/… –kd7 Sep 23 '11 at 14:42 This issue may be resolved by 4.0.3. You can check out the KB article here. @ 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. –Will Nov 28 '11 at 20:03 When I try to install KB2599651 (64-bit download) on Win 7 x64, I get the error message that it "does not apply or is blocked by another condition on your computer". I have the same error as OP, have framework 4.0 installed and have registered it with IIS, and have chosen it as the Application Pool. –Tim Oct 28 '12 at 11:20 Did you open in an older version of visual studio than the project was developed in? Or was it developed in Webmatrix and then opened in an older visual studio? –ruffrey Apr 30 '13 at 14:50 | show 2 more comments 20 Answers 20 active oldest votes up vote 435 down

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million http://stackoverflow.com/questions/7530725/unrecognized-attribute-targetframework-note-that-attribute-names-are-case-sen programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Configuration Error related to targetFramework in web.config up vote 3 down vote favorite 3 I have made a MVC website in Visual Studio 2015 and it works in my localhost. But when i published my website and put into my http://stackoverflow.com/questions/33412042/configuration-error-related-to-targetframework-in-web-config host, it doesn't work. It gives me this error notice: Server Error in '/' Application. Configuration Error Parser Error Message: The 'targetFramework' attribute in the element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, ''). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework. Source Error: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. Source File: G:\xxx\xxx.com\httpdocs\web.config Line: 24 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248 Related parts in my web.config: