Saturday, March 24, 2012

everything was fine, when suddenly AJAX Stopped working

I was working on a small AJAX application on a windows 2003 server web application running on IIS 6.0

I putted an AJAX timer control on the web form

and on the Tick Event I wanted a label called Label1 to take the current time every second

code:

Label1.Text = Now.ToString()

It was working , but somehow I was changing in the IIS configuration when the application stops working

I tried the same application on another PC (windows xp + Visual Studio 2005), it worked fine in debugging mode

so I installed Visual Studio 2005 on the server to know what's the problem, and in debugging mode, the application starts normally, but the label does not change its text value

I uninstalled AJAX Extensions, reinstalled again, nothing changed

I tried : aspnet_regiis -i

nothing changed, please help, I tried a lot, I think there is something about security scripts on the server that is not allowing AJAX scripts to work.

thanks in advance.

Hi,

Please make sure the virtual directory isconfigured as a Application and using the asp.net 2.0.

1. Run inetmgr command

2. Expand and navigate to the virtual directory

3. Right click it and select properties

4. Click Create Button in Application Settings section

5. Active ASP.NET tab

6. Make sure asp.net version is correct

Hope this helps.

No comments:

Post a Comment