Javascript error when adding Authorization code block to web.config

2 posts, 0 answers
  1. Doug
    Doug avatar
    26 posts
    Member since:
    Feb 2011

    Posted 30 Jul 2015 Link to this post

    I have added Forms authentication to my Telerik Website which is working fine.  When I add the code block for <authorization> the side will load but throw the following error before opening the login page:


    JavaScript critical error at line 3, column 1 in http://localhost:61573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:88fd0407-24cf-4abd-9df5-22f81b2bc835:ea597d4b:b25378d2;Telerik.Web.UI:en-US:33628d01-7007-4010-a8f6-f8f356bdff24:16e4e7cd:f7645509:22a6274a\n\nSCRIPT1002: Syntax error


    If I remove the code block the site works but there is complete access to all the pages.

          <deny users="?" />


    Not sure where to start looking.  I don't really want to create a session variable and redirect to the login page if not set if I don't have to.


    This is a VS 2013 / .net framework 4.5 / C# web application.


    Any thoughts?



  2. Pavlina
    Pavlina avatar
    6165 posts

    Posted 04 Aug 2015 Link to this post


    You can use the bellow web.config configuration to exclude Telerik.Web.UI.WebResource.axd from authentication:
    <location path="Telerik.Web.UI.WebResource.axd"
                <allow users="*" />     

    Give it a try and let me know if this helps to prevent the javascript error.

    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
Back to Top