Read, With the Name of Your Lord Who Created

Error “‘Sys’ is undefined” in Asp.Net Ajax

Posted by triaslama on November 29, 2008

When I try ASP.NET Ajax in my development server I get this Javascript error: “‘Sys’ is undefined“. This error occur because I place <asp:ScriptManager runat=”server” /> element in my page.

Wondering why, I search in internet and hope that I will find one of the solution. After several trial and error finally I can find the solution and it work just fine for me.

To solve the error we need to modify web.config file, add the following under <system.web />

<httpHandlers>
<add  verb=”GET,HEAD” path=”ScriptResource.axd” type=”System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ />
</httpHandlers>

Nothing more I can say, but if you get the same error when you work with ASP.NET Ajax try the above solution, and I hope this help.

9 Responses to “Error “‘Sys’ is undefined” in Asp.Net Ajax”

  1. DotNetURL said

    Hi,

    Nice blog..publish you new content url at http://www.dotneturl.com and get reader and back link form us for free

  2. Danny said

    Hi,

    This solved my problem! Thank You very much for this post :)

  3. my said

    Excellent! I looked at several forumns, which suggested changing lots in the web.config files and which I didn’t want to do. I tried your and VIOLA! it works like a charm. Thank you.

  4. jcentauri said

    Indeed useful. Thanks!

  5. Samir said

    Thanks…!! it works for me

  6. I should email you about it.

  7. shijobaby said

    http://sysisundefined.blogspot.com/2009/08/sys-is-undefined-update-panelajax.html

  8. chart said

    hoo good

    PHP
    ASP
    AJAX
    JavaScript

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>