asp.net - Could not find schema information for the element 'httpruntime' -


I am trying to increase the execution timeframe and file upload limit on my ASP.NET website, but when I

  & lt; HttpRuntime executionTimeout = "110" maxRequestLength = "4096" & gt; & Lt; / HttpRuntime & gt;  

I get the following errors:

not found schema information for element 'httpruntime' element schema information not found for element 'execution timeout' element ' Schema information not found for 'maxRequestLength'

According to this MSDN Library, I should do this, so what am I missing here?

You have tried:

  & lt; Location path = "YourUploadPage .aspx" & gt; & Lt; System.web & gt; & Lt; HttpRuntime maxRequestLength = "{its value here}" execution time = "{its value here}" /> & Lt; /system.web> & Lt; / Location & gt;  

means, & lt; HttpRuntime & gt; section & lt; System.web & gt; or & lt; Location & gt; Should be inside & lt; System.web & gt; section.


Comments