Sys is undefined

2 posts, 0 answers
  1. Vitus
    Vitus avatar
    2 posts
    Member since:
    Mar 2015

    Posted 27 Nov 2015 Link to this post

     I have been getting the below error, have tried every solution online i could find. even found this below solution in this forum. Even in this didn't help. I'm in bad need to get a solution for this, please

    Problem:

    Using the Telerik controls with RadScriptManager on your login page throws one of the following errors:

    ASP.NET Ajax client-side framework failed to load

    'Sys' is undefined

    "Telerik.Web.UI" is undefined

     

    Cause:

    As the website denies access to all pages to unauthorized users, access to the Telerik.Web.UI.WebResource.axd handler is unauthorized. This causes the handler to serve the content of the login page instead of the combined scripts, hence the error.

    Suggested Solution:

    Add a <location> section to the application configuration file to allow access to Telerik.Web.UI.WebResource.axd to all users, like:

    XML
    <configuration>
    ...
    <location path="Telerik.Web.UI.WebResource.axd">
       <system.web>
         <authorization>
           <allow users="*"/>
         </authorization>
       </system.web>
     </location>
    ...
    </configuration> 
    Cause:

    If a website was migrated from an older version of ASP.NET to the latest there might be a preCondition attribute added to the Telerik.Web.UI.WebResource.axd handler declaration stating that the runtime version is 2.0

    Cause:

    As the website denies access to all pages to unauthorized users, access to the Telerik.Web.UI.WebResource.axd handler is unauthorized. This causes the handler to serve the content of the login page instead of the combined scripts, hence the error.

    Suggested Solution:

    Add a <location> section to the application configuration file to allow access to Telerik.Web.UI.WebResource.axd to all users, like:

    <configuration>
    ...
    <location path="Telerik.Web.UI.WebResource.axd">
       <system.web>
         <authorization>
           <allow users="*"/>
         </authorization>
       </system.web>
     </location>
    ...
    </configuration> 

    Cause:

    If a website was migrated from an older version of ASP.NET to the latest there might be a preCondition attribute added to the Telerik.Web.UI.WebResource.axd handler declaration stating that the runtime version is 2.0

    Cause:

    As the website denies access to all pages to unauthorized users, access to the Telerik.Web.UI.WebResource.axd handler is unauthorized. This causes the handler to serve the content of the login page instead of the combined scripts, hence the error.

    Suggested Solution:

    Add a <location> section to the application configuration file to allow access to Telerik.Web.UI.WebResource.axd to all users, like:

    <configuration>
    ...
    <location path="Telerik.Web.UI.WebResource.axd">
       <system.web>
         <authorization>
           <allow users="*"/>
         </authorization>
       </system.web>
     </location>
    ...
    </configuration> 

    Cause:

    If a website was migrated from an older version of ASP.NET to the latest there might be a preCondition attribute added to the Telerik.Web.UI.WebResource.axd handler declaration stating that the runtime version is 2.0

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 01 Dec 2015 Link to this post

    Hi Vitus,

    This exception is thrown when the MS AJAX framework does not load for some reason.

    Thus, I advise the following:

    1. ensure that a page with <asp:ScriptManager>, an <asp:UpdatePanel> with a <asp:Button> inside operates as expected (i.e, performs AJAX requests)
    2. add location elements that allow access to all our handlers (http://docs.telerik.com/devtools/aspnet-ajax/general-information/web-config-settings-overview#mandatory-additions-to-the-webconfig) and to the ScriptResource handler from the framework
    3. try using the CDN MS provide and the CDN we provide (http://docs.telerik.com/devtools/aspnet-ajax/controls/scriptmanager/cdn-support/overview).

    On a side note - I advise that you post your questions in the most relevant forums (in this case that would be the General Discussions section of the UI for ASP.NET AJAX forum: http://www.telerik.com/forums/aspnet-ajax/general-discussions) because this will let people working on that technology see your question. I already moved the thread there.


    Regards,

    Marin Bratanov
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top