RadAsyncUpload: Sys.WebForms.PageRequestManagerServerErrorException

3 posts, 0 answers
  1. Abhinav
    Abhinav avatar
    7 posts
    Member since:
    Aug 2012

    Posted 15 Aug 2012 Link to this post

    Hi,

    I am adding the RadAsyncUpload user control both in asp:GridView and page in a single file. After selecting a file and click on Upload I am getting the following error.

    ---------------------------
    Message from webpage
    ---------------------------
    Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
    ---------------------------
    OK   
    ---------------------------

    The uploaded file is saved into App_Data folder (like nkdeutts.hpj), but OnFileUploaded event is not firing. Before this event is fired I am getting the above error.

    If I include the user control only in grid view or only in the page, it is working fine. If I use it in both the places, I am getting the error. Please help me in resolving this error as it is important for me to have the control in both the places.

    Thanks.
    Abhinav
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 16 Aug 2012 Link to this post

    Hi Abhinav,

    In order to resolve your issue faster please provide me a runnable sample project which reproduces the issue. Keep in mind that the FileUploaded event is fired after a postback. From the error description I could not determine what is causing it. It is strange that the selected file is uploaded despite of the error.

    All the best,
    Peter Filipov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Abhinav
    Abhinav avatar
    7 posts
    Member since:
    Aug 2012

    Posted 17 Aug 2012 Link to this post

    Hi Peter,

    Thanks for your reply. My issue got resolved. I have commented the UpdatePanel and uploaded the files again, then I got the actual error message as "MaxRequestLength exceeded".

    I did changes to my web.config by adding the following and its got resolved.

    <httpRuntime executionTimeout="1200" maxRequestLength="1048576" useFullyQualifiedRedirectUrl="false" />

    Thanks,
    Abhinav
Back to Top