Click to See Complete Forum and Search --> : Cannot find server error


jspintu
October 16th, 2008, 03:48 AM
Hi,

I am binding data to grid view in asp.net 2.0, c#. the data to the gridview is bound when there is a file in the fileupload control and a click event is generated by another button which checks for the availability of any there. based on that the gridview shows the file uploaded each time. This works fine for small files of less than 2MB size, but when files of greater than 2MB are uploaded, there is a server error that cannot find server comes. Can you explain me the reason for this. Its urgent. Plz reply as early as possible.

MMH
October 16th, 2008, 07:28 AM
check for the maxRequestLength tag in web.config and increase the size of it.
<httpRuntime maxRequestLength="4096" executionTimeout="300"/>

4096 kb = 4 Mb

Try this...

mmetzger
October 16th, 2008, 10:40 AM
As MMH mentions, this is what you need to look at, but be careful about making it too large. If this is a public site, it makes it possible for someone to DoS the site by sending too many large uploads.