"'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"/>

23 Comments

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

  • 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...)

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





    inside the System.web.

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

  • Yet doesnt work for me.

  • I copied just the 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 section of my web.config and I was good to go.

    Thanks for the info.....

  • add the following:











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

  • Working fine..., tx a lot.

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

  • the problem still exist with my site
    on server only but on may localhost it work fine

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

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

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

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

  • Thanks for all Comments
    I can fix it by add httpHandlers Tag and httpModules Tag












    inside Tag

    GoodBye I Love U Jub Jub

  • yea it has nothing to do with the web config files

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







  • 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

  • thanks a lot.....it works fine......... follow this to solve 'sys' problem
    I copied just the 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 section of my web.config.

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

  • Hi I copied just the 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 section of my web.config.

    It's working fine..!!!!

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

    Thanks a lot.....

Comments have been disabled for this content.