Trying to solve InsecureExternalStyleSheetException

7 posts, 0 answers
  1. Chris
    Chris avatar
    16 posts
    Member since:
    Mar 2007

    Posted 11 Feb 2015 Link to this post

    When attached to my w3wp.exe process for my DNN 7 website, I receive a flood of InsecureExternalStyleSheetException's

    Exception Data:
    Telerik.Web.UI.InsecureExternalStyleSheetException occurred
    Message=The style sheet '/js/dnn.js' is not located in any of the 'Style Sheet' folders designated in the web.config.
    Source=Telerik.Web.UI
    StackTrace:
    at Telerik.Web.UI.ExternalScriptHelper.ResolveSecurePath(String scriptRelativePath)

    Looking this up, it's saying that I need any folder that has a css file to be in a list of folders described by the appSettings key of Telerik.Web.UI.StyleSheetFolders.

    Here are the two related settings:

    <add key="Telerik.Web.UI.ScriptFolders" value="~/Scripts/;" /><!--~/js/;-->
        <add key="Telerik.Web.UI.StyleSheetFolders" value="~/admin/ControlPanel/;~/DesktopModules/Admin/Authentication/;~/DesktopModules/Brick/User Dashboard/;~/DesktopModules/DNNCentric-AJAXFAQ/;~/DesktopModules/DNNCentric-AJAXFAQ/themes/skindefault/;~/DesktopModules/EasyDNNRotator/Controls/ChameleonRotator/static/common/;~/DesktopModules/EasyDNNRotator/Controls/ChameleonRotator/static/themes/callisto/;~/DesktopModules/EasyDNNRotator/flowplayer/skin/;~/DesktopModules/TabsPro/templates/blitzer-simple/;~/Portals/_default/;~/Portals/_default/Containers/Brick/;~/Portals/_default/Containers/Gravity/;~/Portals/_default/Containers/TabsPro/;~/Portals/_default/Skins/_default/WebControlSkin/Default/;~/Portals/_default/Skins/Brick/;~/Portals/_default/Skins/Brick/bootstrap/css/;~/Portals/_default/Skins/Brick/css/;~/Portals/_default/Skins/Brick/js/colorpicker/css/;~/Portals/0/;~/StaticContent/kendo/styles/;~/js/;" />


    I made sure that any folder on any page that loads a css file is included in that list (the second one).

    When I try to add /js to ScriptFolders, it causes 404's on 2 of the 3 WebResource.axd calls for any page that is generated by DNN. One of those seems to be rather important as it causes Sys to be undefined and kills most of the other javascript on the page.

  2. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 12 Feb 2015 Link to this post

    Hello,

    Could you paste the declaration of your RadScriptManager, so that we can take a closer look?

    Regards,
    Bozhidar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chris
    Chris avatar
    16 posts
    Member since:
    Mar 2007

    Posted 12 Feb 2015 in reply to Bozhidar Link to this post

    I don't have it written in a file, only the result because DNN auto-generates this thing as far as I can tell.

    I do a search entire solution for 'RadScriptManager' and get 0 results.
  5. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 13 Feb 2015 Link to this post

    Hi,

    Since the problem is caused by the DNN generation of code it falls outside the scope of our support services. I would advice you to submit the issue in the DNN forum, or their support channel, where you will be able to receive a proper solution to the issue:
    http://www.dnnsoftware.com/community-blog/cid/154991/dnn-and-telerik-rad-controls

    Regards,
    Bozhidar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Allen
    Allen avatar
    50 posts
    Member since:
    Mar 2011

    Posted 02 Nov 2015 in reply to Bozhidar Link to this post

    I am getting these exceptions as well, and I am not using this DNN thing whatever it is.  Here is my declaration

       <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true">
                <Scripts>
                    <%--  http://docs.telerik.com/devtools/aspnet-ajax/controls/scriptmanager/combining-external-scripts --%>
                    <telerik:RadScriptReference Path="~/Scripts/modernizr-2.8.3.js" />
                    <%--Needed for JavaScript IntelliSense in VS2010--%>
                    <%--For VS2008 replace RadScriptManager with ScriptManager--%>
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js"></asp:ScriptReference>
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js"></asp:ScriptReference>
                    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js"></asp:ScriptReference>
                </Scripts>
            </telerik:RadScriptManager>

     ​

  7. Allen
    Allen avatar
    50 posts
    Member since:
    Mar 2011

    Posted 02 Nov 2015 in reply to Allen Link to this post

    I do not have these web.config entries at all.  This problem seems to have just emerged after upgrading.  I do not recall seeing these exceptions before.
  8. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 03 Nov 2015 Link to this post

    Hi,

    We would need more information in order to be able to reproduce and troubleshoot your issue. Could you please open a support ticket and attach a simplified sample page which can be used to test this, along with any relevant information about your setup (for instance are you hosting on IIS, are you using any special security or authentication features etc.)? Could you also specify what did you upgrade, and the versions before and after the upgrade?

    Regards,
    Bozhidar
    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017