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

Why WebResource.axd file for Telerik control does not load sometime

9 Answers 1825 Views
Window
This is a migrated thread and some comments may be shown as answers.
Hiren
Top achievements
Rank 1
Hiren asked on 19 Apr 2013, 03:02 AM
Hello All,

I have issue with Radwindow not display properly, i have attached the screen how the Radwindow look like.

I have check the fiddler and i found that there is issue with webresource.axd file is not loaded it give http 404 error.

my production server IIS version is 7.5.7600.16385 and OS window server 2008 R2 standard, I am using .net framework 4.0 with application pool integrated mode.

I have also added the web.config which i have used. this issue only arise on my production lab for my local it is working fine.

<system.web>
    <httpRuntime maxRequestLength="1048500" executionTimeout="3600"/>
    <sessionState timeout="480"/>
    <caching>
      <outputCache enableOutputCache="false"/>
      <sqlCacheDependency enabled="false"/>
      <cache disableMemoryCollection="true"/>
    </caching>
    <pages theme="Default" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
      <controls>
        <add tagPrefix="atlas" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit"/>
        <add namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" tagPrefix="telerik"/>
      </controls>
    </pages>
  <customErrors mode="Off" defaultRedirect="error.htm" />
    <compilation debug="false" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
        <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
        <add assembly="CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
        <add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
        <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
        <add assembly="CrystalDecisions.ReportAppServer.DataDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
      </assemblies>
    </compilation>
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
      <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
      <add verb="*" path="js.axd,css.axd" type="OSCCP.HttpCompress.CompressionHandler,OSCCP.HttpCompress"/>
    </httpHandlers>
    <httpModules>
      <add name="QuertStringModule" type="QuertStringModule"/>
      <!--<add name="HttpCompressModule" type="OSCCP.HttpCompress.HttpModule,OSCCP.HttpCompress"/>-->
    </httpModules>
    <trace enabled ="false"/>
  </system.web>
  <system.webServer>
    <staticContent>
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00"/>
    </staticContent>
    <validation validateIntegratedModeConfiguration="false"/>
    <handlers>
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler"/>
      <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"/>
      <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI"/>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
      <add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2012.2.821.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    </handlers>
  </system.webServer>


Please let me know the solution if i am missed out anything.

Thanks in advance.

9 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 19 Apr 2013, 09:50 AM
Hello Hiren,

The web.config seems fine and I can advise that you examine the following article on the subject: http://www.telerik.com/help/aspnet-ajax/window-troubleshooting-missing-borders-titlebar-and-commands.html. It also links to another article on troubleshooting problematic webresource requests: http://www.telerik.com/help/aspnet-ajax/introduction-web-resources-troubleshooting.html. The following blog post can help in determining the resource that fails: http://blogs.telerik.com/aspnet-ajax/posts/07-03-27/debugging-asp-net-2-0-web-resources-decrypting-the-url-and-getting-the-resource-name.aspx.

It is possible that a firewall/antivirus/proxy software are bocking the requests so you can examine this in your network configuration. Turning off all such filters for testing should show if they are the cause for the problem.

Other things you can look into are:
- externalizing the used skin as a custom skin, so that it does not come from webresources: http://www.telerik.com/help/aspnet-ajax/window-appearance-css-classes-usage.html.
- using the CDN for the stylesheets and resources related to the skins: http://www.telerik.com/help/aspnet-ajax/stylesheetmanager-cdn-support.html.


All the best,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Hiren
Top achievements
Rank 1
answered on 23 Apr 2013, 06:08 AM
Hello Marin,

we are not using the any extra css(stylesheet) file. we can use the Telerik.Web.UI.Webresource.axd which is load from the project bin folder telerik.web.ui.dll

Also this issue happened sometimes so i think it is not a firewall issue, what do you think ?

Sometime we got error message like "Not enough storage is available to complete this operation"  and as i see in fiddler it is while accessing the below link : 

 http://192.168.1.32/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2


Thanks,
Hiren


0
Marin Bratanov
Telerik team
answered on 24 Apr 2013, 01:45 PM
Hi Hiren,

Have you tried my final two suggestions - externalizing the skin so it is not loaded from embedded resources or the stylesheet CDN? I believe either of them can help in your case.

Since there is an error on the server when the problem occurs then the problem is, indeed, not likely to stem from a firewall, yet with the initial information I could not have excluded this possibility.

The error message indicates that the machine did not have enough memory to process the command (in this case this is retrieving the given stylesheet from the assembly). More on why such errors can happen is available in the net, for example here. Reducing the server load may help, as well as cleaning up some space on the drive that is used.

Using the stylesheet CDN should avoid this because no webresources will be requested for the stylesheets.


All the best,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Hiren
Top achievements
Rank 1
answered on 25 Apr 2013, 10:51 AM
Hello Marin,

Regarding the stylesheet CDN it support 2009 version but i am using 2012.2.821.40 version, so i think it will not work.

Also some time we got below error.

Message: Object doesn't support this property or method
Line: 2131
Char: 1
Code: 0
URI: http://192.168.1.32/Appointment.aspx?c=Action&AId=377915&ActId=431329&CId=46567&hideTop=true&TemplateId=2&rwndrnd=0.597523773268164&IwName=Orbelicia Alvarez&ActionFor=CDO&ExistApp=0&startMenu=no
Message: 'Telerik' is undefined

Line: 690414562
Char: 5
Code: 0
URI: http://192.168.1.32/Appointment.aspx?c=Action&AId=377915&ActId=431329&CId=46567&hideTop=true&TemplateId=2&rwndrnd=0.597523773268164&IwName=Orbelicia Alvarez&ActionFor=CDO&ExistApp=0&startMenu=no

Message: 'AjaxControlToolkit' is undefined
Line: 690414562
Char: 5
Code: 0
URI: http://192.168.1.32
/Appointment.aspx?c=Action&AId=377915&ActId=431329&CId=46567&hideTop=true&TemplateId=2&rwndrnd=0.597523773268164&IwName=Orbelicia Alvarez&ActionFor=CDO&ExistApp=0&startMenu=no



I think there might be issue with telerik  setting.

Thanks,
Hiren

0
Marin Bratanov
Telerik team
answered on 26 Apr 2013, 01:45 PM
Hello Hiren,

All major releases since Q3 2009 Service Pack 1 offer a CDN. The version you have listed is an internal build and there is no CDN for that. I advise strongly against using an internal build in production, the next official release is a better option. In this case the Q2 2012 SP2 release is the next one and its number is 2012.2.912. The previous official release is Q2 2012 SP1 with number 2012.2.724. Another option is disabling the embedded scripts and puting them in a folder on the server. How to do this is explained here.


All the best,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Sean
Top achievements
Rank 1
answered on 17 Jan 2014, 08:20 AM
Hi Guys,

We have just spent the last couple months upgrading our Telerik versions from 2009 to the latest build release.  In so doing we have removed the local CDN references which at the time were previously used because the styles weren't rendering on the client side.  Keeping everything locally makes it that much harder when it comes time to upgrading the solution as well as bloats the project size unnecessarily. Surely by now you guys would have figured out a solution to this ongoing problem?

What I have found is this is most common after a fresh deploy to the production server but it is not isolated to just that -
So below is the issue I am having in all browsers but used chrome to diagnose this issue.  One window I refresh normally and the other I refresh with CTRL-F5.  Only the window that gets the CTRL-F5 refresh renders correctly?

NO STYLES:
-----------------
background-imageurl('/WebResource.axd?d=8osApB76lgVJuwLLErcS2AJocLdj-KnyL59BgGU_yO0YtSRiM02Z29p…Zg2r95f20eHwOwR9eNuHnP6vojJv9jVk6UQo2mQ402mbeZaWBAR0&t=635253011350000000');


STYLES RENDERING WITH CTRL-F5 REFRESH
------------------------------------------------------------------
  1. background-imageurl('/WebResource.axd?d=-lsR7hSbjMZRMqe7jTFHx9bmrvug7AigNcU_Q2YtlhTeiQx6vOpDiDl…XH6ESQff65Io1BLmgwayaiv9y7NiNlN61NinFVGSX1DlqAP-YZo0&t=635254387970000000');

Not the unique ID change - So it seems there is caching of an old/incorrect version.
0
Marin Bratanov
Telerik team
answered on 20 Jan 2014, 02:46 PM
Hello Sean,

The CDN we provide uses servers from Amazon so you do not need anything locally. CDN for stylesheets/images/sprites is enabled via a simple property of the RadStyleSheetManager control, as explained here: http://www.telerik.com/help/aspnet-ajax/stylesheetmanager-cdn-support.html. Thus, I believe trying that will help with your case.

As for the change in URLs - indeed, such a change indicates an application (or application pool) restart, while the browser still attempts to request old URLs. Using CDN will let you avoid such a problem.

When such inactive URLs are requested by the browser the solution is to usually clear its cache (or do a full reload via ctrl+f5). You can also look into making the application pool recycle time longer or requesting it on timed intervals. There are various keep-alive sulutions in the net.
You can also look into caching and disabling it, in case some already rendered HTML gets stored by the server, instead of generating new webresource URLs.
Also, such sporadic restarts can be due to some server errors, so you may want to check any logs that you have available.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Sean
Top achievements
Rank 1
answered on 21 Jan 2014, 06:23 AM
Hi Marin,

Thanks for the reply. We are thinking of using your CDN as this seems to solve most of our problems.
Our only concern is China. Will the Chinese Firewall not block the CDN requests to Amazon in Asia?

What other downsides are there to using your CDN?

Regards,
Sean



0
Marin Bratanov
Telerik team
answered on 21 Jan 2014, 02:23 PM
Hello Sean,

I cannot guarantee whether a given firewall bill block a server. You can simply test it to see if the resources are downloaded.

You can work around that by creating a custom CDN provider: http://www.telerik.com/help/aspnet-ajax/cdn-custom-provider.html. The article shows a RadScriptManager, but the logic is the same for RadStyleSheetManager.

A possible downside is reaching IE's stylesheet limit - if a complex page loads more than 31 stylesheets some of them will not be used by the browser: http://blogs.telerik.com/aspnet-ajax/posts/10-05-03/internet-explorer-css-limits.aspx. On such pages you can explicitly disable the CDN and use webresources.


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Window
Asked by
Hiren
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Hiren
Top achievements
Rank 1
Sean
Top achievements
Rank 1
Share this question
or