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

WebResoucres not the same in two web front end servers

9 Answers 154 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Yaser
Top achievements
Rank 1
Yaser asked on 12 Sep 2011, 11:03 AM

I have two web front end servers configured with Load Balancer and one application server outside the load balancer configuration , and although I configured the machine key on both servers in the web config with the same values as you see in the below:

<machineKey validationKey="AEDAB4B755EB987CBBB4C56EA861BD8A6D2DF4425A9FB7F8" decryptionKey="96A44D2D02FEBBEF8E1FC94DBE4820AC67AEB8BA95DB9C53" validation="SHA1" />

WebResources references are different as you see in the below:

Web front end 1

<link href="/WebResource.axd?d=EUJeeKSuEHqtpWqYXKVDjXJwZS7qQrsjgWJPMkRyIcYidNaMCqJlrJfAZm184B8RJVb1d3QvRziOvCOXxIbf3b-svaG69jUCbEVxwomMUDQ_oerenUHELlXDkKGilSlk0&amp;t=634183493748290221" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

Web front end 2

<link href="/WebResource.axd?d=TFV8V9QizTHQudTQT7Dl7QlzBUw0G7zm7h08wDFQ_UzipCD3e-UfPbUM_K99qXB2tXDFm-IsNhtDmJRjcry3StO61iot2FcGK7_7XrsDCngKWEvSyBafv6D598hVEKY0LXNXFO8k-WFPbcklJ7FhAo0nSvrBXMyffRQN283jgYoatDQV0&amp;t=634509229928059050" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

 

Application server

<link href="/WebResource.axd?d=EUJeeKSuEHqtpWqYXKVDjXJwZS7qQrsjgWJPMkRyIcYidNaMCqJlrJfAZm184B8RJVb1d3QvRziOvCOXxIbf3b-svaG69jUCbEVxwomMUDQ_oerenUHELlXDkKGilSlk0&amp;t=634183493748290221" type="text/css" rel="stylesheet" class="Telerik_stylesheet" />

So I need to know why in the web front end 2 the web resources url refrences is different because it produce errors when redirect from one server to the other.

9 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 14 Sep 2011, 02:29 PM
Hello Yaser,

These requests are through the ASP.NET WebResource.axd handler, so the URLs are generated by ASP.NET. Please try testing with embedded resources from another assembly (not Telerik.Web.UI) to confirm/deny this.

Alternatively, you can try using RadScriptManager/RadStyleSheetManager (with combining, which is 'on' by default) to resolve the problem.

Regards,
Simon
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal
0
Yaser
Top achievements
Rank 1
answered on 19 Sep 2011, 09:43 AM
I can't understand you, kindly find the web config section for httphandler and handlers

   

<handlers>
  <remove name="ASPClassic" />
  <remove name="WebServiceHandlerFactory-Integrated" />
  <remove name="ScriptHandlerFactory" />
  <remove name="ScriptHandlerFactoryAppServices" />
  <remove name="ScriptResource" />
  <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" 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" />
  <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
  <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
  <add name="Telerik_RadUploadProgressHandler" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler,Telerik.Web.UI, Version=2009.3.1319.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode" />
  <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
  <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
</handlers>
<httpHandlers>
  <remove verb="GET,HEAD,POST" path="*" />
  <add verb="GET,HEAD,POST" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
  <add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK,MOVE,COPY,GETLIB,PROPPATCH,MKCOL,DELETE,(GETSOURCE),(HEADSOURCE),(POSTSOURCE)" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
  <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 path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
  <add path="Telerik.Web.UI.DialogHandler.ashx" type="Telerik.Web.UI.DialogHandler,Telerik.Web.UI, Version=2009.3.1319.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />
  <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI, Version=2009.3.1319.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" />
  <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
  <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
  <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</httpHandlers>
Please advice
0
Simon
Telerik team
answered on 26 Sep 2011, 11:29 AM
Hi Yaser,

Let me briefly reiterate what I had in mind in my previous reply.

The requests, which fail on your side are sent to WebResource.axd. This is the ASP.NET default handler. These requests are not sent to Telerik.Web.UI.WebResource.axd, which is a different handler.

So, the problem is unlikely to be related to our controls. To further verify this, I suggest you test a page, which does not use our controls. Instead it can have, for example standard ASP.NET controls, which also requireresources and request them through WebResource.axd. Here you will see whether the error is caused by the web resources themselves or something else.

Best wishes,
Simon
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
Dexter
Top achievements
Rank 1
answered on 07 May 2013, 05:11 AM
Hi Yaser,

I am having the same problem. Did you find a solution?

Thanks, Dexter
0
Peter Filipov
Telerik team
answered on 09 May 2013, 07:34 AM
Hi Dexter,

Could you please clarify that you experience the same issue without our controls as Simeon described in his last post? The issue is possible related to the ASP.NET itself.

All the best,
Peter Filipov
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
Dexter
Top achievements
Rank 1
answered on 13 May 2013, 10:33 PM
Hi Peter,

Thanks for your reply.

Yes there are other resources besides Telerik which have different names, but it's only the Telerik calls which do not find the file/styles, for the Telerik menu for example. So I guess it's not because the names are different. It does not happen all the time, maybe 1 in 10 pages on my machine, but more frequently for others. The error occurs on both the load balanced servers. But if either server is accessed directly, there is no error.

We are using OS 2008R2, IIS7.5, RadControls_for_ASP.NET_AJAX_2008_2_723, Net Scaler for load balancing. Many other apps here including SharePoint are using Net Scaler without any probs.

HTTP Watch output:
GET 302 Redirect to /QeseWeb/frm_blank.aspx?error=true http://....../website folder/Telerik.Web.UI.WebResource.axd?compress=2&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2008.2.723.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen%3afaa3c25c-0b63-45d2-9c6e-561f75337212%3a9fe158b4%3ab33d2df4%3a20e4f1fe%3a98c424f5%3a53139e51%3ae0fb0925%3a85434328%3a1e5e2828%3a80d12b2%3a58361acb%3a4364663%3a75d7057e%3aa1ce8e5c%3acb5de04d

I have found no errors relating to this in the Event Log or the web server log.

Upgrading Telerik is not an option because of the massive amount of testing that would be required.

regards,
Dexter
0
Peter Filipov
Telerik team
answered on 16 May 2013, 07:25 AM
Hello Dexter,

Could please send me a fiddler cap log when the issue is reproduced?

Regards,
Peter Filipov
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
Dexter
Top achievements
Rank 1
answered on 20 May 2013, 09:59 PM
Hi Peter,

Thanks. I have the Fiddler cap output .saz file. How do I send it to you?
I tried copying text from the log which did't work & also attaching the .saz file, but it seems only images can be attached to posts here- right?

regards, Dexter
0
Peter Filipov
Telerik team
answered on 22 May 2013, 01:47 PM
Hi Dexter,

Please open a support ticket and attach the log file.

Regards,
Peter Filipov
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 their blog feed now.
Tags
ScriptManager and StyleSheetManager
Asked by
Yaser
Top achievements
Rank 1
Answers by
Simon
Telerik team
Yaser
Top achievements
Rank 1
Dexter
Top achievements
Rank 1
Peter Filipov
Telerik team
Share this question
or