‘AJAXControlToolkit’ is undefined – iislog sc-win32-status = 64 and sc-status = 200

So I deployed a killer internal application today that well over 400 employees will be using on a daily basis. I decided to use the AJAX control toolkit to give the application better error checking and more of a windows application feel without having to deal with the deployment and maintenance of a windows app. We all know how fun that can be in an enterprise!! Needless to say, the application passed through QA with flying colors and moved on to production. That is where we ran into some problems. It was random, and it was very difficult to trace, not to mention we didn’t have technical people doing the troubleshooting at the client level. As we started to parse the IIS logs, we found that we were getting a IIS Status 64 which is a network type error from IIS. It was always preceeded with a success (200) status. Our server engineering department went the route of verifying we were all good on the network side while I kept trying to get on an effected machine.

After finally getting on the phone with someone who was experiencing the issue, I was able to determine the issue was related to a JS error. ‘AJAXControlToolkit’ is undefined. GREAT, but WHY???

SIDE NOTE: We were very early adopters of the toolkit during its beta stages. MS was great with helping to resolve issues as well as incorporate our feedback in future releases. One of those items was the script combiner in the library. The toolkit is VERY heavy when it is not compressed (~500k) based on what controls you are using. This amounts to 14 different scripts being pulled down on our servers which is one for every control type and a few for the framework itself. As you can guess, this is pretty taxing on the client vs. just getting one file. We manually implemented the script combining on our customer site which took 3 seconds off the average download time due to less items having to be called from the server. Not to mention compression that took the ~500k script to ~90k. With the following in the latest release you can do this without having a manual work around.

The problem

Bad
<ajaxtoolkit:ToolkitScriptManager ID="_ScriptManager"
     runat="server" combinescripts="true" />

Great right? Wrong… this is what was causing the issue!!! The script combiner for some reason doesn’t always generate the script for the client. It is pretty buggy actually. We were finding that clearing the users cache would only work until the next build would come out. After that, we would have to clear the cache again for all 400 clients. Because of this we were ready to scrap the controls (which MADE the application) for standard ASP.NET controls.

So, the workaround… go back to our standard hack that combined the files… and for those that don’t want to do the hack? Switch the combinescripts tag to true and your problem will go away!

The fix:

Good
<ajaxtoolkit:ToolkitScriptManager ID="_ScriptManager"
     runat="server" combinescripts="false" />

Needless to say, this was a big “phew” from us. We believe the framework has a lot of great potential for internal apps by allowing us to have a windows like feel without the deployment nightmare. The application has already proved to have a huge payoff with this fix alone. We were able to deploy enterprise wide in less than 10 seconds with an automated build.

Posted on December 13, 2007 at 4:23 pm by Matthew Williams · Permalink
In: Programming, Troubleshooting

5 Responses

Subscribe to comments via RSS

  1. Written by Mike
    on January 22, 2010 at 3:45 pm
    Permalink

    Hey, this worked for me too. Thanks a bunch!

  2. Written by MARCUS
    on July 3, 2010 at 8:07 pm
    Permalink


    PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. High quality pills. Buy pills online

    Buy:Human Growth Hormone.Prevacid.Retin-A.Arimidex.Zyban.Nexium.Zovirax.Valtrex.Lumigan.Mega Hoodia.Accutane.Petcam (Metacam) Oral Suspension.100% Pure Okinawan Coral Calcium.Prednisolone.Actos.Synthroid….

  3. Written by KENT
    on July 21, 2010 at 12:38 am
    Permalink


    Medicamentspot.com. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. High quality drugs. Buy drugs online

    Buy:Viagra Professional.Viagra Super Force.Cialis.Maxaman.Tramadol.Cialis Professional.Super Active ED Pack.Viagra Soft Tabs.Levitra.Cialis Super Active+.Cialis Soft Tabs.Viagra.Propecia.Viagra Super Active+.Zithromax.Soma.VPXL….

  4. Written by GREGORY
    on July 21, 2010 at 6:48 am
    Permalink


    MedicamentSpot.com. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. Low price drugs. Buy drugs online

    Buy:Lumigan.Human Growth Hormone.Prevacid.Synthroid.100% Pure Okinawan Coral Calcium.Mega Hoodia.Valtrex.Nexium.Arimidex.Zovirax.Retin-A.Actos.Zyban.Petcam (Metacam) Oral Suspension.Prednisolone.Accutane….

  5. Written by Galleries
    on August 29, 2010 at 6:04 pm
    Permalink

Subscribe to comments via RSS

Leave a Reply