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

error with url mapping

7 Answers 88 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jonathan Hunter
Top achievements
Rank 2
Jonathan Hunter asked on 08 Aug 2008, 12:27 PM
In a website I'm developing, I'm mapping URL paths to specific files with query strings. This was working great with the non-Ajax controls (both Q1 and Q2) but when I put in the AJAX Manager, or Panel, it breaks. Each time a page starts the request, an error will pop up saying the following:

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

If I replace <telerik:RadAjaxPanel></telerik:RadAjaxPanel> with <radA:RadAjaxPanel></radA:RadAjaxPanel> everything goes back to working as expected.

Is there a way to get the AJAX version to work with URL mapping like the non-AJAX version? I can use the standard <radA:RadAjaxPanel> but I'd like to swap it out if at all possible.

Thanks!

7 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 11 Aug 2008, 06:02 AM
Hello Jonathan,

The new AJAX controls as well the other controls from the ASP.NET AJAX suite are built on top of the MS AJAX framework. Have you tried replacing the panel with the standard UpdatePanel? Do you get the error there as well?

Best wishes,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jonathan Hunter
Top achievements
Rank 2
answered on 11 Aug 2008, 12:25 PM
Hello Konstantin,

I switched out a non-AJAX (Prometheus) RadAjaxPanel with the AJAX Extensions Update Panel (I assume this is what you meant) and it started tossing that same error again.

This kinda baffles me. Why would it work with the standard RadAjaxPanel and not the AJAX/Prometheus version? Is it just based on different code?
0
Konstantin Petkov
Telerik team
answered on 11 Aug 2008, 12:40 PM
Hello Jonathan,

This is e exactly what I meant. The new RadAjax is built on top of MS AJAX and generally those scenarios which fail with MS UpdatePanels for example will fail with the new RadAjaxPanel/RadAjaxManager. The "Classic" RadAjax framework is entirely different though and we support some other scenarios there. While on this topic, you may find the following articles helpful:

RadAjax for ASP.NET vs RadAjax for ASP.NET AJAX
What's New in RadAjax for ASP.NET AJAX
Changes and backwards compatibility
Current RadAjax Limitations

Greetings,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jonathan Hunter
Top achievements
Rank 2
answered on 11 Aug 2008, 01:01 PM
Hey Konstantin,

This is what I was afraid of. I appreciate your help tremendously. Thanks!

Jonathan Hunter
0
Mike
Top achievements
Rank 1
answered on 31 Dec 2008, 10:11 PM
Just wanted to update this post as i have found a fix for this issue and thought it might be useful for anyone hitting the same issue:

Post this code on your front-end code...

<script language="JavaScript" type="text/javascript"
function EndRequestHandler() { theForm.action = document.location.href; theForm._initialAction 
= theForm.action; } iftypeof(Sys) != "undefined" ) { EndRequestHandler(); Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); 
}</script> 

Hope this helps

Duncan


0
Thomas Kristensen
Top achievements
Rank 1
answered on 20 Mar 2009, 01:40 PM
Thanks a lot for this info. Had the same issue and the above Javascript solved my problem. Strange that this is not mentioned anywhere in the documentation. Anyone serious about E-Business use URL rewriting.
0
leah solomon
Top achievements
Rank 1
answered on 18 Aug 2009, 03:18 PM
I am not getting an error, my problem is like this:
I have an asp.net 3.5 website, I actually have more than one and my webrewrite works on all the others, but not this one.  The only difference I can think of is I am using Ajax toolkit on this one. 

If I manually type in the new url,,,that WORKS!, BUT  if I hit it from a link that is directing me to the old link, it doesn't rewrite it!  Any help for me??  If you want you could also email me at leahsowo@gmail.com.  Thanks.
Tags
Ajax
Asked by
Jonathan Hunter
Top achievements
Rank 2
Answers by
Konstantin Petkov
Telerik team
Jonathan Hunter
Top achievements
Rank 2
Mike
Top achievements
Rank 1
Thomas Kristensen
Top achievements
Rank 1
leah solomon
Top achievements
Rank 1
Share this question
or