This is a migrated thread and some comments may be shown as answers.

'Sys' Undefined Java Script Error - Sys.Application.add_init(function()

1 Answer 283 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matt Manley
Top achievements
Rank 1
Matt Manley asked on 24 Aug 2010, 04:22 PM
The web application runs fine on my local DEV machine.  When published to the web server, all pages that have RadControls generate a Java Script Error. "'Sys' undefined" when the page loads.

Checking the forums, there are lots of references to configuring the application to run AJAX. 

I have tried adding a <location> section to add user authorization - no change.

When I run the "configure application" wizard from the Telerik menu in VS2010, it changes my web.config file and adds additional information in the <modules> tag: <modules runAllManagedModulesForAllRequests="true">  
With that added, I get an internal server error on the web server when I try to load the page,   

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 26 Aug 2010, 01:17 PM
Hi Matt,

The VSExtensions add the runAllManagedModulesForAllRequests property as it exists in the default web.config too. The VSExtensions simulate the default web.config behavior. We are reviewing this specific request though and will probably make this optional when updating the target web.config.

As per the 'Sys' is undefined error, the reasons for this vary, but having the problem only on the public website, I would suggest that you check if the server does have the respective ASP.NET AJAX Extensions installed. What I mean is the following:
If your web application is .NET 2.0, please, ensure you have the ASP.NET AJAX Extensions 1.0 installed. If the project targets .NET 3.5, please, ensure you have .NET Framework 3.5.

By the way, you could check the list of the possible reasons for this error in the Common reasons for the ‘Sys is undefined’ error in ASP.NET Ajax applications post too.

Kind regards,
Erjan Gavalji
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Matt Manley
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Share this question
or