I discovered that the problem is with IIS 7 and above. It requires the max request length to be set in a different place. See the following links - http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_22943810.html http://msdn.microsoft.com/en-us/library/ms689462%28VS.90%29.aspx The default value is 30000000. which is 28.6mb. The correct way to set in web.config is -
This config cleared the error I was getting. I wish the errors reported were more descriptive, at least on local machines Does this mean that setting <httpRuntime maxRequestLength="1048576" /> is enough for IIS 6 ? (the live server is win2003) |
||||
|