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.
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
Danny said
Hi,
This solved my problem! Thank You very much for this post
triaslama said
you’re welcome.
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.
jcentauri said
Indeed useful. Thanks!
Samir said
Thanks…!! it works for me
squatting to pee said
I should email you about it.
shijobaby said
http://sysisundefined.blogspot.com/2009/08/sys-is-undefined-update-panelajax.html
chart said
hoo good
PHP
ASP
AJAX
JavaScript