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

[Solved] Corporate network with Proxy breaks page with Radajax

5 Answers 69 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 02 Nov 2009, 08:24 PM
Hi All,

We have developed a membership based website that relies heavily on RadAjax. Over the last year we have encountered a few users having problems with pages using ajax. The users all seem to be using some corporate proxy.

I am just starting to investigate the problem. I'm guessing this has come up before.. But is this a general problem with proxies OR is there a security setting that these corporate entities have set that causes the errors?

Any insight is appreciated as i'm sure there are more of our users (current and gone) that are experiencing these problems and simple don't tell us.

Thanks!

5 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 05 Nov 2009, 03:05 PM
Hello Rich,

MS AJAX (and I believe all AJAX frameworks) usually have problems with proxies. The most commonly encountered reason are  the URL modifications proxies tend to do. As a result, resource handlers (ScriptResource.axd, RadWebResource.axd) cannot return the requested resource because of modified URL. Same goes with AJAX, i.e. the requested URL is actually modified by the proxy. You will need to make sure proxies to not, by any means, modify URLs. A common URL modification indicator could be if your controls are not skinned and do not have any client functionality working. This indicates that scripts, styles and images could not be retrieved for the reason discussed.

All the best,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Rich
Top achievements
Rank 1
answered on 05 Nov 2009, 03:20 PM
When you say the URL is modified, Do you mean the page source served to the user from the proxy modifies the URL's? Why?
Can you give an example of what the modification might look like?

When you say images, css etc is not working you mean not working for the RadControls correct? Normal css/image links would still work? If not then all websites would be completely unusable.

Frankly i'm really suprised their aren't more messages here. Most corporate 500 companies would have a large number of their corporate computers accessing the web through a corporate proxy correct? Are you saying that those that do use a proxy with URL modification cause ALL websites with AJAX on them to be non-functional? Or just sites using RadAjax controls?

What is the solution here? Not seeing this issue anywhere in the docs or forums is suprising.. and basically is responsible for us missing this prior to completely redesigning our site using RadAjax.

Is there any solution? We having people paying for a service they can't use.. Any help and as much info as you have is appreciated. Thanks,

Rich
0
Vlad
Telerik team
answered on 06 Nov 2009, 12:21 PM
Hello Rich,

RadAjax is based on Microsoft ASP.NET AJAX and if the Microsoft ASP.NET AJAX itself (UpdatePanel for example) does not work - RadAjax will not work as well! You can check also (which most probably is the real reason behind this problem) if these proxies are stripping the JavaScript.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Rich
Top achievements
Rank 1
answered on 06 Nov 2009, 12:27 PM
I know the sites aren't stripping the javascript.. as some things are working.

When you say images, css etc is not working you mean not working for the RadControls correct?

Normal css/image links would still work?

I'm still not sure i got an answer to what might be happening. Why does it not work? Assuming the javascript is not being stripped? Is it a particular call that is modified?

Thanks,

rw
0
Sebastian
Telerik team
answered on 11 Nov 2009, 01:37 PM
Hello Rich,

As explained by my colleagues, you need to verify whether the urls are not changes by the proxies due to url rewriting logic in order to ensure that the images/scripts served through the ScriptResource.axd and WebResource.axd http handlers will be available. The easiest way to check that for the images (for example) is to copy their image url and paste it in the browser address bar to attempt to access them directly.

For the scripts you need to verify that the path where they are registered is valid. I hope these pointers are helpful.

Kind regards,
Sebastian
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Rich
Top achievements
Rank 1
Answers by
Veli
Telerik team
Rich
Top achievements
Rank 1
Vlad
Telerik team
Sebastian
Telerik team
Share this question
or