I am fresher developer in ASP.NET(4.0). I develop one website and it completely work in my local system. But now i upload all files in server and when i load any pages error is occur in Web.config file.
My Web.Config Code is....
<?xml version="1.0" ?>
<configuration>
<connectionStrings>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<customErrors mode="Off"/>
<authentication mode="None"/>
</system.web>
</configuration>
AND ERROR IS (when i run at server)...
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:
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<customErrors mode="Off"/>
<authentication mode="None"/>
Version Information: Microsoft .NET Framework Version:2.0.50727.5456; ASP.NET Version:2.0.50727.5456