This is a migrated thread and some comments may be shown as answers.

RadAsyncUpload: Sys.WebForms.PageRequestManagerServerErrorException

2 Answers 106 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Abhinav
Top achievements
Rank 1
Abhinav asked on 15 Aug 2012, 12:40 PM
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 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 16 Aug 2012, 02:55 PM
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.
0
Abhinav
Top achievements
Rank 1
answered on 17 Aug 2012, 05:15 AM
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
Tags
AsyncUpload
Asked by
Abhinav
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Abhinav
Top achievements
Rank 1
Share this question
or