HTTP Error 413.1 – Request Entity Too Large – The page was not displayed because the request entity is too large.
Large file? Large problem! On IIS you can get this error while trying to upload. Read this and then think… maybe edit the web.config file in the root? So you try adding this, or something similar:
<serverRuntime> <uploadReadAheadSize>2147483647</uploadReadAheadSize> </serverRuntime> <security> <requestFiltering> <requestLimits> <maxAllowedContentLength>2147483647</maxAllowedContentLength> </requestLimits> </requestFiltering> </security>
but you simply get: HTTP Error 500.19 – Internal Server Error – The requested page cannot be accessed because the related configuration data for the page is invalid. – so, whatever you were thinking is: Wrong!
When using IIS manager you get:
<security> <requestFiltering> <requestLimits maxAllowedContentLength="2147483647" /> </requestFiltering> </security>
while the ‘uploadReadAheadSize’ does not appear anywhere in the web.config. But: it helps and there are no more errors while uploading!
So you have to set these values in IIS Manager itself.
Have a nice day!