Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 27, 2007 04:14 PM by rhockman
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.
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.
Dec 08, 2006 10:59 PM|LINK
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:
Dec 14, 2006 12:34 PM|LINK
Dec 14, 2006 03:09 PM|LINK
Dec 14, 2006 05:33 PM|LINK
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.
<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" />
which one is correct.
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.
Dec 16, 2006 07:37 AM|LINK
I have set MyApplication as http://localhost . So my Url is
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.
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.