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

PageRequestManagerServerErrorException

4 Answers 142 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 15 Jul 2009, 11:54 AM
Hi all,

I wonder if I am doing something "wrong" here...

I have a relatively simple form with one RadAjaxPanel, a few rad or ASP controls all within the panel and a button.
I saw the warnings about RadAjaxManager and RadAjaxPanel but there is no RadAjaxManager on my page.

When I press the button a first time, it goes to the server (Ajax request) to fetch some more information and then ask confirmation from the end user via some javascript injected with

                RadAjaxPanel1.ResponseScripts.Add("AskConfirmation();");

The user gets correctly a radprompt dialog.
When he presses "OK", I set a hiddenfield to "1" and fires the click() method on the same button.

However, from that point on, no more request seems to work and I get the error

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

I tried to debug on the server side but I can't hit any breakpoint even break all does not work.

Am I doing something drastically wrong by firing a button from within an injected javascript?

Many thanks

Eric



4 Answers, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 20 Jul 2009, 07:06 AM
Hello Eric,

Although I am not sure where the exact source of the issue is, I suggest you utilize the troubleshooting tips from this documentation topic to track it down.

It can also be useful to get familiar with the 'Web Resources Demystified' series of blog posts by my colleague Atanas Korchev and the third series in particular:

http://blogs.telerik.com/atanaskorchev/posts/08-02-27/web_resources_demystified_part_1.aspx
http://blogs.telerik.com/atanaskorchev/posts/08-02-28/web_resources_demystified_part_2.aspx
http://blogs.telerik.com/atanaskorchev/posts/08-07-18/web_resources_demystified_part_3_troubleshooting.aspx

as they can help us identify the reason for the erroneous behavior and how to address it.

Best regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Eric
Top achievements
Rank 1
answered on 21 Jul 2009, 12:04 PM
In my case, the problem was that I was trying to embed HTML tags within a Text field and IIS refused to serve it for security reason.
In summary, my http request was refused.
0
Lubna Ansari
Top achievements
Rank 1
answered on 10 May 2010, 03:02 PM
Hi Eric,

I am also getting the same error while embeding HTML tags within a Text field.
Did u get solution for this??

Regards,
Lubna.
0
Eric
Top achievements
Rank 1
answered on 10 May 2010, 03:07 PM
Hi Lubna,


To be honest, I don't remember exactly because I have been doing other things since.

I think I just stopped trying to make my confirmation message pretty by using HTML tags.
If I remember well, I think I just used plain text...
Tags
Ajax
Asked by
Eric
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Eric
Top achievements
Rank 1
Lubna Ansari
Top achievements
Rank 1
Share this question
or