Follow me on Twitter at Twitter.com/wbm
FYI, I'm blogging most of my stuff over at More Wally now.
You might want to add my rss feed to your reader at:http://morewally.com/cs/blogs/wallym/rss.aspx
"'Sys' is undefined" in Atlas - Wallace B. McClure

Wallace B. McClure

All About Wally McClure - The musings of Wallym on Web, HTML5, Mobile, MonoTouch for iPhone, MonoDroid for Android, and Windows Azure.

News

Personal Blog

Work Blog

.NET

Book Authors

Business

Family

Friends

Georgia Tech Bloggers

Personal

Archives

"'Sys' is undefined" in Atlas

Do you get this error in Microsoft Ajax / Atlas?  I got it for the first time last night.  I've heard about it in the forums.  On my system, it appears to be a mismatch between web.config files and the code installed on my machine.  I had an app that I had written under beta1.  I pulled it over to a system with beta2.  I got this error defined above.  When I took the files and placed them into a project started under beta2, all my problems went away.  Hope this is helpful if you get it.

Update:  Lori "The goddess of knowledge" said I should add the following:
You have to add a handler in two spots in the web.config file to get rid of this message.
   <add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/>

Posted: Nov 17 2006, 09:18 AM by Wallym | with 25 comment(s)
Filed under: ,

Comments

Michael said:

What two places did you place this handler?  My application works great in BETA 1, but BETA 2 has caused all the UpdatePanels to cease working!

# November 17, 2006 11:32 AM

Abdullah Arslan said:

You need to put some extra lines in web.config

The explanation and example web.config file is in atlas folder (program files\microsoft asp.net\atlas...)

# November 23, 2006 4:25 AM

Harish Ranganathan said:

Wallym and folks, if you had installed ASP.NET AJAX Beta 2, you would face this issue.  You need to add the script resource tag as mentioned in the original post by Wallym.

The correction being, this documentation is available at C:\program files\microsoft asp.net\ASP.NET 2.0 AJAX Extensions\v1.0.61025\ReleaseNotes.txt file.

I have also blogged about it at http://geekswithblogs.net/ranganh

# November 24, 2006 7:28 AM

Aniruddha Banerjee said:

Thanks a ton. I fixed this problem in the webconfig file by adding

<httpHandlers>

     <remove verb="*" path="*.asmx"/>

     <add verb="*" path="*.asmx" validate="false" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

     <add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/>

   </httpHandlers>

inside the System.web.

# November 29, 2006 6:07 PM

Adrian said:

Thanx Abdullah. That worked for me.

To be more specific for others: Take the contents from "C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\web.config" (or something like that) and copy it into your own projects "web.config". Try your project again. Voila!

# December 9, 2006 3:53 AM

JIgna said:

Yet doesnt work for me.

# December 19, 2006 11:49 PM

Lyng at medware said:

I copied just the <httpHandlers> section from the Web.config located at C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\web.config into the <system.web> section of my web.config and I was good to go.

Thanks for the info.....

# January 23, 2007 2:33 PM

Dave said:

add the following:

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

   <httpModules>

     <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

   </httpModules>

 </system.web>

# February 1, 2007 5:13 PM

Phil Andrews said:

Thanks for that.  I've been going nuts trying to figure out why it wasn't working.  That fixed it right up.

# February 23, 2007 1:51 AM

ST said:

Working fine..., tx a lot.

# March 21, 2007 6:27 AM

2012IsComing said:

Just a quick comment - Was getting this error when running page under IIS - Page worked fine under visual studios web server. Anyway, added the config bits mentioned but still no luck. Then realised I had not created an application in IIS for the site. Did that and error went away.

# March 22, 2007 4:02 AM

Abraham said:

the problem still exist with my site

on server only but on may localhost it work fine

# March 25, 2007 12:37 PM

Bruce said:

Thanks Dave! Oh and thanks Wallace for the blog... ;-)

# April 19, 2007 5:17 PM

Bruce said:

Thanks for the solution Dave! (and Wallace for the blog...)

# April 19, 2007 5:35 PM

ali said:

These tags are already defined in project but not working fine, and i created a dummy [new project] of the existing  one and it works fine in that, but not in server. Any idea?

# May 22, 2007 3:16 AM

holex said:

the problem is still alive. "modify" and "not modify" the web.config file are equals: no solution. Under IIS7 (and Vista) still genereta the 'sys is undefined' error. (using: AJAX 1.0 RTM and VWD Express 2005 + SP1.)

I try 7-8 different "solutions", but no one can help to me.

I don't beleive it... Must be exists a solution.

Do you have got any different idea to resolve the problem?

Thank a lot!

(holex@hotmail.com)

# May 25, 2007 12:27 PM

PunUko said:

Thanks for all Comments I can fix it by add httpHandlers Tag and httpModules Tag inside Tag GoodBye I Love U Jub Jub
# May 31, 2007 3:06 AM

D said:

yea it has nothing to do with the web config files

# June 29, 2007 3:55 PM

John said:

I put the following code in my web.config and it worked:

<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="*" path="*_AppService.axd" 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>

# August 22, 2007 2:30 PM

Tejas said:

Hello Al,

I tried all above solution but still not working for me. Can any one let me know the reason.

tejas_vadalia@yahoo.com

# August 25, 2007 12:13 PM

ravindra lokhande said:

I too tried all solutions....If anyone found the solution please help me on ravindralokhande@gmail.com

# September 12, 2007 7:16 AM

kani said:

thanks a lot.....it works fine......... follow this  to solve 'sys' problem

I copied just the <httpHandlers> section from the Web.config located at C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\web.config into the <system.web> section of my web.config.

# September 22, 2007 4:23 AM

Ady said:

to get rid of this weird problem follow the following

steps

1)open IIS and right click on your web site virtual directory and then click

properties

2)then on virtual directory tab click on configuration button

3)In mappings tab ,make configuration like this.

Executable:

"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll"

.locate this dll file

Extension: .axd

Verbs: All Verbs

Script Engine: checked

Check that file exists: do not check this .

finally click OK.

# October 8, 2007 6:26 AM

Hrishi said:

Hi I copied just the <httpHandlers> section from the Web.config located at C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\web.config into the <system.web> section of my web.config.

It's working fine..!!!!

# February 11, 2008 2:39 AM

Charls said:

Ady..... Your solution worked...

Thanks a lot.....

# May 25, 2008 11:00 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)