Web.Config Error: Element 'system.web' is not supported

Last Reply on Aug 11, 2014 04:49 AM By Azim

Posted on Aug 11, 2014 04:47 AM

errors:

Element 'system.web' is not supported

Element 'httpRuntime' is not supported

when using this code

<system.web>        
<httpRuntime executiontimeout="240" maxrequestlength="20480" />      
</system.web>

 

Posted on Aug 11, 2014 04:49 AM

In which section you have added these elements

It has to be like this

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <system.web>
    <httpRuntime executionTimeout="240" maxRequestLength="20480" />
    <compilation debug="true" targetFramework="4.0"/>
  </system.web>
</configuration>