Thursday, March 22, 2007

Ajax Control Toolkit 10301 Fun

And by fun I actually mean a searing pain in the ass.

As much as I'd love to vent about MS's tendency to over complicate the simplest of tasks, I've chosen my poison and need to deal with it.

The problem: Updated my Ajax Control Toolkit to version 10301 and nothing worked. Got some Sys is not defined error.

Path to solution: Google is becoming decreasingly helpful with code problems. Either their algorithms are getting rusty or sites/forums (*cough* Microsoft *cough*) are purposefully hiding data from them. If true, the former is disturbing and the latter is deplorable. Then there's the remote possibility that my search skills are withering... no.

Solution: Cut and paste sections from the web.config that came with the latest toolkit to see if anything would magically make things work again.

This did it:

<system.web>
<!--Other stuff-->
<httphandlers>
<remove verb="*" path="*.asmx">
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false">
</httphandlers>
<httpmodules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
</httpmodules>
</system.web>

What this really comes down to is that I don't understand .NET innards... yet. I do however think the trip is unnecessarily painful (for something they''re just going to dump in a few years anyway). I still remember when RDO was the wave of the future.

A.D.D.-Techno-schizophrenic bastards. Wouldn't be so bad if I didn't so closely resemble them.

Labels: , , ,