Ok so I had this weird 'Sys is undefined' error in ASP.Net Ajax client side scripts.
It was only happening in IE which was a bit frustrating and only for certain users so I had a sneaking suspicion that it was a client side issue.
Since this is such a generic error (loosely translated to 'it didn't work') there are many posts and suggestions about this plastered over the forums, unfortunately none that I found seemed to solve my problem so I had to resort to trying to figure it out for myself.
After tying myself in knots trying to work out what was going on I finally stumbled on the solution to my particular issue. It turned out that (for me anyway) it was a combination of a couple of problems. Firstly I had to turn off ScriptCombining on the ToolkitScriptManager (again it worked fine for me but not for all users), AND I also had to turn off script compression.
IE didn't seem to be able to decompress the scripts client side and so was bailing out at the first character.
For reference, to disable compression it was this quick entry in the web.config file.
<system.web.extensions>
<scripting>
<scriptResourceHandler enableCompression="false" enableCaching="true"/>
</scripting>
</system.web.extensions>
So, if IE is giving you random loading errors for your Ajax.Net scripts, try disabling compression, and/or turning off CombineScripts (its on by default so you will have to specifically set it to false).
Monday, 15 February 2010
Friday, 4 December 2009
hello world
Just signed up to this blog post, didnt expect to actually have to write something yet but I may as well fill the space...
So I seem to be on some crazed technology binge at the moment. Just installed Digsby, signed up to Twitter, bit.ly (a bit like tiny url but you can track the links) and of course Blogger.
Not sure why I have suddenly decided to take on all these extra things to manage, though I have my suspicions. I have been recently introduced to joel spolsky and have read a couple of his books so I guess I'm a little inspired. Perhaps I can steal some of his stuff directly and seem that little bit more interesting than I actually am (just kidding of course - ill never seem more interesting)
Its no doubt a fad that ill get bored of immediately, thats no reason not to give it a try though eh..? Who knows the next blog might actually be worth reading...
So I seem to be on some crazed technology binge at the moment. Just installed Digsby, signed up to Twitter, bit.ly (a bit like tiny url but you can track the links) and of course Blogger.
Not sure why I have suddenly decided to take on all these extra things to manage, though I have my suspicions. I have been recently introduced to joel spolsky and have read a couple of his books so I guess I'm a little inspired. Perhaps I can steal some of his stuff directly and seem that little bit more interesting than I actually am (just kidding of course - ill never seem more interesting)
Its no doubt a fad that ill get bored of immediately, thats no reason not to give it a try though eh..? Who knows the next blog might actually be worth reading...
Subscribe to:
Posts (Atom)