Sys is undefined. Telerik is undefined

Discussion in 'Site Programming, Development and Design' started by Yohancef, Mar 27, 2011.

  1. Has anyone run into this issue? The application runs perfectly on a 2003 Server IIS6, but on Winhost IIS7 it will not properly load. It seems to be an AJAX enabling issue. I have added all the suggested entries to the web.config that GOogle has to offer and even turned forms authentication off in case it was an access issue, but nothing seems to work.
     
    Last edited by a moderator: Oct 14, 2015
  2. Could you give us the full error message or a link the error on your site?
     
  3. Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
    Timestamp: Mon, 28 Mar 2011 02:10:38 UTC


    Message: ASP.NET Ajax client-side framework failed to load.
    Line: 118
    Char: 34
    Code: 0
    URI: http://www.xlinkconcepts.com/InventoryManager/WebForms/Home.aspx


    Message: 'Sys' is undefined
    Line: 124
    Char: 1
    Code: 0
    URI: http://www.xlinkconcepts.com/InventoryManager/WebForms/Home.aspx


    Message: 'Telerik' is undefined
    Line: 274
    Char: 1
    Code: 0
    URI: http://www.xlinkconcepts.com/InventoryManager/WebForms/Home.aspx

    This is some of my web.config



    <compilation debug="true" targetFramework="4.0">
    <assemblies>
    <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
    </assemblies>
    </compilation>
    <httpHandlers>
    <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
    <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
    <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
    <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
    <httpModules>
    <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </httpModules>

    ....

    <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
    <remove name="ScriptModule"/>
    <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    </modules>
    <handlers>
    <remove name="WebServiceHandlerFactory-Integrated"/>
    <remove name="ScriptHandlerFactory"/>
    <remove name="ScriptHandlerFactoryAppServices"/>
    <remove name="ScriptResource"/>
    <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
    <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    </handlers>
    </system.webServer>
     
  4. Ray

    Ray

    The error message is not enough to find out what is the cause of the problem. Try downloading and installing Fiddler on your computer. It is a program that records out bound http calls to the server. This should give you a better understanding on what is occurring on the back end.

    http://www.fiddlertool.com/fiddler/version.asp
     
  5. What information would you like from Fiddler?
     
  6. Ray

    Ray

    When you pull up the site, it should start recording the http calls. Find anything that is 400 or 500 status errors.
     
  7. Any update to this?

    I'm interested in this solution as I am recieving the 'sys undefined' error as well, although I do have the 'ASP.NET Ajax client-side framework failed to load' issue solved (updated my web.config). Everything works locally but not on Winhost. Is there any specific configuration I need for 3.5?
     
    Last edited by a moderator: Oct 14, 2015
  8. Ray

    Ray

    This is such a hard error to figure out because it doesn't give you enough details to even know where to start. The problem can occur in all sorts of places. Another good technique to debug this is to start off small. Debugging a fully developed application is very difficult to do.
     
    Last edited by a moderator: Oct 14, 2015

Share This Page