Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i'm getting 'Sys' is undefined error while using update panel of asp.net.
can anyone let me know why this is happening.
i was also using jquery in same project.

thanks in advance.
Posted

1 solution

If you use VS2005 the problem is generally because of web.config configuration. Add the following configuration in web.config in system.web section.
HTML
<httpHandlers> <remove verb="*" path="*.asmx"/>
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory"/>
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
        </httpHandlers>

If you use VS2008, the problem is generally because of JavaScript that references the Sys namespace too early.

Here, have a look at these articles and blog posts discussing the same and how to resolve it:
Configuring ASP.NET AJAX[^]
ASP.NET - AJAX functionality not working on the page | Getting ‘Sys’ is undefined[^]
How to solve "sys is undefined" error while using asp.net ajax update panel. [^]
Updated your web.config, but Sys is still undefined?[^]
'Sys' is undefined - ASP.NET AJAX[^]
ASP.NET AJAX 3.5 error - “Sys is undefined” workaround[^]
 
Share this answer
 
Comments
preet88 1-Jun-12 0:35am    
thanks:)
Sandeep Mewara 1-Jun-12 3:21am    
Welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900