January 20, 2007

Sys is undefined - AJAX 1.0 RC

Okay, I am frustrated. My project was working fine a few days ago and now I'm getting the dreaded Sys is undefined error. I've been trying to track it down with no luck.

A Google search shows that there are many people with this same issue. I've gone through my config file and everything looks correct.

I'll keep working on it and will post here as soon as anything comes up.

Update: A little farther...

Ok it seems as if my ScriptResource.axd file is being encoded! I'm using the Blowery HTTP Compression Module and after adding an exclusion for the mime type: application/x-javascript my WebResource.axd started coming back - it was coming up with a blank file before. However I keep getting the error Invalid character. I think its because ScriptResource.axd is encoded and not being decoded!

It's also telling me that the Type.RegisterNamespace function cannot be found (this function exists in ScriptResource.axd). I checked with Fiddler and ScriptResource.axd is being GZIP encoded. So I removed any reference to blowery and still no luck! You can view my posts on the ASP.NET Forum here for further detail, my user name is SuperGhost (the Batman logo).

You can check if your script is being encoded by opening up Fiddler and calling your ScriptResource.axd. Run your page first and get the source. The source will contain the correct path and querystring to the ScriptResource.axd file as well as the WebResource.axd file.

I'll post an update when this gets resolved!

Resolved: Finally

Ok found the problem a few days ago. The file was being encoded and the problem was that I had earlier uncommented a line in my web.config and then commented it back out again. Apparently the setting remained, not sure why. This is the line:

<scriptresourcehandler enablecompression="true" enablecaching="true">

You can see the enableCompression is set to true. So a simple change was all it needed. I uncommented the line and set compression to false:

<scriptresourcehandler enablecompression="false" enablecaching="true">

And that's it! Resolved! Also the Blowery HTTP Module was not affecting the script at all. I hope this helps anyone else having this issue!

kick it on DotNetKicks.com


Alex said...

errors for the lose!

ElRusO said...

I have a big problem. Im not able to get work with blowey and Ajax Asp.net. There's an asyncpostback, but no change in page. Im getting crazzy. I just want to change a label text, And doest work. Can you post an example on how to implement?

sarav said...

Nope :( this fix didn't solve this problem for me. I've IE7 and Vista running.

ElRusO said...

I found a solution!! :D ..Now blowery work smooth with Ajax asp.net, (Im testing it on Windows Vista and IE7)

Justin said...

Did'nt work for me either....well I cant even implement your fix!

It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

I would be using anthem if I did not have to use AJAX 1.0!!!!

femi said...

Thanks for the comments guys, I've searched high and low and not one solution has worked for me!

steve said...

this worked for me

^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"/^
^add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/^

butlimous said...

Thanks for the nice post!

Free PS3

Suneel said...

Thanks for the post. I was scratching my head like any thing form the past 5 hr. It helped me a lot.

Radoi said...

I did the changes, now I get a new error :(

Anonymous said...

ugg bootsTHE SNOW wholesale ugg bootsSTARTED TO FALLWholesale handbags SEVERAL HOURS wholesale clothingBEFORE HER laborWholesale jewelry began.wholesale clothing A few flakes wholesale handbagsfirst, wholesale furniturein the dull Furniture Wholesalegray late-afternoon Wholesale jewelrysky,Ceramic tileand then Micro sd cardswind-driven swirls Wholesale clothingand eddies Wholesale Jewelryaround the edges Wholesale fashion jewelryof their wide Wholesale costume jewelryfront porch. ugg bootsHe stood by her wholesaleside at the windowwholesale electronics, watching sharp gusts of snow billow,skin care products
then swirl and drift to the ground. All around the neighborhood, lights came on, and the naked branches of the trees turned white.

Anonymous said...

ugg bootsOutside,uggs snow continuedHigh pressure blower to fall quietly throughIndustrial fan the darkness, Industrial bloweras bright and thick Commercial bloweras static in the wholesalecones of light castchina wholesale by the streetlights.wholesale shoes By the time he rosewholesale clothing and looked out watchesthe window, pressure blowertheir car had become a soft white hill on the edge pressure blowersof the street.fans Already his footprints blowers
in the driveway had filled and disappeared.

Anonymous said...

wholesaleShe looked up, wholesale atvsmiling, wedding dresseswhen he tuckedMP3 player
the blanketwholesale mp3 around her legs.Wholesale Mp4
"You know,digital camera wholesale I've been wondering consumer electronicswhat it's like,"mp5 player she said. memory cards"Before we're born,Car video players I mean. It's too bad we can't remember." gps devicesShe opened her robe and pulled up the bluetooth headsetsweater she wore underneath, revealing a Mp3 Wholesalebelly as round and hard asMp3 Wholesale a melon. Mp4 WholesaleShe ran her hand across its smooth surface, Mp4 Wholesalefirelight playing across her skin, casting reddish gold onto her hair.

Anonymous said...

Today is Chinese Lantern Festival. China wholesale. We eat glue pudding, watch flower lamp. A very happy time. It is very meaningful. We hope family reunion, family harmony, friends gather and business prosperity. In this special day, I send my best regards to you and your family. Hope you can share the happy with us. Let us go to Yiwu China, the famous international trade city in Asia. Yiwu is a city built on wholesale marekt. Yiwu market is the world's largest wholesale market of small commodities, promotional gifts, dollar items, lingerie wholesale, shoes wholesale, keychains wholesale and more. Need yiwu agent? China Amanda is your ideal China sourcing, trade partner in Yiwu China. Wholesale shoes, Wholesale boots, Wholesale sneakers, Wholesale casual shoes, Wholesale dress shoes, Wholesale sandals, Wholesale slippers, from Yiwu, good quality, China wholesale direct from China manufacturers, for all your cheap wholesale needs, your one stop China suppliers. Start your one stop China discount wholesale sourcing here today and experience top notch service and fast shipping. Welcome to Yiwu China to buy China wholesale products all at lowest wholesale price on www.AmandaIEC.com. Happy Lantern Festival!

Anonymous said...

The Nets wow goldwent 9-7 in October and November, wow goldand they went 6-10 in January. wow goldThe falloff offensively haswow gold outweighed the improvementwow gold defensively. But we see wow goldnow that the fast start was a bit of a mirage.

Anonymous said...

These areworld of warcraft gold relatively smallcheap wow gold sample sizes, wow orand factors otherwow power leveling than how world of warcraft goldwell the wow poteam is playing (injuries, schedule)wow orhave certainly buy wow goldhad an effect. But the Nets'cheap wow gold improvementwow power leveling on the wow powerlevelingdefensive end dofus kamasisn't too hard tokamas dofus explain. They had a lot of roster turnover and Lord of the Rings Online Goldhave several LOTRO Goldyoung players, LOTR Goldincluding two rookies, flyff moneyin their rotation.flyff penyaSo, as their team buy flyff goldhas grown together ffxi giland their young buy ffxi gilguys have Final Fantasy XI giladjusted to the buy Warhammer goldspeed of theWarhammer gold game, they've improved defensively.EverQuest 2 gold"Experience is a eq2 platlot of it," says rookie Ryan Anderson, who has started the last 12 games in the absence of Yi Jianlian. "I know I've improved a ton defensively this season."

Anonymous said...

Anderson [pictured wow goldabove against Boston's wow goldEddie House] matched up with Charlie wow goldVillanueva in the Nets' win overwow gold the Bucks onwow gold Tuesday. Villanueva had wow goldaveraged 27 points in his previous three games, but scored just 11 on Tuesday on 5-for-15 shooting.On the season, the Nets still are one of the four worst defensive teams in the league.

Affordable Luxurious Wedding Dress Blog said...

cheap wedding gownsdiscount bridal gownsChina wedding dressesChina wedding online storediscount designer wedding dresses

abudalslam said...

للمزيد من الأخبار الرياضية آخر اخبار الدوري الإنجليزي والايطالي والاسباني
سوبر كورة
, نتائج مباريات بطل اوروبا نادي
, لترجمة المواضيع مترجم قوقل ترجمة فورية مجانية

Shijo Baby said...


Anonymous said...

Replica Handbags
Fake Handbags
Knockoff Handbags

Replica Louis Vuitton Handbags
Replica Gucci Handbags
Replica Chanel Handbags
Prada Handbags
Replica Fendi Handbags
Replica Dolce Gabbana Handbags
Replica Chloe Handbags
Replica Jimmy Choo Handbags
Replica Thomas Wylde Handbags
Replica MiuMiu Handbags

Replica Balenciaga Handbags
Replica Coach Handbags
Replica Lancel Handbags
Replica Hermes Handbags
Replica Marc Jacobs Handbags
Replica Anya Hindmarch Handbags
Replica YSL Handbags
Replica Mulberry Handbags
Replica Givenchy Handbags
Replica Valentino Handbags
Replica Versace Handbags
Replica Cartier Handbags
Replica Marni Handbags
Replica Bottega Veneta Handbags
Replica Loewe Handbags
Replica Kooba Handbags

Replica Bally Handbags
Replica Burberry Handbags
Replica Christian Dior Handbags
Replica Juicy Couture Handbags
Replica Ferragamo Handbags
Replica Celine Handbags

vivek said...

Congratulations. We re amazed with the caliber of the data supplied. I expect that you continue with the fantastic work done.
mesquite tx locksmith
Plantation locksmiths
Concord locksmith
Locksmith RedwoodCity CA
Locksmith RedwoodCity CA
Locksmith RedwoodCity
Locksmith RedwoodCity CA
Locksmith RedwoodCity CA
Locksmith Arlington Hts IL
Locksmith Arlington Hts
Arlington Hts Locksmith
Locksmith Arlington Hts
Arlington Hts Locksmith
Locksmith Arlington Hts
Arlington Hts Locksmith
Locksmith Arlington Hts
Locksmith Arlington Hts
Locksmith Arlington Hts
Arlington Hts Locksmith
Arlington Hts Locksmith
Locksmith Arlington Hts
Locksmith Arlington Hts
Aventura FL locksmith
Hialeah FL Locksmith
locksmiths fort worth
fort worth locksmiths
Hialeah FL Locksmith
Hialeah FL Locksmith

kellytang said...

Winter season a line wedding dresses is time with the calendar year when it actually cheap bridesmaid dresses casts a spell on each lady. Every cheap prom dresses last trend aware girl formal dresses yearns to don a quite cocktail dresses development cheap wedding dresses regardless of what; plus size wedding dresses and when its winter season around the corner,