'Sys' is undefined - ASP.NET AJAX

You might receive the error 'Sys' is undefined when running ASP.NET AJAX Web pages or trying to AJAX enable your exisitng Web Applicaitons.

This error occurs specifically when you try upgrading your existing ASP.NET 2.0 Applications to AJAX by using the ASP.NET AJAX controls like UpdatePanel, etc.,  The common cause for this error is that you havent updated the Web.Config file of the application to enable the runtime understand ASP.NET AJAX.  Let me explain a little more.

When you install ASP.NET AJAX your Visual Studio 2005 gets the toolbox updated with ASP.NET AJAX Server side controls like ScriptManager, ScriptManagerProxy, UpdatePanel, UpdateProgress etc., You already have your existing ASP.NET 2.0 application pages and you can add ScriptManager, UpdatePanel and other controls from Toolbox to your pages.  When you run the page, you would get 'Sys' is undefined javascript error.  The reason being that, your web.config of the existing ASP.NET 2.0 application misses certain settings that require to be added to make it understand the ASP.NET AJAX Server side controls like UpdatePanel, UpdateProgress etc.,

To resolve the issue, I am providing herebelow the steps:-

Open the Web.Config file and start adding the following settings to the same:- (Forewarning: Modifying Web.Config incorrectly makes your site inaccessible and I would suggest you take a back up of your existing web.config file before making the following changes.  This article is intended for people with prior experience in dealing with web.config file, settings etc., and if you arent very convenient working with the Web.Config file, make your administrator or other experienced developers make these changes)

1. Below the <configuration> tag, add the following settings:-

 <configSections>
  <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
   <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
    <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
     <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere"/>
     <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
     <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>
    </sectionGroup>
   </sectionGroup>
  </sectionGroup>
 </configSections>

What we have done in this step is registering the System.Web.Extensions  namespace, the assembly and its various handlers that are useful in handling AJAX for your ASP.NET 2.0 Application.

2. Then, below the <system.web> add the following settings:-

<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</controls>
</pages>

In this step, we registered the tagprefix of ASP for the ASP.NET AJAX Server controls like UpdatePanel so that we can use the same <asp: prefix while using the same in your pages.  Ex.- <asp:UpdatePanel>

 3. Then find the <compilation debug="false" /> and you need to replace this line with the following settings:-

<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
</compilation>

This step enables compilation for your website and adds the reference assembly for System.Web.Extensions.

4. Then below the compilation settings (above step), 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="*" 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>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</httpModules>

What we have done here is to register the Http Handler and specify that Web Services might be handled using Javascript (asynchronous callback) as well as add the ScriptModule Http Module.

5. Then, after the </system.web> end tag, add the following system.web.extensions settings:-

<system.web.extensions>
<scripting>
<webServices>
<!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
<!--
<jsonSerialization maxJsonLength="500">
<converters>
<add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>
</converters>
</jsonSerialization>
-->
<!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
<!--
<authenticationService enabled="true" requireSSL = "true|false"/>
-->
<!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
writeAccessProperties attributes. -->
<!--
<profileService enabled="true"
readAccessProperties="propertyname1,propertyname2"
writeAccessProperties="propertyname1,propertyname2" />
-->
</webServices>
<!--
<scriptResourceHandler enableCompression="true" enableCaching="true" />
-->
</scripting>
</system.web.extensions>

In this step, we have additional steps where we can play with JSON Serialization settings and enabling some of the Application Services like AuthenticationService, ProfileService etc.,

6. Thereafter, add the following system.webServer settings:-

<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</handlers>
</system.webServer>

The above steps registers the ScriptHandlerFactory for Webservices and the AXD that needs to handle the requests.

Once you have added the above steps to your web.config file, you would be able to add ScriptManager, UpdatePanel and other ASP.NET AJAX Controls and would be able to run the page.  This should solve the 'Sys' is undefined error message.

These settings are not required if you are creating a "File - New - AJAX Enabled Website" using Visual Studio 2005 since all the above settings are added automatically to your web.config file.

Similarly, with Visual Studio "Orcas" any ASP.NET Website created will automatically have these settings as a part of the web.config file enabling you to directly use the ASP.NET AJAX Server side controls as well as the client scripts.

This error may also occur, if you are running beta versions of ASP.NET AJAX such as RC1, and earlier CTP versions.  I would strongly suggest you to upgrade to the released version of ASP.NET AJAX which can be downloaded from http://ajax.asp.net and update / modify your web.config files accordingly.

Finally, this error occurs due to the fact that 'Sys' is the root namespace for Microsoft AJAX Library and the web.config settings specify the Handlers / Modules and the System.Web.Extensions DLL references so that the runtime can understand and render accordingly.

If you are still facing the error after checking the above, write back in comments so that I can help you with the same.

Cheers!!!

posted @ Sunday, July 15, 2007 11:12 PM

Print

Comments on this entry:

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Cosmin at 7/16/2007 11:56 PM
Gravatar
Hi,

Well, I am still facing the error after checking the above :). But wait, there's more...:
So, I created a small site, not much, I only need an ajax-enabled timer on this site. Everything ok on the intranet, if I access this site from within the LAN the tmer works, everything is fine. I user ISA Server 2004 as firewall. I published the site on the Internet. Now every time I try to access this site the timer doesn't work and I get the 'Sys' is undefined error. I checked that the .js files are not blocked, I checked everything, I can't make it work. In the intranet it still works fine, it's just the internet access that gets me mad. Can you think of something that is miss-configured on my ISA server?

Thank you,
CG

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Vi at 8/16/2007 7:05 AM
Gravatar
Good Stuff!

# re: 'Sys' is undefined - ASP.NET AJAX

Left by eman at 9/11/2007 3:39 AM
Gravatar
Thank you, this solved the problem

# re: 'Sys' is undefined - ASP.NET AJAX

Left by rmcgui at 9/13/2007 2:10 AM
Gravatar
I've been pulling my hair out over this problem. Thanks for the info.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Pardhasaradhi V at 12/24/2007 1:00 AM
Gravatar
Hi, I checked all the web.config entries still i hav the same problem. My application was converted from 1.0 to 2.0. Where it hav a base page contains a user control and in which another user control and the update panel withing that user control. Can some one help me... :(

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Rewa at 1/7/2008 9:22 AM
Gravatar
Thank you. My problem is solved

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Krasna Halopti at 1/28/2008 1:00 PM
Gravatar
Thanks, these steps worked for me.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Vasanth at 1/31/2008 9:04 AM
Gravatar
Thank you so much. Finally got it working with which i had been struggling for long.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Igor Maksymenko at 1/31/2008 10:43 AM
Gravatar
Thank You very much. That solved my problem as well.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Arun at 2/25/2008 8:32 PM
Gravatar
Thank u very much... U saved my life...

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Niren at 3/11/2008 5:40 PM
Gravatar
Thanks you very much. Was struggling for more then 1 day.
Keep up the good work.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Pazout at 3/13/2008 9:41 PM
Gravatar
Thank You very much...
You saved my life...

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Saroj at 3/19/2008 9:24 PM
Gravatar
This Doesnt help me dear.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Brijesh Bhat at 3/27/2008 5:29 PM
Gravatar
Thank you very much for this atricle its helped me a lot

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Niraj Vegad at 4/3/2008 1:56 AM
Gravatar
Thaks ...! It's Work

# re: 'Sys' is undefined - ASP.NET AJAX

Left by MVS at 4/9/2008 6:56 PM
Gravatar
Thanks! Helped me a lot

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Vikram kharbanda at 4/9/2008 7:07 PM
Gravatar
Thanks a lot.Its working fine for me.

# Web service is undefined - ASP.NET AJAX

Left by Alex at 4/17/2008 7:58 AM
Gravatar
I have an AJAX enabled web app (VS 2005, win XP)
I call web service from javascript.
It works in a debugging mode, but generate an error msg "Web Service is undefined" when trying to call this page from the browser.
Any ideas are highly appreciated ...

# Had to Add aspnet_isapi.dll as a wildcard handler

Left by Teravus at 4/21/2008 6:49 AM
Gravatar
I had the same issue. web.config and everything was correct. It turns out that with ColdFusion Server installed you need to add the aspnet_isapi.dll as a wildcard application map or WebResource.axd and ScriptResource.axd return 404 not found.
:?*¿

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Narender at 4/22/2008 7:10 AM
Gravatar
Excellent! Worked

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Joe at 4/23/2008 12:06 PM
Gravatar
Thanks a ton. Now that the 'Sys' is undefined error is taken care of, have any idea why I would get the error "Element 'ScriptManager' is not a known element. This can occur if there is a compilation error in the Web site." in my aspx page?

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Harish Ranganathan at 4/23/2008 6:05 PM
Gravatar
Element 'ScriptManager' is not a known element error can occur if you have not installed Service Pack 1 for Visual Studio 2005

#  - ASP.NET AJAX

Left by SARITHA at 4/30/2008 4:44 PM
Gravatar
I have used AjaxEnabled Website web.config in ASP.Net web.config file.

No errors are coming,but Ajax is not geting implemented in the webpage

# re: 'Sys' is undefined - ASP.NET AJAX

Left by chris at 5/4/2008 9:39 PM
Gravatar
still i'm getting same error

# re: 'Sys' is undefined - ASP.NET AJAX

Left by RabidDog at 5/13/2008 5:26 AM
Gravatar
Legend, thanks for the info!

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Luis at 5/20/2008 5:42 PM
Gravatar
Ok,
I have this working fine on my dev box thanks to this post!
But I need to be able to get this to work on a remote server that I only have access to the Virtual directory of my application. AJAX is not installed on that server, nor can I get them to install it. I tried putting the System.Web.Extensions.dll into the Bin folder as I read somewhere. That did not work. Is it possible to get this to work or am I just out of luck until I can get the company to install AJAX extensions on that machine?

Thanks for your help!

Luis

# re: 'Sys' is undefined - ASP.NET AJAX

Left by terryr at 5/23/2008 12:22 AM
Gravatar
Many thanks. I had a site that I implemented using Atlas. This solved the problem I had when I tried upgrading to V1 of Ajav.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Guillermo at 5/28/2008 10:13 AM
Gravatar
Like Alex reported (4/17/2008) I also get the "Web Service is undefined" error, even though web.config is updated. I downloaded the Release version. I can see the webservice being accessible ffrom scripting, because I can get the JS proxy through http://localhost:49573/MySampleService.asmx/js.

Any other suggestions?

Thanks.
-G

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Nivedita at 6/10/2008 6:54 PM
Gravatar
Thanku very much it worked!!!

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Aakash Agarwal at 6/11/2008 6:48 PM
Gravatar
Thanks.

I'm a newbie in AJAX enables web site.
I was facing two problems. One gets solved by your artcle. But another problem "WebService is undifined" is still pending.

Can you tell how this problem be conquered?

Regards,

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Ashish Ubgade at 6/11/2008 9:25 PM
Gravatar
Ajax creates a runtime object “Sys” and their classes, this is required by the “Scrip Manager” and AJAX controls (like watermark text etc). If we use document.write to change the page contents at the run time, then it creates every thing but do not load the sys object in the memory. If we refresh the page then SYS object is loaded and ajax works fine.
But in both the cases (i.e. before refresh and after refresh) code remains the same. We have checked this by comparing the “View Source” of both the pages.

Probable Workaround: By any means if we can create the “Sys” object and load it in the memory.
I have also tryed document.forms[0].submit(); just after the document.write(); statement, ajax controls works perfect but it gives a refresh effect which I don’t want.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Vipin Yadav at 6/23/2008 1:00 AM
Gravatar
Thanks!
It help me...

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Guest at 6/25/2008 1:13 AM
Gravatar
this is the only post that I found in 2 days that fix my 'Sys' is undefined problem with VS2005 and AJAX.

Thank you!

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Neetu at 7/6/2008 8:07 PM
Gravatar
i still have the same error sys is undefined...please help me

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Noname at 7/9/2008 8:56 AM
Gravatar
C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Noname at 7/9/2008 8:57 AM
Gravatar
Just refer to web.config from your AJAX installation folder e.g. "C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025" and compare it with web.config of your project and make necessary changes.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Claude at 7/14/2008 11:49 AM
Gravatar
I followed the advice to the letter and still no dice :(

Just out of curiosity, why not reference the 3.5.0.0 versions of the components in the config settings if you're on ASP.NET 3.5?

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Claude at 7/15/2008 4:37 AM
Gravatar
Got it!

In our aspx content pages we had an event handler OnPreRenderComplete for which we needed to call the superclass's method first (so the necessary scripts get created).

protected override void OnPreRenderComplete(System.EventArgs e)
{
// Add the line below.
base.OnPreRenderComplete(e);
// Rest of code goes here.
}

# re: 'Sys' is undefined - ASP.NET AJAX

Left by jithesh at 7/16/2008 7:27 PM
Gravatar
Hello,

It was strange for me , made all the changes as you described in web config. After all we got rid off from the sys error. Again once we undo the changes it works fine... whats the magic in your fix. please let me know.

Regards
Jithesh

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Rose Johnson at 7/21/2008 5:01 PM
Gravatar
Thank you! The article was of great help in solving my issue.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by CJ at 7/23/2008 6:04 AM
Gravatar
I was having a tough time with this error. I was running this on IIS 7 on Vista and had already changed my app pool to "Classic" for previous AJAX functionality in the application. For some reason, when I changed the app pool back to default, restarted IIS then changed it BACK again to "Classic" everything worked fine. Apparently you have to make the app pool change after all AJAX functionality is added. Hope this helps someone.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Hammer at 8/1/2008 4:05 AM
Gravatar
Thanks, I followed your out line steps and low and behold, my ajax controls are now working on my website.

# re: 'Sys' is undefined - ASP.NET AJAX - THANKS!

Left by Kate at 8/1/2008 11:30 PM
Gravatar
THANK YOU SO MUCH! After hours of fruitless searching I found this, and ten minutes later was up and running. Many many thanks.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by ilyas at 8/2/2008 3:01 AM
Gravatar
Hey,
i still face the same problem.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Faisal Faree at 8/18/2008 9:05 AM
Gravatar
Great work !!!

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Priya G at 8/25/2008 2:36 AM
Gravatar
Really its very useful. Thanks a Lot

# re: 'Sys' is undefined - ASP.NET AJAX

Left by budiman at 8/26/2008 3:21 PM
Gravatar
cool man! thanks for the help

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Hari at 9/8/2008 4:12 AM
Gravatar
Thanks, It helped me a lot.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by MahalakshmiSethu at 9/11/2008 12:24 AM
Gravatar
hi,

I am still facing the error after checking the above. :( please help me.. I have an AJAX enabled web app (VS 2005, win XP,IIS 5.1,IE 7)

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Raj at 10/3/2008 3:41 PM
Gravatar
Thanks
Buddy it resolved my problem

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Ravi Shankar at 10/6/2008 12:14 PM
Gravatar
Good document, knowledge resource.
Helped my problem

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Ajay at 10/9/2008 6:33 PM
Gravatar
Thanks a lot!

My first ASP.net AJAX page works!

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Dua at 10/12/2008 1:36 PM
Gravatar
Cool, thank you so much...

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Victor at 10/21/2008 12:42 AM
Gravatar
Thank you, that works for me. I just can't understand why AJAX in VS 2008 is touted as "built in" if you have to do all this to get it to work.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Matt at 10/21/2008 6:53 PM
Gravatar
Good work fella! Sorted!

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Narayanan at 10/22/2008 6:51 PM
Gravatar
Hi actually my VS2005 in not showing any Ajax Enabled Web Site in my Installed Templated There is just only 4 templates namely
1. Add New ASP.Net WebSite
2. Add New ASP.Net WebService
3. Personla Website Starter Kit
4. Blank Web Site

I choose Add New ASP.Net WebSite then I saw in my web.config file the Setting which you have mentioned where not there. so What should in don know to get the config.
I am really sorry to ask you even after your clear explanations. But I dont have any aother go except to ask you. Plese help me out to know about this . I will be really thank ful to you


.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Anand at 10/24/2008 1:19 PM
Gravatar
Pretty good and it solved my issue. Many thanks

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Webtechie23 at 11/11/2008 1:09 AM
Gravatar
Worked Perfectly!! Thank you very much!

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Dharani at 11/19/2008 5:44 PM
Gravatar
Hi,Its Solved my error,thank you
Regards,
Dharani.N

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Silvio at 12/23/2008 10:51 PM
Gravatar
you saved my life! thank you!

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Prateek at 1/7/2009 9:20 AM
Gravatar
good one was helpful

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Joe at 1/22/2009 11:07 PM
Gravatar
This worked awesome, but because we installed 3.5 on our site, I had to do a find and replace of "1.061025.0" with "3.5.0.0". Then it worked perfectly! Thank you!

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Safa at 1/25/2009 6:11 PM
Gravatar
wow just extactly what i was looking for!

Thanks dude it was SO helpful to me :)

cheers

# re: 'Sys' is undefined - ASP.NET AJAX

Left by sethu at 1/26/2009 10:37 AM
Gravatar
Thanks, Now its working fine.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by wwd at 2/9/2009 4:40 PM
Gravatar
hi,

thanks man , it really helped and saved my time.

:)

cheers

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Zain Shaikh at 2/16/2009 3:03 AM
Gravatar
hi, i did the same as you told, i am not using any httpmodules or httphandlers, so my web.config is almost empty as i just created new project.
actually i added the reference of ajaxtoolkit because i wanted to use update panel with animation extender. but when i added update panel on the page. i got the error of sys is undefined. please help em out.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Zain Shaikh at 2/16/2009 3:10 AM
Gravatar
hey, thanks. actually i did not know that i will have to add httphandlers and httpmodules for ajax toolkit. :)
as i googled i know these thigns now, and updated panel started working after httphandler and httpmodule lines in web.config.
thanx again.
but i am yet unable to work with UpdatePanelAnimationExtender, could you help me anyhow.?

# re: 'Sys' is undefined - ASP.NET AJAX

Left by gtm at 2/18/2009 2:38 PM
Gravatar
gud, it helped a lotttt, thanks a ton

# re: 'Sys' is undefined - ASP.NET AJAX

Left by pravin kumar at 2/26/2009 6:26 PM
Gravatar
Thanks for this extensive post.

Will it work when we are working with Ajax toolkit.

As I am getting 'sys undefined error due to this.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Jobin at 2/27/2009 7:46 AM
Gravatar
Thanks, it helped a lot...

# re: 'Sys' is undefined - ASP.NET AJAX

Left by amin shahab at 2/27/2009 9:52 PM
Gravatar
Hi,
Thanks, so much.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Nikunj at 3/3/2009 7:41 PM
Gravatar
Hi,

I have installed VS 2005 and installed the AJAX extension 2.0 and also followed above steps but that still does not work..

pls assist

Thanks and regards
Niks

# re: 'Sys' is undefined - ASP.NET AJAX

Left by SMS at 3/9/2009 3:10 PM
Gravatar
Its really good one.
This solution has solved my problem.
Great!!!
Cheers
SMS

# re: 'Sys' is undefined - ASP.NET AJAX

Left by reza at 4/8/2009 9:14 PM
Gravatar
thanks for your guide

# re: 'Sys' is undefined - ASP.NET AJAX

Left by reza at 4/8/2009 9:14 PM
Gravatar
thanks for your guide, you help me to solve it

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Praveen at 4/14/2009 8:15 PM
Gravatar
Hi,
My AJAX website is correctly working in Default Web Site's Virtual Directory.

But when i created new Web Site for the same, It shows 'Sys' is undefined.

I am using windows 2003 server with .Net 3.5 framework.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by imran at 4/15/2009 1:46 PM
Gravatar
This worked for me too!! woot woot ;)

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Sys - undefined- Resolved.. !!! at 4/15/2009 10:41 PM
Gravatar
YOU KNO WHAT I CAN SAY ANYTHING ELSE THAN TO SAY

THANK YOU VERY VERY MUCH. HAVE BEEN BEATING MYSELF HARD TO GET THIS ERROR RESOLVED FOR THE LAST 3 DAYS. YOU MADE MY DAY .

FABOLOUS JOB BUDDY. CHEERS.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Girish at 4/23/2009 12:31 PM
Gravatar
I am using ,Windows2000,IE 6.0 SP1 and Visual Studio 2005
without SP1 but my web.config file setting is as above.Still the problem is thr please help me out

# re: 'Sys' is undefined - ASP.NET AJAX

Left by RK at 4/30/2009 3:23 AM
Gravatar
works like a charm.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Madhan at 5/8/2009 4:26 PM
Gravatar
Thanks... Thanks... and Thanks.

#  'Sys' is undefined - ASP.NET AJAX

Left by Poornima at 5/26/2009 5:59 PM
Gravatar
still am facing the same issue,please let me know the things that i have to check,Thanks in advance

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Larrybud at 5/28/2009 11:12 PM
Gravatar
After messing with this forever, turns out to be a bug in AJAX when using the VS2005 Development Server, and assigning a Virtual Path to my app.

When a virtual path is set, the ScriptResource.axd files do not load (for whatever reason). Thought this might help a few of you out there.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Tejesh at 6/3/2009 12:13 PM
Gravatar
I have tried all these steps but not helpful,
i am using vs2005, ajax extensioin 1.0 and iis6.0
please help......

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Tejesh at 6/3/2009 12:15 PM
Gravatar
I have used all above steps but no helpful for me.
I have VS2005, Ajax Extenstion 1.0 and IIS6.0

so please help.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Luis Vargas at 6/4/2009 8:37 PM
Gravatar
I do not get the sys is undefined error when I am local to the web server, or in my development laptop. However it happens on a separate laptop with no dev tools and also to many users.

Does this mean anything to you.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by kartheek at 6/5/2009 12:12 AM
Gravatar
I didn't get your problem if do you want to solve your problem? then make a call to me and explain your problem.I will clear as far as early

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Rushit Shukla at 6/5/2009 9:50 PM
Gravatar
Hey thanks buddy,

I search on we for last few days but i cant get it what the problem is. I uninstall my vs2008 but still its there. But when i Search Sys Error i found so many sol but still not solved at last your solution is worked out for me.

Thanks Again

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Dpack at 6/26/2009 9:56 AM
Gravatar
Thanks Mate :)

# re: 'Sys' is undefined - ASP.NET AJAX

Left by sreeju at 7/7/2009 11:57 AM
Gravatar
Thanks mate

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Ashish at 7/8/2009 4:22 AM
Gravatar
Thanks, fruitful

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Prashant at 7/26/2009 8:35 AM
Gravatar
I have created asp.net page with very basic AJAX functionality in that using update panel.
I have done all the necessary changes in the web.config as per shown above.
But when i run that page i get following errors in sequence,
- Object doesn't support this property or method.
- Sys.Res.argumentUndefined is not an object.
- Sys.UI.DomEvent is not an object.
- Sys.Application is not an object.
I have tried many fixes suggested on the net,but still the error is consistant.
Pls. Let me know does this error has got any fix.
Thanks and regards.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Dhivya Sakthi at 7/27/2009 3:51 AM
Gravatar
Hi...
thanks a million...
my issue got resolved...
once thanks a lot and keep this good work

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Thomas at 7/29/2009 10:36 AM
Gravatar
Let me echo the thanks of others, and the fact that this was the only solution I found that works. Very handy. I linked to this article on my blog.

Thanks!

# re: 'Sys' is undefined - ASP.NET AJAX

Left by links of london at 8/5/2009 12:36 AM
Gravatar
I am thinking about providing a deep dive in the fall; attendees loved the material presented in my sessions.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Anirban Maitra at 8/18/2009 6:13 AM
Gravatar
Thanks a ton for providing this solution. In fact, I tried so many different solutions given in other sites, but this is only working solution I found till date.

# links of london

Left by links of london jewellery at 8/20/2009 1:12 AM
Gravatar
Thank you very much!

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Matt Nel at 9/7/2009 7:08 AM
Gravatar
thanks for the help

free news alerts
http://www.succeednews.com

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Umair at 9/21/2009 5:46 AM
Gravatar
Thanks bro, gr8 job :)

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Neelam at 9/22/2009 10:24 PM
Gravatar
It's Working!! Thanx.

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Christian louboutin at 9/22/2009 11:42 PM
Gravatar
It's so good!不错……

# re: 'Sys' is undefined - ASP.NET AJAX

Left by links at 10/19/2009 6:43 PM
Gravatar
jkljlkjb oiutrg yerghgvnvfy links of london jewellerygfsgddfhuilinks of london‘lhts

# re: 'Sys' is undefined - ASP.NET AJAX

Left by Indy at 10/20/2009 9:53 AM
Gravatar
Superb article!

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345