views:

59

answers:

0

Hi,

I'm doing some work at the moment trying to convert some legacy code into .net 3.5. This involves taking both .aspx page and codebehind and rewriting most of the latter whilst retaining most of the former.

I've run into an annoying bug which seems to be caused by something conflicting with the MS Ajax Toolkit and I can't work out what it is. The error is in the _loadScriptsInternal function, on this line:

 headElements[0].appendChild(scriptElement);

And the error is "object expected". Unsurprisingly when you look at "scriptElement" in the debugger, it's empty.

I'm not really sure how I can start to debug this. Any suggestions would be gratefully received.