Click here to Skip to main content
15,883,955 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:


Line 11:     <customErrors mode="Off">
Line 12:     </customErrors>
Line 13:        <compilation debug="true" targetFramework="4.0"/>
Line 14:     <pages >
Line 15:       <controls>


Source File: C:\Inetpub\vhosts\sanraysinfotech.com\httpdocs\web.config    Line: 13

Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5456


when i upload my webpages in a ftp it showing this error but it run absolutely fine in locally.i am doing my web application in visual studio 2010.
Posted

1 solution

You have probably compiled for .NET 4 and your server looks like it only supports .NET 2.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900