I'm having trouble with my project. I have a master page that 4 other pages use. On the other pages there is a script manager and below that in other div tags, I use the Ajax Accordion control and the Ajax Date Control extender on a textbox. Everything works fine on my localhost but when I publish to our live server (IIS 7, .net framework 4.0) all the ajax controls stop responding and the web page gives the error :
Message: 'Sys' is undefined
Everything is built in the .net framework 4, I have tried other versions of the Ajax Controls, but to no avail. The other posts about this error point to my web config, but have place the proper assemblies inside it, but it still gives me the error. This is the first time I have received the error and I have built multiple web apps like this. Any help would be appreciated. Thanks.
There's obviously a configuration difference between your application locally and the production environment. Are you updating the entire application or just a few files?
A few things to try:
1
Check the
web.configfile on your production environment to ensure ASP.NET AJAX is enabled. Specifically this section:2
If you have any Javascript that tries to access
Sys.WebForms.PageRequestManageryou need to make sure it's placed after3
As you're using .NET 4 try setting the
AjaxFrameworkModeattribute on theScriptManagercontrol:<asp:ScriptManager ID="sm1" AjaxFrameworkMode="Enabled" runat="server">Some useful links
http://encosia.com/asmx-scriptservice-mistakes-installation-and-configuration/
http://encosia.com/updated-your-webconfig-but-sys-is-still-undefined/
http://www.asp.net/whitepapers/aspnet4#0.2__Toc253429253