Quoted:"Create a file named "ScriptResource.axd" in your root directory, it can be empty, just needs to exist."
Let's get one thing straight - this is a bogus hack.
The only thing you do when you do such is NOTHING... ScriptResource.axd is generated by the server (ASP.Net - and doesn't even need Ajax for this - anything that embeds js / javascript - gets sent as a ScriptResource.axd...)..... ScriptResource.axds never
get sent to the server because a client cannot generate these ....it is server generated and sent to the client.. all it does is include the js / javascript routines for a particular page... thats it - end of story...it is server to client direction only....
The Page.Sys... errors are actual errors and none of which can be succesfully worked around by such a hack... sure you may fool yourself thinking such... but crack out some real tools and interecept what is happening server to client and vice versa...
why we need to create an dummy ScriptResource.axd and WebResource.axd file is because IIS 6.0 always goes and searches for physical existence of this files before mapping the extensions to an application.
we can change this setting by Right clicking your web app in IIS -> Properties -> Home directory tab -> click configuration button in Application settings section.
you would see list of Application extensions, select '.axd' and click on edit there you'll find a check box "Verify file exists' uncheck it and the problem's solved. you don't have to even create the dummy files. [:D]
I have got same problem: I have got an error about 'sys' is undefined.
I searched the solution earlier, and I founded 7-8 different "solutions" that problem - but no one is help me. My test website is send to me via broser:
'sys' is undefined. You know with this error, I can't use asp:UpdatePanel and
asp:UpdateProgress controls. [:(]
Interest thing: this my test website was working correctly on my XP with IIS. I haven't got any problem with me. No error, no headache.
I installed Windows Vista on my computer (II7,
IE7), and the AJAX 1.0 .NET 2.0, and Visual Web Developer 2005 + SP1. I do same all install procedure as I did that on my XP.
And now: I have got an error message (yellow triangle the left-bottom corner of browser:
'Done, but with errors on page', double click on that message I see: 'sys' is undefined), and I don't know what I doing wrong with AJAX.
I tried uncommenting the line you mentioned, but it now returns the following error:
Server Error in '/' Application.
Configuration Error
Description:
An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 75: </webServices>
Line 76:
Line 77: <scriptResourceHandler enableCompression="false" enableCaching="true"/>
Line 78:
Line 79: </scripting>
I was having the same problem. What seems to have fixed it is but turned dynamic http compression off for axd extension. Do you have http compression enabled (on IIS 6.0, it is in the metabase.xml file)? Also it seems that you can temporarily and manually
fix it for one page by clearing your browser cache. You can give it a try and see if it works.
jodywbcb
Contributor
4482 Points
985 Posts
Re: 'Sys' is undefined.
May 19, 2007 05:44 AM|LINK
Quoted:"Create a file named "ScriptResource.axd" in your root directory, it can be empty, just needs to exist."
Let's get one thing straight - this is a bogus hack.
The only thing you do when you do such is NOTHING... ScriptResource.axd is generated by the server (ASP.Net - and doesn't even need Ajax for this - anything that embeds js / javascript - gets sent as a ScriptResource.axd...)..... ScriptResource.axds never get sent to the server because a client cannot generate these ....it is server generated and sent to the client.. all it does is include the js / javascript routines for a particular page... thats it - end of story...it is server to client direction only....
The Page.Sys... errors are actual errors and none of which can be succesfully worked around by such a hack... sure you may fool yourself thinking such... but crack out some real tools and interecept what is happening server to client and vice versa...
My Blogs on .Net 2.0 and Ajax
http://csk.wbcb.com
http://ArtbyJody.com
HNunes
Member
8 Points
4 Posts
Re: 'Sys' is undefined.
May 24, 2007 11:15 AM|LINK
When deploying in a IIS6 on win2003 server, i solved my case of "'Sys' is undefined error" by creating a file named "ScriptResource.axd" the root
directory.
- Yes, the file "ScriptResource.axd" is not sent to the browser, i never said it was.
- Yes, this "file" is generated by the ASP.NET, i never said it wasn't.
- Does this solution solve all the various "'Sys' is undefined error" messages? No it doesn't.
- Was this the best way solve my problem? Maybe not. But the site is working and thats the important thing for me.
My contribution to this forum was made with the best os intentions, since i spent a lot of time to overcome the "'Sys' is undefined error".
By the way, this is also how i solved another related problem when i used "MaintainScrollPositionOnPostback=true", this time with the file i had to
create was "WebResource.axd".
So, "jodywbcb" if this "workaround" does not solve your particular scenario, why don't you move on to the next sugestion or try to find the solution
yourseft.
Did you notice that your comment, you made no constructive contribution, no sugestion whatsoever to help those that are facing this problem!
You just seem in need to write (how about you go write a book).
aakashdjain@...
Member
18 Points
4 Posts
Re: 'Sys' is undefined.
May 24, 2007 12:50 PM|LINK
why we need to create an dummy ScriptResource.axd and WebResource.axd file is because IIS 6.0 always goes and searches for physical existence of this files before mapping the extensions to an application.
we can change this setting by Right clicking your web app in IIS -> Properties -> Home directory tab -> click configuration button in Application settings section.
you would see list of Application extensions, select '.axd' and click on edit there you'll find a check box "Verify file exists' uncheck it and the problem's solved. you don't have to even create the dummy files. [:D]
HNunes
Member
8 Points
4 Posts
Re: 'Sys' is undefined.
May 24, 2007 04:04 PM|LINK
Thanks, that was helpfull.
[Yes]
holex78
Member
2 Points
1 Post
'Sys' is undefined on Vista + IIS7 + IE7
May 25, 2007 01:23 PM|LINK
Hi Everybody! (Sorry my poor English.)
I have got same problem: I have got an error about 'sys' is undefined.
I searched the solution earlier, and I founded 7-8 different "solutions" that problem - but no one is help me. My test website is send to me via broser: 'sys' is undefined. You know with this error, I can't use asp:UpdatePanel and asp:UpdateProgress controls. [:(]
Interest thing: this my test website was working correctly on my XP with IIS. I haven't got any problem with me. No error, no headache.
I installed Windows Vista on my computer (II7, IE7), and the AJAX 1.0 .NET 2.0, and Visual Web Developer 2005 + SP1. I do same all install procedure as I did that on my XP.
And now: I have got an error message (yellow triangle the left-bottom corner of browser: 'Done, but with errors on page', double click on that message I see: 'sys' is undefined), and I don't know what I doing wrong with AJAX.
Do you have got any idea for me?
Thank you for a lot!
Bye,
Gabor
syed.quadri8...
Member
2 Points
1 Post
Re: 'Sys' is undefined on Vista + IIS7 + IE7
May 30, 2007 07:47 AM|LINK
Add the below keys in the web.config file, It should do the trick. ;-)
feel free to contact me on : quadri@elimits.net
ofir23
Member
4 Points
3 Posts
Re: 'Sys' is undefined on Vista + IIS7 + IE7
Jun 03, 2007 03:52 PM|LINK
i am trying to solve this for weeks.
When I open a project (new one) and adds a login control to the page.
I get javascript webform_postbackoptions is undefined.
The problem add occure several times and the only way
I manage to fix it only by re-installing the all framework.
I notice that after the re-installation the thing that made the bug return (once after a month) is
That I browsed the project from vs2005 in firefox. (but I am not 100% sure that this is the problem.
After that all my projects gave errors and not only in the login control but also in the sitemap menu
And I notice that in my ajax projects all the pages are fully posting back.
The last thing is that my production server also stopped worked fine , but after sometime and gave the same errors.
I looked form weeks and tried every solution they offered but with results.
I am tired of re installing the framework….
can someone please help?
saddik
Member
2 Points
1 Post
Re: 'Sys' is undefined.
Jun 06, 2007 07:01 AM|LINK
It happens when the server computer time is greater than the assembly (containing the script resource) 'last modified' time.
njsokalski
Member
29 Points
62 Posts
Re: 'Sys' is not defined
Jun 08, 2007 12:07 AM|LINK
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Source File: D:\WWWRoot\nathansokalski.com\www\catdemo\web.config Line: 77
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
Am I forgetting something else? Thanks.
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/
ytkaczyk
Member
10 Points
5 Posts
Re: 'Sys' is undefined on Vista + IIS7 + IE7
Jun 22, 2007 04:48 AM|LINK
I was having the same problem. What seems to have fixed it is but turned dynamic http compression off for axd extension. Do you have http compression enabled (on IIS 6.0, it is in the metabase.xml file)? Also it seems that you can temporarily and manually fix it for one page by clearing your browser cache. You can give it a try and see if it works.
I hope this helps,
Yves
ajax.net ajax .NET2.0 AJAX ASP.NET JAVASCRIPT