Tips for deploying an ASP.NET Ajax website

Jan 05, 2009 by Constantin

Microsoft ASP.NET Ajax is a great platform, and provides lots of functionalities, but you need to know your way around it, to make the most of its capabilities. Today I'll be writing down a couple of tips that will help you when deploying an Ajax website in IIS.

Situation 1. Immediately after deployment, if browsing to an Ajax page, you might see this error in your browser:

'AjaxControlToolkit' is undefined

GET http://localhost/test/ScriptResource.axd?d=iC9u4a78................PFFORnlt_DO9ehkk_A2&t=633537850300000000
500 Internal Server Error

This problem can show up if you are using the ASP.NET Ajax Control Toolkit that Microsoft provides for free at

The server returns this error if the AjaxControlToolkit.dll has the "last modified" time stamp bigger than the server machine's current time. In this case, the site will display the error listed above. This problem frequently occurs if making the deployment on a remote server (e.g. our office is in Europe whereas many of our deployments are on server machines located in the United States).

So the solution for this issue is to change the "last modified" date-time of your DLL, and make it smaller than the server's time. You can do this using the Touch.exe tool, from Windows 2000 Resource Kit. If you don't have that kit (which has been discontinued by Microsoft) then you can go to and download the Win32 Console ToolBox 1.0 , which contains a 3rd party freeware version of touch.exe. Or, as a last resort, there's also a touch.exe in the Microsoft Windows Services for UNIX 3.5 suite (which is pretty big though, around 200MB), available at

Situation 2. If you get past that initial issue, then still you could have problems with the Ajax-related actions/events, i.e. the website is not running as expected, and there's that warning icon in the status bar of your browser, indicating that there are errors in the JavaScript code.

At this point, you need to make sure that the ASP.NET Ajax platform is installed on the server-machine. If it's not, then you need to install it, using the kit downloaded from .

Tags: Ajax  ASP.NET  Programming 


Nicki commented on 9/3/2009 1:32:53 PM

I found out the VERY hard way today that if you have HTTP compression enabled on the site, it causes problem mentioned in 1. Turn it off, restart IIS - error GONE!

Constantin Ionescu commented on 9/8/2009 11:10:49 AM

Nicki, your note made me curious, so I've tried to reproduce the issue. No error showed up when using the default IIS compression, but when switching to a 3rd party compression library (FlatCompress ISAPI) the error did occur indeed. So thanks for the tip!


Cheryl Ray commented on 7/25/2012 8:38:35 AM

Thanks for providing tips for developing websites in ASP.NET for developers.

CairoPowers commented on 10/10/2012 8:44:30 AM

Ajax tool is useful in to refresh a particular portion in your webpages.thanks for sharing this.

Aristotle Goodwin commented on 12/26/2012 11:18:03 AM

Ajax is provides validation on your application to easily authentication your webpage.

Callum Gray commented on 1/22/2013 6:46:21 AM

Ajax toolkit contain timer,updatepannel,Scriptmanager etc.When we use ajax tools in the application,first add the scriptmanager in the page otherwise tools are not working and In output give error.

KennethAnthony commented on 6/13/2013 12:23:36 PM

So the remedy for this problem is to modify the "last modified" date-time of your D L L, and create it small than the server's time. You can do this using the Contact .exe device, from Windows 2000 Source Kit.

accidents personal injury commented on 2/27/2019 7:07:28 AM

I am stunned by your article with such a good topic. Commonly, I see your blog site web sites along with obtaining upgraded making use of the details you consist of yet today's blog would definitely be just one of one of the most significant.

best auto glass repair commented on 3/7/2019 12:55:00 PM

I definitely appreciated examining your blog site. It was quite possibly authored in addition to furthermore incredibly easy to understand. Unlike included blog sites I have actually really taken a look at which remain in fact not that superb.

affordable lawyer commented on 3/16/2019 2:40:41 PM

I at long last discovered outstanding blog post here. I will certainly get back below. I simply included your blog site to my bookmark locations. thanks. Quality offers are vital to welcome the visitors to check out the site page, that is the important things that this web site page is providing.

junk removal expert commented on 3/28/2019 2:39:14 PM

Quickly, the short article is actually the very best topic on this pc registry related issue. I harmonize your final thoughts and also will excitedly eagerly anticipate your following updates. Simply saying many thanks will certainly not just suffice, for the fantastic lucidity in your writing.

tree removal service commented on 4/4/2019 1:32:14 PM

Consider focusing lengthy appropriate to take a look at; large amounts much less make this deal with of the blog post. You have in reality defeated your self with this area.

best house roofing commented on 4/12/2019 7:20:25 AM

Many thanks for sharing such exceptional info with us. Your Message is incredibly special and all information is relied on for new site visitors. Keep it up in future, many thanks for sharing such a beneficial post.

las vegas personal injury commented on 4/23/2019 1:51:57 PM

Good message. I just stumbled upon your blog internet site along with planned to firmly insist that I have truly valued evaluating your write-up. Anyways, I'll be enrolling in your feed together with I choose you to release one more time swiftly.

Your Comment:

Blog Home   SBP Home
RSS Feed       Contact


 Blog Archives  |  Terms of Use  |  Privacy Policy
© 2019 SBP Romania. All rights reserved.