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

[Solved] Ajax Error

5 Answers 110 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ramprasad
Top achievements
Rank 1
Ramprasad asked on 24 Mar 2009, 03:53 AM
Hi,

I am getting the following error when the Ajax control is clicked after session timeout.

Unexpected ajax response was recieved from the server.
This may be caused by one of the following reasons:
    - Response.Redirect
    - Server.Transfer
    - Custom htto handler
    - Incorrect loading of an "Ajaxified" user control

Verify that you don't get a server side exception or any other undesired behaviour, when you set the EnableAjax property to false

Please help us resolve this error. It would be much appreciated if all the possible solutions are listed.

Thanks in advance..
Ramprasad.

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 26 Mar 2009, 03:25 PM
Hi Ramprasad,

I am sending you a small runnable application with the implementation requested by you. Give it a try and see if it works for you or if I am leaving something out.

I hope this helps.

Greetings,
Pavlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Ramprasad
Top achievements
Rank 1
answered on 30 Mar 2009, 10:21 AM

Hi Pavlina,

Thanks for your reply.

But the given example website is not getting build. I am getting this error.

"Error 2 Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

It is because of a version problem of the dll System.Web.Extensions. I am using .net framework 2.0.

Further, could you please explain in which file you have resolved the Ajax error that occurs when the session is timedout.

Again, thanks for your help and I really appreciate it.

Thanks,
Ramprasad.

0
Pavlina
Telerik team
answered on 01 Apr 2009, 10:14 AM
Hello Ramprasad,

Would you please confirm that you have installed Ajax Extensions 1.1 (System.Web.Extensions.dll).
For more information about ASP.NET.AJAX, refer to the following articles:
General ASP.NET AJAX Information
Adding RadControls for ASP.NET AJAX to an existing application

Looking forward to your reply.

Kind regards,
Pavlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Ramprasad
Top achievements
Rank 1
answered on 01 Apr 2009, 10:29 AM
Hi Pavlina,

Thanks again.

I have installed Ajax extension and the build problem is resolved now.

As I asked above, what is the code change / configuration change that we have to make inorder to resolve the error that occurs on session timeout. Can you explain the resolution process please.

Thanks,
Ramprasad.
0
Pavlina
Telerik team
answered on 02 Apr 2009, 03:08 PM
Hi Ramprasad,

I followed your scenario in order to replicate the issue but to no avail. That is why I sent you this project which works properly, in order to try finding a resolution for this issue.
At this point I will ask you to open a formal support ticket and send me a small runnable application, that isolates the problem so I can check it.

Looking forward for your reply.

Kind regards,
Pavlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Ramprasad
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Ramprasad
Top achievements
Rank 1
Share this question
or