This is a migrated thread and some comments may be shown as answers.

Trying to solve InsecureExternalStyleSheetException

6 Answers 280 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 2
Veteran
Chris asked on 11 Feb 2015, 06:01 PM
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.

6 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 12 Feb 2015, 07:14 AM
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.

 
0
Chris
Top achievements
Rank 2
Veteran
answered on 12 Feb 2015, 08:52 AM
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.
0
Bozhidar
Telerik team
answered on 13 Feb 2015, 03:12 PM
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.

 
0
Allen
Top achievements
Rank 2
Iron
Veteran
answered on 02 Nov 2015, 02:17 PM

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>

 â€‹

0
Allen
Top achievements
Rank 2
Iron
Veteran
answered on 02 Nov 2015, 02:19 PM
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.
0
Bozhidar
Telerik team
answered on 03 Nov 2015, 09:16 AM
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
Tags
ScriptManager and StyleSheetManager
Asked by
Chris
Top achievements
Rank 2
Veteran
Answers by
Bozhidar
Telerik team
Chris
Top achievements
Rank 2
Veteran
Allen
Top achievements
Rank 2
Iron
Veteran
Share this question
or