I have configured my website to IIS but I am getting Configuration Error.
I have also uploaded same project but at that time there were not occured any error.
This is code in my web.config file :
="1.0"="UTF-8"
<configuration>
<configSections>
<section name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup" />
</configSections>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="500000000" />
</webServices>
</scripting>
</system.web.extensions>
<system.webServer>
<defaultDocument>
<files>
<add value="Index.aspx" />
</files>
</defaultDocument>
</system.webServer>
<connectionStrings>
Connection String
</connectionStrings>
<system.web>
<sessionState timeout="60"></sessionState>
<trust level="Full" />
<securityPolicy>
<trustLevel name="Full" policyFile="internal" />
</securityPolicy>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</assemblies>
</compilation>
<pages>
<controls>
<add src="~/UserControls/Chart.ascx" tagName="Chart" tagPrefix="MAS" />
</controls>
</pages>
</system.web>
<system.serviceModel>
<bindings />
<client />
</system.serviceModel>
</configuration>
I am getting Following Error :
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 38: <trustLevel name="Full" policyFile="internal" />
Line 39: </securityPolicy>
Line 40: <compilation debug="true" targetFramework="4.0">
Line 41: <assemblies>
Line 42: <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
Displaying Error in 40th Line in above code...
If anything is remaining please tell me....
Please help me...