Saturday, March 24, 2012

Ajax Timer not working in published website

Hi,

In my project I am using Ajax timer for loading the images every 20 seconds. This functionality works fine in my localhost. but when i publish the site in the server, i am getting the following error.

Method not found: 'Void Microsoft.Web.UI.Controls.Timer.remove_Tick(System.EventHandler`1<System.EventArgs>)'.

Someone please help me whats wrong with the server where i am publishing my site.

TIA,

Prashanth

You are using the System timer, this is the wrong time, you need the Ajax timer:http://alpascual.com/blog/al/archive/2006/12/21/Code-Snip-_2200_AJAX-Timer_2200_.aspx

Also check your config file :http://ajax.alpascual.com/Walkthrough/AtlasToAspNetAjax.aspx

Hope it helps


Hi,

I am using Ajax Timer inside the update panel and I am usingAjaxControlToolkit assembly.

The error is stil there.


The GAC (Global Assembly Cache) of your server on wich you have published the code should contain the ajax dll.

Check if you have that?


I have the ajax dll in GAC on my server. Now i am facing one more problem. When i try to access the default page I am getting "Object Reference Not set to an instance of an object " exception.

any idea on this problem?

Thanks,

Prashanth

No comments:

Post a Comment