AJAX Error: 'Sys' is undefined

by Vishwa 7. May 2007 15:37

If you are using AJAX enabled web site or project, you may come across this error message. I got this error message too and spent few hours to fix this problem. I tried finding all possible solutions on Google and finally concluded with following three steps.
 

  •  
    • Web.Config: Make sure your web.config is correctly configured to handle AJAX enabled request. You might have created a project which was not AJAX enabled earlier and now you want to Ajaxfy. The best solution is creating a new project ASP.NET AJAX Enabled Web Site. It will create a Web.config file by default. Compare this Web.config file with your other project’s Web.config file which is casuing the error. Make sure that you are not missing any new section. You can simply copy and paste it at appropriate place. For detail information you can also visit at  http://ajax.asp.net/docs/configuringASPNETAJAX.Aspx
    •  Using Master Page: If your ASP.NET web page is using a Master Page, make sure your Script Manager Control is placed in Master Page only. Content page should not be using Script Manager Control.
    • Regular Web Page: If you are not using a Master Page then each ASP.NET web page must have its own Script Manager Control.

Tags:

.NET

Comments (16) -

Anand
Anand United States
7/5/2007 3:48:20 PM #

Thanks a lot, pyaare Vishamohan. Your article was the only way I could solve this Sys not defined bug. Thanks again. & keep posting such queer bug-fixes. They help a lot!
Anand

Anju
Anju India
9/20/2007 7:57:30 AM #

Hi,

Thanks a lot. Its very helpful.

Ryan
Ryan United States
2/3/2008 12:56:13 PM #

Wonderful post! I have been piling through blog after blog and posting everywhere I know and have not been able to resolve this error.

"If your ASP.NET web page is using a Master Page, make sure your Script Manager Control is placed in Master Page only. Content page should not be using Script Manager Control."

Brilliant!!!! Thank you!

Anil Soni
Anil Soni India
3/2/2008 7:22:16 AM #

Hi dear

The above define 3 option is very right, I was fcing a javascript problem "Sys Undifine"  then i did follow your 1st point and modify my Web config and my problem got solve.

Thank's

Ammar
Ammar Japan
5/22/2008 5:20:09 AM #

Hi Vishwa, I have tried it all but still can't get it to work !!! I have copied the Web.Config from the AjaxEnabled website but still I can't get rid of this DUMB ERROR

Chris
Chris United Kingdom
7/25/2008 1:01:07 PM #

Thank you your tip on creating a correct AJAX web.config saved me a lot of time

Dil
Dil United States
8/24/2008 7:24:22 PM #

Excellent!! Thanks Man.!!

Internet marketing
Internet marketing United Kingdom
9/6/2009 1:39:53 PM #

Admiring the time and effort you put into your blog and detailed information you offer!

Orlando A
Orlando A United States
9/16/2009 11:28:23 PM #

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post

Orlando A
Orlando A United States
9/19/2009 7:04:57 AM #

Nice information, many thanks to the author. It is incomprehensible to me now, but in general, the usefulness and significance is overwhelming. Thanks again and good luck!

Name Change UK
Name Change UK United Kingdom
10/1/2009 8:43:39 PM #

Whew! Never thought that I would find the solution here on your blog. Works like a charm dude, thanks!

yogesh
yogesh India
11/16/2009 9:27:01 PM #

Hello Dear,

   I got the solution bro thanks a lot.

Sebastian
Sebastian India
3/31/2010 11:27:15 AM #

Thank you very much. It was very helpful.

numeros des casinos
numeros des casinos India
5/18/2010 9:53:30 PM #

If you’re going to be generating a lot of code each time, like in my example, the AJAX route makes more sense because you can have a separate page (PHP for me, but you could use a straight HTML page) to write that content in HTML, then use an AJAX call to include that page in your main page.. Any time you want to change the teensiest thing, you have two places in which you need to change it: the original HTML, and the JavaScript that creates the same chunk of HTML before inserting it into your page. Going the AJAX way here would be best.

Jun
Jun Korea
5/26/2010 7:22:19 PM #

You are the best one. Thanks a lot !!

Fiona
Fiona Malaysia
6/17/2010 7:06:24 PM #

ajax.asp.net/docs/configuringASPNETAJAX.Aspx --- this link has lost...
please help...
thanks in advanced..

Comments are closed

About Me

Me Hello,my name is
Vishwa Mohan Kumar, PMP
MCP SOA Certified Architect
I am a Software Architect. This blog is result of my experiments.

Flickr Photos

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

Archive

Recent Comments

Comment RSS

Live Traffic Feed