Microsoft AJAX Extensions: Sys.Debug is null or not an object

One of the breaking changes which was made with the 1.0 release of the Microsoft Ajax Extensions was the renaming of the 'Debug' class to 'Sys.Debug' for reasons of compatiability with other frameworks. Breaking changes like this can often be a source of frustration, however today I was pretty glad that they renamed the class, as it helped me to troubleshoot issues with the awful MSI on a Vista development box.

The problem shows as a JavaScript error which states "Sys.Debug.IsDebug is null or not an object", basically telling you that something is using the wrong version of the Atlas JavaScript framework. The error is fairly common, and is often caused by cached copies of the JavaScript files - so for a lot of people, it can be solved simply by clearing the browser cache, or resetting IIS. However this didn't help with the box in question.

It turns out that even though I'd uninstalled and reinstalled the Ajax Extensions multiple times, the old JavaScript framework files were left on the box, and for some reason when reinstalling the product, the MSI didn't see fit to add the new ones. So I simply uninstalled, deleted what was left of the directory (most of the product actually comes off!), reinstalled, and all was well. If you're having the same issue, check the directory "C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\MicrosoftAjaxLibrary\System.Web.Extensions\1.0.61025.0" (or the equivalent for your installation), and see if you have folders named "debug" and "release". If they exist, and there are .js files inside each of them, then delete them and reinstall - they're the old pre 1.0 versions.

This is what the contents of that directory should look like:

This seems to be the less common reason for the Sys.Debug error, and seems a pretty obvious thing to look at after having found it. However when your Programs and Features list shows up as having the right version, and you've uninstalled/reinstalled/rebooted/cleared cache many times, you don't always think to double check inside the actual directory to make sure that the installer is actually doing what it's supposed to. This is the second time in 2 weeks that I've had problems with a Microsoft packaged MSI. While I'm starting to feel like something of an expert at fixing problems like this, it never feels like an overly productive way to spend my time..

Tags: ,

 Print | Posted on Tuesday, May 22, 2007 9:26 PM | Filed Under [ ASP.NET AJAX ]


Feedback

Gravatar

# Microsoft AJAX Extensions: Sys.Debug is null or not an object

How do these obscure problems with packaged MSI installers fit in with your comments to me last week of "Still, I'd rather be using nice slick DVD packaged MSIs than 'download your own' random quality distros"

18

5/23/2007 8:55 AM | sonic

Gravatar

# Microsoft AJAX Extensions: Sys.Debug is null or not an object

Thank you sooo much for posting this ... I looked all over the web and after a few hours of trying out things, your solution actually worked for me!!

Thnx

6/16/2007 2:42 AM | Heidi

Gravatar

# Microsoft AJAX Extensions: Sys.Debug is null or not an object

Glad I could be of assistance Heidi!

6/18/2007 8:47 PM | Ross Hawkins

Gravatar

# Microsoft AJAX Extensions: Sys.Debug is null or not an object

Thanks a lot ROSS..!!!!

Its worked.

7/18/2007 9:39 AM | Dilish

Gravatar

# Microsoft AJAX Extensions: Sys.Debug is null or not an object

Thank you ROSS. I spend 3 days in following up with other teams without any resolution. Finally, your solution worked.

7/26/2007 10:16 AM | Kiran

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

Finally... after 3 months of battling the problem, something that works. I think I would have your children for this one.

9/19/2007 6:00 AM | Kenn

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

Hurray!! Fixed the problem!! #

Good post.

9/25/2007 9:36 PM | Mark

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

Jipiaje Schweinebacke!

11/3/2007 6:25 AM | sdfsd

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

Great post - solved my problems. Thanks!

11/8/2007 2:18 AM | Andreas Skötte

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

Great post. Many Thanks!

12/14/2007 11:49 PM | Surfacecutter

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

Thank's alot ross..
your solution very2 help me.

1/9/2008 3:54 PM | Bowo

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

If you're having the same issue, check the directory "C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\MicrosoftAjaxLibrary\System.Web.Extensions\1.0.61025.0" (or the equivalent for your installation), and see if you have folders named "debug" and "release". If they exist, and there are .js files inside each of them, then delete them and reinstall - they're the old pre 1.0 versions.

Yes I see these files like you are saying but when you delete them and Reinstall. What do you mean by delete them and reinstall? Mainly what do I need to reinstall? I understand the delete the Debug and Release folders part.

Could you elaborate a little more so I do this correctly.

Thanks so much

Norm

1/12/2008 4:43 AM | Norm Sallman

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

Hi Norm,

Just delete those files/directories mentioned in the posting, and then reinstall the AJAX Extensions MSI.

1/14/2008 9:01 AM | Ross Hawkins

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

I enjoyed you article. The best part about it was that it worked!

When I deleted and reinstalled that did not work

but I did a delete, an uninstall restart iis then reinstall and it worked

1/18/2008 12:39 PM | Kyle

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

Great post.. solved my problem!! thanks for making my friday afternoon off to the pub

9/13/2008 2:36 AM | Mark

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

Thank you...

11/27/2008 5:17 AM | Rüya Tabiri

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

I also had some problems getting this to work the first time, but I had saved the old files inside of a folder called old, which I didn't move out of the Ajax folder structure. Once I deleted those old ones, did the uninstall, I saw the folder completely go away, did the restart IIS (just in case) and did the reinstall of Ajax everything was hunky dory.

Good catch...

12/31/2008 9:06 AM | Peter Grigg

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

thank you:)

1/4/2009 4:06 AM | games secret

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

thank you

1/5/2009 12:14 AM | chat

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

thank you very much

3/6/2009 4:29 AM | sohbet odalari

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

thank you..

3/7/2009 9:49 PM | güzel sözler

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

thnkssssssssssss

3/8/2009 10:43 AM | Mirc

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

thankssssssss

3/8/2009 10:44 AM | Sohbet

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

thanksss youuu

3/8/2009 10:45 AM | Sohbet Odalari

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

thank you kankaa.

3/19/2009 5:59 PM | ligtv izle

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

thanki..

3/29/2009 11:08 AM | maç izle

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

sagol babacan

4/4/2009 2:35 AM | mirc yükle

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

thank

4/12/2009 5:49 PM | ligtv izle

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

thankss..

5/15/2009 10:04 AM | Sohbet Chat Arkadaslik

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

Thank ....

7/2/2009 12:23 PM | tolga

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

Thank you

7/2/2009 12:28 PM | sXe

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

thank you very much my friends..

7/9/2009 3:05 AM | islami chat

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

It's not so easy to buy a the best written essay, especially if you are occupied. I give advice you to set buy an essay and to be free from disbelief that your work will be done by essay writing service

2/28/2010 12:05 PM | WALLACERose25

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

There's no matter if some persons are advanced in college term paper or sample essay performing, they would need prove their writing papers skills anyway. Thence to buy custom essay from the assignment writing service could be a proper way out.

3/4/2010 6:18 AM | BarryMARLENE26

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

It is a smashing issue connected with school. Some people would like to have such high writing abilities. But they must order the dissertation citations offered by the distinguished dissertation writing service.

3/4/2010 9:06 AM | Stewart18Katy

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

You composed a superior essay to aid people with their custom research papers writing assignments, I opine. Even the research writing service will not have an ability to accomplish such kind of great critical essay.

3/5/2010 11:18 PM | HullDona34

Gravatar

# re: Microsoft AJAX Extensions: Sys.Debug is null or not an object

Thanks for all the demanding efforts over the years. It was continually a very important resource course having you blog. It is delicious to transport one's self into the quality of the back when, to see how a cogitative guy has thought before us, and to what exalted elevation we have at last get as far. Best of luck in your new endeavor if you’ll have a without of concept, always aim term papers service. Please keep it up! Cheers.

3/10/2010 3:52 AM | Penelope26Hudson

Post Comment

Title  
Name  
Email
Website / Url
 

Your comment

   
Please add 8 and 8 and type the answer here:

About me

My name is Ross Hawkins and I'm a Developer, Consultant and Writer based in Auckland, New Zealand (pictured below!). My current work revolves around ASP.NET, C#, jQuery, Ajax, SQL Server, and a mix of other Microsoft development technologies.

I also have about 14 years of experience with IBM Lotus Notes/Domino and associated technologies. While Notes/Domino is no longer my primary focus I still like to dabble and keep my skills up to date.

I own and run 2 businesses - Hawkins Consulting Services, and Ignition Development.

Bethells Beach, located in sunny West Auckland, New Zealand


Subscribe

Subscribe to this feed


Search


Popular Content

Troubleshooting WebResource.axd

The .NET 2.0 framework changed the way clientside JavaScript is delivered to the browser. Previously, ASP.NET 1.1 used the aspnet_client directory whereas now 2.0 uses WebResource.axd.

Published on October 8, 2006

Microsoft AJAX Extensions: Sys.Debug is null or not an object

One of the breaking changes which was made with the 1.0 release of the Microsoft Ajax Extensions was the renaming of the 'Debug' class to 'Sys.Debug' for reasons of compatiability with other frameworks. Breaking changes like this can often be a source of frustration..

Published on May 22, 2007

Simple ASP.NET Character Counter

A textbox character counter is a pretty simple piece of functionality, and there's a lot of different ways to apply one to your application. The following method is nice and simple, and can be done using only clientside JavaScript if required, or combined with server side code in order to create a more dynamic effect

Published on December 4, 2006

Simple ASP.NET Character Counter - with Master Page Support

A quick update to my previous character counter article adding some changes for those using it with Master Pages.

Published on February 7th, 2009

Adding Tooltips to Gridview Headers

As the title says, this is a very simple but dynamic way of achieving tooltip text on a header column. It's not overly flash, but it's lightweight and quick to implement.

Published on April 15, 2007

SQL Server Web Report Viewer Issues on Windows 2008 Server/IIS7

A fix for another AXD related issue, this time with the SQL Server Web Report Viewer Control which was being served up via IIS7 on a Windows 2008 server.

Published on June 2, 2007
Updated on April 10, 2008


Archives

March, 2010 (3)
February, 2010 (6)
January, 2010 (12)
December, 2009 (13)
November, 2009 (11)
October, 2009 (12)
September, 2009 (12)
August, 2009 (2)
July, 2009 (7)
June, 2009 (12)
May, 2009 (9)
April, 2009 (9)
March, 2009 (9)
February, 2009 (8)
January, 2009 (7)
December, 2008 (6)
November, 2008 (7)
October, 2008 (9)
September, 2008 (12)
August, 2008 (9)
July, 2008 (6)
June, 2008 (24)
May, 2008 (13)
April, 2008 (16)
March, 2008 (8)
February, 2008 (10)
January, 2008 (1)
December, 2007 (14)
November, 2007 (11)
October, 2007 (11)
September, 2007 (13)
August, 2007 (11)
July, 2007 (5)
June, 2007 (15)
May, 2007 (11)
April, 2007 (9)
March, 2007 (9)
February, 2007 (10)
January, 2007 (8)
December, 2006 (18)
November, 2006 (11)
October, 2006 (14)
September, 2006 (9)
August, 2006 (10)
July, 2006 (4)
June, 2006 (4)
May, 2006 (6)
April, 2006 (3)
February, 2006 (6)
January, 2006 (10)
September, 2005 (2)
August, 2005 (4)

Post Categories

ASP.NET
AJAX
Amusing
NZ
NZ Trains
Notes/Domino
Visual Studio
Web Development
Miscellaneous
Me
Rugby
C#
SQL


Twitter