I created an ajax web site and when viewing in browser I got the 'Sys is undefined error message', the details pointed to lines 40 & 98 of my source code
line 40 - Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('form1'));
line 98 - Sys.Application.initialize();
I've tried all the above fixes in this thread but have not been able to solve this problem
so i ran into a new scenerio for this error, and it has to do with Vista RTM
I haven't been able to get debugging working at all until i ran into this blog entry a few hours ago (http://www.thousandtyone.com/blog/CategoryView,category,Vista.aspx), so
when i switch into "Classic ASP.NET" app pool, debugging works, but good ol "sys undefined" sticks it's ugly head and renders my MS AJAX stuff useless (and it doesn't matter whether i view the page with or without debugging running)..... going back to the
integrated pipeline default IIS7 pool fixes the AJAX but alas, prevents debugging from working...
"If you make it idiot proof, they'll build a better idiot"
I'd also like to note for people changing their IIS configurations, this shouldn't be need on II6 and above as the above entries tell the .NET to add these handlers.
----------------------------------------
I'm a programmer because coding is FUN!
"quoted by Rob Gerwing"
----------------------------------------
Simply create temporary web site from Ajax Control Toolkit Web Site template and copy some sections from
web.config to web.config of your web site (<configSections>, so on).
Copy bin dll file also.
Hi, LSerge
Good solution!
I created a temporary web site from ASP.NET AJAX_Enable Web Site template and copy the web.config file, replace the web.config of my web site, and it worked fine!
"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500" If anyone knows what this is I appreciate it.
isaacs.timot...
Member
2 Points
1 Post
I've tried them all
Jan 02, 2007 08:12 AM|LINK
Hi,
I created an ajax web site and when viewing in browser I got the 'Sys is undefined error message', the details pointed to lines 40 & 98 of my source code
line 40 - Sys.WebForms.PageRequestManager._initialize('ScriptManager1', document.getElementById('form1'));
line 98 - Sys.Application.initialize();
I've tried all the above fixes in this thread but have not been able to solve this problem
Need help!!
Thanks
Tim
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: I've tried them all
Jan 02, 2007 08:15 AM|LINK
hello.
use fiddler to see what you're getting from the server.
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
MorningZ
Star
8849 Points
1822 Posts
Re: I've tried them all
Jan 02, 2007 09:54 PM|LINK
so i ran into a new scenerio for this error, and it has to do with Vista RTM
I haven't been able to get debugging working at all until i ran into this blog entry a few hours ago (http://www.thousandtyone.com/blog/CategoryView,category,Vista.aspx), so when i switch into "Classic ASP.NET" app pool, debugging works, but good ol "sys undefined" sticks it's ugly head and renders my MS AJAX stuff useless (and it doesn't matter whether i view the page with or without debugging running)..... going back to the integrated pipeline default IIS7 pool fixes the AJAX but alas, prevents debugging from working...
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: I've tried them all
Jan 02, 2007 10:13 PM|LINK
interesting...I'll give it a go tomorrow...
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
robg_adverne...
Member
21 Points
22 Posts
Re: KB912812 may fix it.
Jan 22, 2007 04:22 AM|LINK
Hope this helps someone. These 3 entries fixed my app. I looked at a ajax enabled web.config and took these entrues and my problem disappeared.
I'm a programmer because coding is FUN!
"quoted by Rob Gerwing"
----------------------------------------
abelon
Member
6 Points
3 Posts
Re: 'Sys' is undefined.
Jan 22, 2007 10:51 PM|LINK
Chap
Member
2 Points
1 Post
Re: 'Sys' is undefined.
Jan 30, 2007 12:29 AM|LINK
Hi, LSerge
Good solution!
I created a temporary web site from ASP.NET AJAX_Enable Web Site template and copy the web.config file, replace the web.config of my web site, and it worked fine!
Thanks and sorry for my poor English.
rajaron
Member
657 Points
202 Posts
Re: I've tried them all
Feb 15, 2007 10:09 AM|LINK
Add the following tag in web.config file under <configsections> tag
<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"/>
<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" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" />
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" />
</sectionGroup>
</sectionGroup>
</sectionGroup>
ComSpex
Member
12 Points
6 Posts
Re: 'Sys' is undefined.
Feb 16, 2007 06:13 AM|LINK
I experienced the same problem.
Now, as far as my case is concerned, the replacement of <system.webServer /> can solve the problem.
My environment is Windows Vista + (VS2005+SP1).
BEFORE
<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-ISAPI-2.0"/>
<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="ScriptResource" verb="GET" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</handlers>
</system.webServer>
AFTER
<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>
Hoping this will be adaptive,
luis_botero
Member
2 Points
1 Post
Re: 'Sys' is undefined.
Mar 05, 2007 01:43 PM|LINK
Here's the solution for the main issue: http://dennylove.blogspot.com/2007/01/sys-is-undefined-ajax-10-rc.html
However, I'm now getting a different problem.
"Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500" If anyone knows what this is I appreciate it.
PageRequestManagerServerErrorException Sys