CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2008
    Posts
    21

    Question 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.

  2. #2
    Join Date
    Jan 2006
    Location
    18° 32' N / 73° 52' E
    Posts
    416

    Thumbs up 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...

  3. #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
  •  





Click Here to Expand Forum to Full Width

Featured