Wednesday, January 03, 2007

"Sys is undefined" in MS AJAX RC 1 on VISTA

Today, I'm working on an article about Microsoft AJAX Control Toolkit, which is based on AJAX Core (AJAX Extensions on the serverside, AJAX Library including the clientside Javascript Framework).

So I downloaded the latest AJAX Control Toolkit Bits from Codeplex and installed the VS-Templates as well.

But, no sample code was working on my machine (VISTA, VS.NET 2005 SP1, IE7 and FF2)!

I've got always the following Script-Error: "Sys is undefined" (Sys is one of the major "classes" of the MS AJAX Library). It seems, that the browser is not able to detect the Script-Library, where this object is located.

I've checked the references to the AjaxToolkit.dll, did all the config mentioned in this thread (http://forums.asp.net/1516718/ShowThread.aspx) - no success.

If you google for "Sys is undefined" "AJAX" you will find loads of post about this problems. Seems to exist since ages...

At least, when I'm running the sample on a Windows XP (with IE7), everything work as expected. --> expected means correct!! :-)

23 comments:

Anonymous said...

If you can send me your web.config file in email (scottgu@microsoft.com), I can have someone take a look.

Typically this error happens when something isn't registered right, or if you have an authorization rule that is blocking downloading the script library.

Thanks,

Scott

ericerau@yahoo.com said...

*add open close tags*

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="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

Patrick Spieler said...

thanks, eric

but the code from my example seems to be okay. did all the hints from http://forums.asp.net/1516718/ShowThread.aspx, but still no sucess.

still trying to find a solution...

Denny Love said...

I'm getting the same problem. My scripts were working fine then I start getting the Sys is undefined error. If you get any luck with this please let me know.

Anonymous said...

Have same Problem but only in Standart.NET Pool. Switching to Default Pool fixes this problem but creates new one - debugginng is not possible.

Anonymous said...

I got this error. Replaced the web.config in my web solution by a web.config of a new AJAX enabled website project and got it working... May it helps you...

Regards
Shibu

Patrick Spieler said...

My problems with 'sys is undefined' are solved with RTM (http://sharpcuts.blogspot.com/2007/02/sys-is-undefined-in-ajax-rtm-solved.html). Thank's for all the input!

MangeshN said...

Check here the good explanation...
http://mangeshnerkar.blogspot.com/2008/07/demystifying-sys-is-undefined.html

Anonymous said...

You know ,I have some flyff penya,and my friend also has some
flyff money,do you kouw they have the same meaning,Both of them can be called flyff gold,I just want to
buy flyff penya,because there are many
cheap penya

Anonymous said...

You know ,I have some maple mesos,and my friend also has some mesos,do you kouw they have the same meaning,Both of them can be called
maple story mesos,I just want to
maplestory mesos,because there are many
cheap mesos

Anonymous said...

aion chinaaion china gold,
aion cn goldaion chinese gold,
aion gold chinaaion gold chinese,
china aion goldchinese aion gold,
aion china kinaaion chinese kina,
aion kina chinachina aion kina,
aion china buybuy aion china,
aion chinese server goldaion cn server gold,
aion china server goldchina aion server gold,
chinese aion server goldaion chinese server gold,
aion cn server kinaaion china server kina,
china aion server kinachinese aion server kina

dofus kamas said...

Now do you worried about that in the game do not had enough cabal online alz to play the game, now you can not worried, my friend told me a website, in here you can buy a lot cabal alz and only spend a little money, do not hesitate, it was really, in here we had much cabal gold, we can sure that you will get the cabal money, quick to come here to buy cabal alz.

I like play online game, I also buy dofus kamas and kamas, the cheap kamas is very cheap, and use the dofus gold can buy many things, I like dofus kamas, thanks, it is very good.

cheap penya said...

I like play online game, I also buy FFXI Gil and FFXI Gil, the FFXI gold is very cheap, and use the Final Fantasy XI gold can buy many things, I like cheap Final Fantasy XI Gold, thanks, it is very good.

I like play online game, I also buy flyff penya and flyff penya, the flyff money is very cheap, and use the flyff gold can buy many things, I like cheap penya, thanks, it is very good.

cheap penya said...

I like play online game, I also buy FFXI Gil and FFXI Gil, the FFXI gold is very cheap, and use the Final Fantasy XI gold can buy many things, I like cheap Final Fantasy XI Gold, thanks, it is very good.

I like play online game, I also buy flyff penya and flyff penya, the flyff money is very cheap, and use the flyff gold can buy many things, I like cheap penya, thanks, it is very good.

Anonymous said...

cheap wedding gowns,
discount bridal gowns,
China wedding dresses,
discount designer wedding dresses,
China wedding online store,
plus size wedding dresses,
cheap informal wedding dresses,
junior bridesmaid dresses,
cheap bridesmaid dresses,
maternity bridesmaid dresses,
discount flower girl gowns,
cheap prom dresses,
party dresses,
evening dresses,
mother of the bride dresses,
special occasion dresses,
cheap quinceanera dresses,
hot red wedding dresses

products said...

China Wholesalers has been described as the world’s factory. buy products wholesaleThis phenomenom is typified by the rise ofbusiness. Incredible range of products available with China Wholesale “Low Price and High Quality” not only reaches directly to their target clients worldwide but also ensures that wholesale from china from China means margins you cannot find elsewhere and China Wholesale will skyroket your profits.china wholesale productsbuy china wholesalewholesale chinawholesale productsbuy products

products said...

We offer designer , custom wedding dress, cheap cell phonescheap wedding dressesbridal gowns, wedding gowns, Flower Girl Dresses andwholesale cell phonesso on. Buy tailor-made anddesigner wedding dresses designer to be a special brides now!

products said...

Wholesale Gemstone cheap Gemstone Jewelry from China, discount wholesale jewelry Beads, wholesale Gemstone jewelry cheapest Wholesale Naruto anime and manga cheap cosplay costumes, cheap Naruto cosplay costumes on sale, buy Naruto cosplay naruto online shop.Wholesale anime and manga wholesale crystal jewelry costumes, cheap cosplay costumes on sale, buy anime cosplay costumes online shop

qingchengzhilian said...

Your blog is very good, it's the best blog I've ever seen, thank you!
By the way, do you like polo shirts, which are very chic, especially the polo t shirts, I love them very much. I also like playing tennis rackets, it can keep healthy, what do you like to do? I'd like to introduce myself as the outlet of polo t shirts women, polo t shirts on sale, and polo t shirts for women. These products are our masterpieces, such as polo shirts on sale, polo shirts men, men's polo shirt, men polo shirt, mens polo shirts, mens polo shirt, besides we also sell cheap polo shirts, discount polo shirts, men's polo shirts, women's polo shirts. We are also the outlet of, cheap tennis racket, discount tennis racket, we recommend prince tennis racquet, head tennis rackets, wilson tennis racket, babolat tennis racquet. And it is our great pleasure that you come to our store online!

virstock.com said...

Dofus Kamas|Prix Moins Cher Dofus Kamas|Kamas par allopass|Dofus kamas audiotel|Dofus kamas par telephone sur Virstock.com

Meilleur prix dofus kamas stock de dofus kamas

Prix moins cher dofus kamas
vente dofus kamas sur www.virstock.com

Kamas par allopass sur dofus kamas

Dofus kamas par telephone sur dofus kamas

Dofus kamas audiotel sur dofus kamas

http://www.virstock.com/jsp/comments.jsp dofus kamas vente

Le meilleur Blog sur Dofus Kamas MMORPG,trouver des astuces dofus kamas surdofus kamas

http://www.virstock.com

Games, Entertaiment, Hobby, said...

wow Server Private Servers

Games, Entertaiment, Hobby, said...

Flyff private Flyff server

quxetrey said...

Great post! I want to see a follow up to this topic

cheap viagra