This was an extremely odd error that I’m posting here for others and probably my own future reference.

We recently deployed an Intranet system that used some of the ASP.Net AJAX framework, two users were receiving a javascript error and not displaying a tabcontrol. The first js error was “invalid character at line 0″ and the second was “ajaxcontroltoolkit is undefined”. This baffled me as all the client machines were identical (in fact they were using a Citrix client so they were definitely identical).

Anyway turns out it’s something to do with the last modified date of the assembly if it’s somehow set to be in the future compared to the date of the server it is running on (possibly due to a converstion from UK to US date formats for example) you will get this error.

The solution is to simply change the last modified date of the assembly which can be done either using one of several freeware applications available or by using the very simple console application provided at Plain Old Stan’s blog. I used this and just set the date back a year and it resolved the issue.

Hopefully that’ll be of some use to someone.

One Response to ““invalid character” and “ajaxcontroltoolkit is undefined” errors on some comptuers”

  1. Michael Kelleher

    March 9th, 2010 at 4:11 pm

    I had the same issue. I hope this helps someone as it was driving me mad for days. The autocomplete extender would work for some users and not for others

    At the top of my aspx page i was registering the ajax control toolkit

    I resolved the issue by removing this line from the page and declaring the ajaxcontroltoolkit in the web.config

    Reply

Leave a Reply

About DannyT

The blog: danny-t.co.uk - General geek talk focusing on Rich Internet Applications, Microsoft and Adobe technologies and the web in general. The business: Moov2.com - RIA development agency Dan Thomas has been an Internet geek since circa 1994. He has been running Moov2 since 2003 and prior to that worked as a Flash developer for one of europes largest E-learning providers.

Copyright © 2010 Danny-T.co.uk

CSS Template By RamblingSoul | WordPress Theme by Theme Lab and Best Hosting.