|
-
October 16th, 2008, 03:48 AM
#1
Cannot find server error
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.
-
October 16th, 2008, 07:28 AM
#2
Re: Cannot find server error
check for the maxRequestLength tag in web.config and increase the size of it.
Code:
<httpRuntime maxRequestLength="4096" executionTimeout="300"/>
4096 kb = 4 Mb
Try this...
-
October 16th, 2008, 10:40 AM
#3
Re: Cannot find server error
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|