Answered by:
"Sys" is undefined

Question
-
User771506077 posted
I have migrated my application to .Net Framework 4.5. I am not using any update panel and not even script manager.
One of the page which is throwing this error has the below code:
<bod><form>
<script>
Sys.Application.add_load(SectionMethod)
</script>
This was working fine before migration.
I used fiddler and found that ScriptResources.axd?,,,,,,,, file is not able to locate at server. But its working fine in my machine and at other server.
Tuesday, April 1, 2014 8:04 AM
Answers
-
User771506077 posted
Thanks a lot for all replies.
In my case:
1. I migrated my application to VS2012 and .Net 4.5. VS2012 migration wizard removed this settings under HttpHandlers tag and Http modules from web.config.
2. I am using Integrated Managed Pipeline mode settings.
3. My application dont have any update panel and script manager.
Solution:
1. From fiddler; i found that application is not able to found the scriptResource.axd file
2. From IIS, Handler Mappings option. i have added ScriptResource.axd.
after adding the mappings; the application start behaving properly.
Thanks a lot to everyone for guidance.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, April 3, 2014 12:22 AM
All replies
-
User2103319870 posted
Hi,
Try to move the script block below the ScriptManager control.
Please refer the below link
Tuesday, April 1, 2014 8:28 AM -
User771506077 posted
There is no scriptmanager control in application
Tuesday, April 1, 2014 8:49 AM -
User555306248 posted
Hi,
There are lots of scenarios bing on the 'sys' error.
You can check these thread:
http://forums.asp.net/p/1209962/2132128.aspx#2132128 Generally speaking, the sys problem should be resolved by using this appraoch.
http://encosia.com/updated-your-webconfig-but-sys-is-still-undefined/
http://weblogs.asp.net/chrisri/archive/2007/02/02/demystifying-sys-is-undefined.aspx
http://forums.asp.net/t/1040236.aspx/1
If not, you can check this sys problem FAQ thread:
Getting error while running Ajax application. Error:'Sys' is undefined.
Wednesday, April 2, 2014 11:36 PM -
User771506077 posted
Thanks a lot for all replies.
In my case:
1. I migrated my application to VS2012 and .Net 4.5. VS2012 migration wizard removed this settings under HttpHandlers tag and Http modules from web.config.
2. I am using Integrated Managed Pipeline mode settings.
3. My application dont have any update panel and script manager.
Solution:
1. From fiddler; i found that application is not able to found the scriptResource.axd file
2. From IIS, Handler Mappings option. i have added ScriptResource.axd.
after adding the mappings; the application start behaving properly.
Thanks a lot to everyone for guidance.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, April 3, 2014 12:22 AM