Hi all, i am facing the Sys is undefined problem... i have tried few solutions but didn't help:
1)Adding <add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/> into web config
2)turn off debugging
3)I tried on other machine off my AJAX app, it works fine.
For my machine, the ajax app will only run for the first time after i compile. If i compile again, Sys is undefined error is prompt. However, it works fine with FireFox, Any idea with this?
I have tried for two days, still could not figure out what is happening. Is it IE compatibility issue?
If that doesn't help I'd recommend a session with Fiddler, or manually copy/paste the ScriptResource request into the browser. The goal being to see what the response looks like... it could very well be an asp.net error page, which should have some nice
juicy details on what the problem is.
I am experiencing the same problem. I was using atlas version and now I am using ajax beta 2.0. It works with Firefox, but ie gives sys undefined javascript error.
Sys is undefined likely means the framework script isn't downloading successfully. Make a direct request to the ScriptResource.axd url you see in your page source (the first one, if there are multiple). By direct I mean copy/paste the url into the browser.
You should get a detailed error message.
Is your app in the root? If your app was http://localhost/myapp/ then the url you'd have to request would be
http://localhost/myapp/ScriptResource.axd not just localhost. The best bet is to paste the url directly from the view source of your page, including the long querystring it contains.
You need the ScriptResource entry that contains the fully qualified name, although it would probably work either way, as long as the extensions dll is also mentioned in the <assemblies> section.
and yes, I pasted the Url from viewsource of the a page containing querystring and the scriptresource file downloaded.
so I have access to scriptresource.axd.
but what next it does not solve my problem still getting sys undefined error in javascript.
I think it has some thing todo with browser's cache. because when I forcefully access the page using
Ctrl F5 key combination, page does not give sys undefined error and things work fine for a moment. but this is not a solution. And in Firefox it works fine.
nickhongchia...
Member
15 Points
3 Posts
Sys undefined is only on IE but not FireFox...
Dec 08, 2006 04:02 PM|LINK
Hi all, i am facing the Sys is undefined problem... i have tried few solutions but didn't help:
1)Adding <add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/> into web config
2)turn off debugging
3)I tried on other machine off my AJAX app, it works fine.
For my machine, the ajax app will only run for the first time after i compile. If i compile again, Sys is undefined error is prompt. However, it works fine with FireFox, Any idea with this?I have tried for two days, still could not figure out what is happening. Is it IE compatibility issue?
InfinitiesLo...
Participant
1972 Points
322 Posts
Microsoft
Re: Sys undefined is only on IE but not FireFox...
Dec 08, 2006 09:59 PM|LINK
The type should be fully qualified especially since the assembly is GAC'd:
<add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
If that doesn't help I'd recommend a session with Fiddler, or manually copy/paste the ScriptResource request into the browser. The goal being to see what the response looks like... it could very well be an asp.net error page, which should have some nice juicy details on what the problem is.
Infinities Loop: TRULY Understanding ViewState
.NET from a new perspective.
This posting is provided "AS IS".
vishwanath.m
Member
47 Points
11 Posts
Re: Sys undefined is only on IE but not FireFox...
Dec 08, 2006 10:59 PM|LINK
InfinitiesLo...
Participant
1972 Points
322 Posts
Microsoft
Re: Sys undefined is only on IE but not FireFox...
Dec 08, 2006 11:27 PM|LINK
You shouldn't need the physical file... make sure "verify file exists" is unchecked from the axd extension mapping in IIS.
As in this random screenshot:
http://www.west-wind.com/webconnection/docs/IMAGES%5Cmisc%5CIISScriptMap.png
Infinities Loop: TRULY Understanding ViewState
.NET from a new perspective.
This posting is provided "AS IS".
vishal2006
Member
39 Points
15 Posts
Re: Sys undefined is only on IE but not FireFox...
Dec 14, 2006 12:34 PM|LINK
I am experiencing the same problem. I was using atlas version and now I am using ajax beta 2.0. It works with Firefox, but ie gives sys undefined javascript error.
Please help.
ncipollina
Member
356 Points
79 Posts
Re: Sys undefined is only on IE but not FireFox...
Dec 14, 2006 03:09 PM|LINK
InfinitiesLo...
Participant
1972 Points
322 Posts
Microsoft
Re: Sys undefined is only on IE but not FireFox...
Dec 14, 2006 05:33 PM|LINK
Infinities Loop: TRULY Understanding ViewState
.NET from a new perspective.
This posting is provided "AS IS".
vishal2006
Member
39 Points
15 Posts
Re: Sys undefined is only on IE but not FireFox...
Dec 15, 2006 03:26 AM|LINK
Requested to URL http://localhost/ScriptResource.axd
but It gives HTTP 404 error.
Should I need to add any scriptresource.axd file. Zero byte scriptresource.axd file didn't help.
I also try various handlers in web.config.
For example,
1)
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
<add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false" />
2)
<add verb="GET" path="ScriptResource.axd" type="Microsoft.Web.Handlers.ScriptResourceHandler, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
which one is correct.
InfinitiesLo...
Participant
1972 Points
322 Posts
Microsoft
Re: Sys undefined is only on IE but not FireFox...
Dec 15, 2006 05:01 AM|LINK
Is your app in the root? If your app was http://localhost/myapp/ then the url you'd have to request would be http://localhost/myapp/ScriptResource.axd not just localhost. The best bet is to paste the url directly from the view source of your page, including the long querystring it contains.
You need the ScriptResource entry that contains the fully qualified name, although it would probably work either way, as long as the extensions dll is also mentioned in the <assemblies> section.
Infinities Loop: TRULY Understanding ViewState
.NET from a new perspective.
This posting is provided "AS IS".
vishal2006
Member
39 Points
15 Posts
Re: Sys undefined is only on IE but not FireFox...
Dec 16, 2006 07:37 AM|LINK
I have set MyApplication as http://localhost . So my Url is http://localhost/ScriptResource.axd.
Request to http://localhost/ScriptResource.axd gives 404 error.
and yes, I pasted the Url from viewsource of the a page containing querystring and the scriptresource file downloaded. so I have access to scriptresource.axd.
but what next it does not solve my problem still getting sys undefined error in javascript.
I think it has some thing todo with browser's cache. because when I forcefully access the page using Ctrl F5 key combination, page does not give sys undefined error and things work fine for a moment. but this is not a solution. And in Firefox it works fine.
Thanks for the Support.