Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...WebResource.axd serving different resources on same request URL - cahcing issue?WebResource.axd serving different resources on same request URL - cahcing issue?
Previous
 
Next
New Post
1/14/2016 4:36 AM
 
I have a problem where Telerik.Web.UI.WebResource.axd switches between serving JavaScript and CSS with the exact same request URL.

I have a script tag that looks like this:

Code:
<script src="/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager_TSM&amp;compress=1&amp;_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3anb-NO%3ad28568d3-e53e-4706-928f-3765912b66ca%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.2.717.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3anb-NO%3aa713c6a1-0827-4380-88eb-63855ca4c2d9%3a16e4e7cd%3af7645509%3aed16cbdc" type="text/javascript"></script>


Often this serves the (expected) MicrosoftAjax.js just fine, but then on next reload it instead serves MicrosoftAjax.css, breaking further script execution. It seems pretty random, and I'm not sure if this is a browser caching issue, or something else entirely. Has anyone experience the same or a similar problem? I could use a pointer in the right direction :)
 
New Post
1/15/2016 10:01 AM
 

What should the Telerik.Web.UI.WebResource definition look like in web.config? Mine currently looks like this:

 <add name="Telerik.Web.UI.WebResource" verb="*" path="Telerik.Web.UI.WebResource.axd" type="Teleri.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode" />

On the web I see configs including PublicKeyToken, amongst other properties. Are these mandatory? I'm currently on DNN 7.2.4 (lastest), and my site is having all kinds of problems due to the MicrofotAjax.css being returned instead of the .js - script parsing halts and causes errors due to scripts not being loaded. Am I right to assume that the problem is somehow related to the config of this .dll in web.config, or can there be other problems as well? I noticed that the offending script tag that often gets served CSS is located in the BodySCRIPTS asp:placeholder section.

I really need help on this one, as it's pretty much breaking the site for hundreds of users.

 
New Post
1/15/2016 10:07 AM
 

Are you seeing any errors in your browser's developer console when you load the page?

 
New Post
1/18/2016 3:01 AM
 

Absolutely, here's the intermittent error:

Code:

Uncaught SyntaxError: Unexpected token .

dnn.js?cdv=210:1 Uncaught ReferenceError: Sys is not defined(anonymous function) @ dnn.js?cdv=210:1

dnn.jquery.js?cdv=210:4253 Uncaught ReferenceError: Sys is not defined(anonymous function) @ dnn.jquery.js?cdv=210:4253(anonymous function) @ dnn.jquery.js?cdv=210:4256

(index):224 Uncaught ReferenceError: Sys is not defined(anonymous function) @ (index):224

initWidgets.js:3 Uncaught ReferenceError: Type is not definedloadWidgets @ initWidgets.js:3(anonymous function) @ initWidgets.js:24

(index):1346 Uncaught ReferenceError: Sys is not defined(anonymous function) @ (index):1346(anonymous function) @ (index):1347

script.js:1911 Uncaught ReferenceError: Sys is not defined(anonymous function) @ script.js:1911fire @ jquery.js?cdv=210:1037self.fireWith @ jquery.js?cdv=210:1148jQuery.extend.ready @ jquery.js?cdv=210:433completed @ jquery.js?cdv=210:103

dnncore.js?cdv=210:1 Uncaught TypeError: Cannot read property 'attachEvent' of undefined

 

This happens when

Code:
<script src="/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ScriptManager_TSM&amp;compress=1&amp;_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3anb-NO%3ad28568d3-e53e-4706-928f-3765912b66ca%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2013.2.717.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3anb-NO%3aa713c6a1-0827-4380-88eb-63855ca4c2d9%3a16e4e7cd%3af7645509%3aed16cbdc" type="text/javascript"></script>

suddenly points to a CSS instead of JavaScript. Happens in about 1 out of 5-6 times or thereabouts. I fixed a 404 server hammering from every Outlook client in the domain, and this seems to have lowered the rate at which this issue occurs.

After reading up on Telerik's WebResource.axd, I'm wondering if it can be due to PublicKeyToken not being set - is this important? I also went and looked on the server, and multiple versions of the Telerik.Web.Ui.dll is loaded across sites and application pools. The site in question is running in a separate app pool, however. Hoping to get to the bottom of this issue - I also have a problem where Rad UI components aren't properly loaded when logged in as administrator, breaking a lot of client side UI interaction :/

A long post, but hopefully someone will recognise this error, and might know where to start.

 
New Post
2/3/2016 9:46 AM
 
I'm having the same issue. Did you find a solution?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...WebResource.axd serving different resources on same request URL - cahcing issue?WebResource.axd serving different resources on same request URL - cahcing issue?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out