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

/Telerik.Web.UI.WebResource.axd being blocked by dotNetProtect - any workaround

3 Answers 590 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John Hamman
Top achievements
Rank 1
John Hamman asked on 21 Apr 2010, 05:45 PM
Hi all, I am creating an admin section for a client and they use dotNetProtect.
Apparently dotNetProtect is blocking the /Telerik.Web.UI.WebResource.
axd file from being accessed and according to their pathetic support, there is no fix!

I was wondering if I could just cut and paste the JS code from this file into a js page.
Without this file I get the Telerik is undefined. When I remove dotNetprotect, it works.

Is there any solution or workaround you all can think of?
John

3 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 22 Apr 2010, 08:35 AM
Hello John,

Is disabling the embedded resources for RadControls for ASP.NET AJAX and registering them manually as explained in this documentation topic a possible workaround for you? Thus the resources will be served from the location you specified explicitly.

Kind regards,
Sebastian
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
John Hamman
Top achievements
Rank 1
answered on 22 Apr 2010, 12:38 PM
Absolutely, But it hasn't been working fully for me:
when I put this in the code:
telerik:RadScriptManager ID="RadScriptManager1" runat="server" > 
    <Scripts> 
        <asp:ScriptReference Path="~/Scripts/Common/Core.js" /> 
        <asp:ScriptReference Path="~/Scripts/Ajax/Ajax.js"  /> 
        <asp:ScriptReference Path="~/Scripts/Grid/RadGridScripts.js" /> 
    </Scripts> 
</telerik:RadScriptManager> 
and in the webconfig put
 <appSettings> 
  <!-- Disables the embedded scripts and skins for all RadControls --> 
  <add key="Telerik.EnableEmbeddedScripts" value="false"/>          
</appSettings>  

It still renders a /Telerik.Web.UI.WebResource.axd in the code: (i removed the long query-string for this example).
<script src="/Telerik.Web.UI.WebResource.axd?" type="text/javascript"></script><script src="../../Scripts/Common/Core.js" type="text/javascript"></script> 
<script src="../../Scripts/Ajax/Ajax.js" type="text/javascript"></script> 
<script src="../../Scripts/Grid/RadGridScripts.js" type="text/javascript"></script> 
<div> 
 

Perhaps I am missing something?








0
T. Tsonev
Telerik team
answered on 22 Apr 2010, 01:02 PM
Hi John,

Allow me to suggest an alternative solution. If DotNetProtect is blocking the Telerik.Web.UI.WebResource.axd requests then we can change the name of the handler.

<telerik:RadScriptManager HttpHandlerUrl="~/MyLovelyHandler.axd" ... >

Then replace "Telerik.Web.UI.WebResource.axd" with "MyLovelyHandler.axd" in web.config. You can even try changing the extension, it should still work.

The next solution I can think of is to set EnableScriptCombine to "false".

I hope this helps.

Sincerely yours,
Tsvetomir Tsonev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
John Hamman
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
John Hamman
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or