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

Telerik.Web.UI.WebResource.axd not being used

2 Answers 314 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jess Askey
Top achievements
Rank 1
Jess Askey asked on 15 Jan 2009, 03:02 AM
I have a RadPanelBar that is having issues rendering it's skin completely. I am using a RadScriptManager in this page (it is a master page) yet all css classes for the PanelBar are referencing the regular WebResource.axd page and not the Telerik.Web.UI.Webresource.axd. Im running 2008 Q2. I have checked and rechecked my web.config (AJAX runs correctly) it is just the issues with the PanelBar not getting the appropriate skin CSS classes. Here is my web.config for review but does anyone have any other ideas?

<?xml version="1.0"?>  
<configuration> 
  <configSections> 
    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">  
      <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">  
        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication"/>  
        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">  
          <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="Everywhere" /> 
          <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /> 
          <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" allowDefinition="MachineToApplication" /> 
        </sectionGroup> 
      </sectionGroup> 
    </sectionGroup> 
  </configSections> 
 
  <appSettings> 
  </appSettings> 
  <connectionStrings> 
  </connectionStrings> 
  <system.web> 
    <httpHandlers> 
      <remove verb="*" path="*.asmx"/>  
      <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>  
      <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>  
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>  
      <add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" /> 
    </httpHandlers> 
    <httpRuntime executionTimeout="1000" maxRequestLength="102400" requestLengthDiskThreshold="8192"/>  
    <!-- Set compilation debug="true" to insert debugging   
            symbols into the compiled page. Because this   
            affects performance, set this value to true only   
            during development.  
        --> 
    <compilation debug="true">  
      <assemblies> 
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>  
      </assemblies> 
    </compilation> 
    <authentication mode="Forms">  
      <forms loginUrl="~/Login.aspx" protection="All" defaultUrl="~/Default.aspx" timeout="1440"/>  
    </authentication> 
    <authorization> 
      <deny users="?"/>  
    </authorization> 
    <membership defaultProvider="SecurityMembershipProvider">  
      <providers> 
      </providers> 
    </membership> 
 
       <pages> 
      <controls> 
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      </controls> 
    </pages> 
      
    <httpModules> 
      <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>  
          </httpModules> 
  </system.web> 
    
  <location path="register.aspx">  
    <system.web> 
      <authorization> 
        <allow users ="*" /> 
      </authorization> 
    </system.web> 
  </location> 
  <location path="terms.aspx">  
    <system.web> 
      <authorization> 
        <allow users ="*" /> 
      </authorization> 
    </system.web> 
  </location> 
  <location path="Telerik.Web.UI.WebResource.axd">  
    <system.web> 
      <authorization> 
        <allow users="*"/>  
      </authorization> 
    </system.web> 
  </location> 
 
  <system.codedom> 
    <compilers> 
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">  
        <providerOption name="CompilerVersion" value="v3.5"/>  
        <providerOption name="WarnAsError" value="false"/>  
      </compiler> 
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">  
        <providerOption name="CompilerVersion" value="v3.5"/>  
        <providerOption name="OptionInfer" value="true"/>  
        <providerOption name="WarnAsError" value="false"/>  
      </compiler> 
    </compilers> 
  </system.codedom> 
 
  <system.web.extensions> 
    <scripting> 
      <webServices> 
        <!-- Uncomment this line to customize maxJsonLength and add a   
         custom converter --> 
        <!--  
      <jsonSerialization maxJsonLength="500">  
        <converters> 
          <add name="ConvertMe"   
             type="Acme.SubAcme.ConvertMeTypeConverter"/>  
        </converters> 
      </jsonSerialization> 
      --> 
        <!-- Uncomment this line to enable the authentication service.   
           Include requireSSL="true" if appropriate. --> 
        <!--
      <authenticationService enabled="true" requireSSL = "true|false"/>
      --> 
 
        <!-- Uncomment these lines to enable the profile service. To   
           allow profile properties to be retrieved  
           and modified in ASP.NET AJAX applications, you need to add   
           each property name to the readAccessProperties and  
           writeAccessProperties attributes. --> 
        <!--  
      <profileService enabled="true" 
        readAccessProperties="propertyname1,propertyname2" 
        writeAccessProperties="propertyname1,propertyname2" /> 
      --> 
      </webServices> 
      <!--   
    <scriptResourceHandler enableCompression="true"   
        enableCaching="true" /> 
    --> 
    </scripting> 
  </system.web.extensions> 
 
  <system.webServer> 
    <validation validateIntegratedModeConfiguration="false"/>  
    <modules> 
      <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
    </modules> 
    <handlers> 
      <remove name="WebServiceHandlerFactory-Integrated"/>  
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
      <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" /> 
    </handlers> 
  </system.webServer> 
 
  <!--<runtime> 
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">  
      <dependentAssembly> 
        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>  
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>  
      </dependentAssembly> 
      <dependentAssembly> 
        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>  
        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>  
      </dependentAssembly> 
    </assemblyBinding> 
  </runtime>--> 
</configuration> 
 

Here is my aspx...

<%@ Master Language="C#" AutoEventWireup="true" Inherits="TriMain" 
    CodeBehind="TriMain.master.cs" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
    <title></title>  
    <link rel="SHORTCUT ICON" href="/favicon.ico" /> 
    <link href="App_Themes/portal.css" rel="stylesheet" type="text/css" /> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
 
<telerik:RadSplitter ID="RadSplitterMain" runat="server" Width="100%" Height="100%">  
            <telerik:RadPane ID="LeftPane" runat="server" Width="179" Scrolling="None" MinWidth="179" 
                EnableViewState="true">  
                <telerik:RadPanelBar ID="LeftPanelBar" runat="server" Width="100%" Skin="Sunset">  
                    <ExpandAnimation Type="InOutSine" /> 
                </telerik:RadPanelBar> 
            </telerik:RadPane> 
            <telerik:RadSplitBar ID="RadSplitbarMain" runat="server" CollapseMode="Forward" SkinID="Office2007">  
            </telerik:RadSplitBar> 
            <telerik:RadPane ID="ContentPane" runat="server" Width="100%" MinWidth="1000" BackColor="#ffffff">  
                <div id="TH_Content">  
                    <asp:ContentPlaceHolder ID="PlaceHolderMainContent" runat="Server">  
                        <!-- Content Goes Here --> 
                          
                    </asp:ContentPlaceHolder> 
                </div> 
            </telerik:RadPane> 
        </telerik:RadSplitter> 
 
    </form> 
</body> 
</html> 


thank you in advance for any ideas.

j

2 Answers, 1 is accepted

Sort by
0
Jess Askey
Top achievements
Rank 1
answered on 15 Jan 2009, 03:38 AM
A little more info and some corrections....

I don't believe that my issue is what the subject line says at this point and I can't delete this post (only edit) so my aplogies... I probably should have put this in the RadPanelBar forum... but here goes...

As you can see in the above code... my RadPanelBar is pretty straighforward, however the 'Sunset' skin seems to be rendering the css differently than what I see on the Telerik Demo site. Primarily, what Im looking for are the small expanded and collapsed images to be present. In my CSS I have PanelBar styles as follows..

http://localhost/ProjectIPortal/Secure/WebResource.axd?d=lrgEbN0trZxRYP0NexwScDo5xqhFhls78Y6T7T937YDEcINuqNfK1ATjoaidQsJ5LklB7dPceYuoKAjOVV9tGg2&t=633583814460000000  
 
.RadPanelBar .rpLink, .RadPanelBar .rpText (line 44)  
{  
text-decorationnone;  
displayblock;  
}  
 
.RadPanelBar .rpText (line 72)  
{  
cursorpointer;  

however, on the Telerik demo site... I get CSS that ends up being more like...

http://demos.telerik.com/aspnet-ajax/Telerik.Web.UI.WebResource.axd?compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2008.3.1314.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a40af2a53-a50b-4848-aa77-958f331424d9%3a5951aeec%3a6c91f04a  
 
.RadPanelBar .rpLink, .RadPanelBar .rpText (line 45)  
{  
text-decorationnone;  
displayblock;  
}  
 
.RadPanelBar .rpText (line 72)  
{  
cursorpointer;  
}  
 
.RadPanelBar_Sunset .rpText (line 167)  
{  
padding-top4px;  
padding-right6px;  
padding-bottom4px;  
padding-left6px;  
overflow-x: hidden;  
overflow-y: hidden;  
}  
 
.RadPanelBar_Sunset .rpExpandable .rpText, .RadPanelBar_Sunset .rpLevel1 .rpExpandable .rpText (line 174)  
{  
background-colortransparent;  
background-imageurl(/aspnet-ajax/WebResource.axd?d=5tGGwCrWLeJUjkLf0wID9RNlaUd4rIsbQzvETRjss9RngR3rbilRy6KPPo81BkIHts31VpgLw620Hlq2zEP3LlNqTQ5N2bf45z8cYhyEnus1&t=633675127520000000);  
background-repeatno-repeat;  
background-attachmentscroll;  
background-position: 100% -170px;  
}  
 
.RadPanelBar_Sunset .rpExpanded .rpText, .RadPanelBar_Sunset .rpLevel1 .rpExpandable .rpText (line 180)  
{  
background-colortransparent;  
background-imageurl(/aspnet-ajax/WebResource.axd?d=5tGGwCrWLeJUjkLf0wID9RNlaUd4rIsbQzvETRjss9RngR3rbilRy6KPPo81BkIHts31VpgLw620Hlq2zEP3LlNqTQ5N2bf45z8cYhyEnus1&t=633675127520000000);  
background-repeatno-repeat;  
background-attachmentscroll;  
background-position: 100% 3px;  

Is this simply a differece between 2008 Q2 (my version) and 2008 Q3 (current version)?
0
Atanas Korchev
Telerik team
answered on 15 Jan 2009, 09:33 AM
Hi Jess Askey,

The web resource urls change between versions to avoid caching problems (using older cached resources instead of the latest ones). That's why we recommend to use this approach when customizing an existing skin.

Kind regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Jess Askey
Top achievements
Rank 1
Answers by
Jess Askey
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or