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

Custom Theme not applied when Web Site in Release mode

6 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 10 Jan 2013, 01:18 PM
I have setup the web.config to use my custom theme:

<appSettings>
    <add key="Telerik.EnableEmbeddedSkins" value="false" />
    <add key="Telerik.Skin" value="Portal" />
  </appSettings>

This works when I have:
<compilation debug="false" 

When I set debug="true" I get 404 errors for the custom images etc I am using on the RadGrid, e.g.:

GET /NotFound?aspxerrorpath=/PortalDev/Content/Grid/sprite.gif HTTP/1.1  <-- missing the path to Portal theme

The path used when debug is false (and this works) is: "PortalDev/Content/themes/Portal/Grid/sprite.gif"

What setting do I need to use to get this to work?

Thanks
Tony

6 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 15 Jan 2013, 03:41 PM
Hello Tony,

If your problem is specifically 404 error, please see this blog post for troubleshooting info. If the advice there does not help, can you provide us with FiddlerCap logs, so we can troubleshoot at least your case?

All the best,
Pavlina
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
Tony
Top achievements
Rank 1
answered on 28 Aug 2014, 09:02 AM
using chrome dev tools I can see the initiator is http://localhost:61065/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3afa6755fd-da1a-49d3-9eb4-1e473e780ecd%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a6915a8c2-c063-435a-ab31-d2d2285652a6%3a16e4e7cd%3af7645509%3a22a6274a

from fiddler I get this:

when debug=false it fails as the path does not include the theme, e.g. http://localhost:61065/Content/Grid/sprite.gif HTTP/1.1

when debug=true the path is http://localhost:61065/Content/themes/Portal/Grid/sprite.gif and all is ok.

in the web.config I have the following Telerik settings:
<add key="Telerik.Web.UI.RenderMode" value="classic" />
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.ScriptManager.EnableEmbeddedjQuery" value="false" />
<add key="Telerik.Skin" value="Portal" />

Any ideas?








0
Tony
Top achievements
Rank 1
answered on 28 Aug 2014, 03:43 PM
sorry so late to reply on this but I'm still looking for a solution:

some more info...
using chrome dev tools I can see the initiator is http://localhost:61065/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3afa6755fd-da1a-49d3-9eb4-1e473e780ecd%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a6915a8c2-c063-435a-ab31-d2d2285652a6%3a16e4e7cd%3af7645509%3a22a6274a

from fiddler I get this:

when debug=false it fails as the path does not include the theme, e.g. http://localhost:61065/Content/Grid/sprite.gif HTTP/1.1

when debug=true the path is http://localhost:61065/Content/themes/Portal/Grid/sprite.gif and all is ok. 

in the web.config I have the following Telerik settings:
<add key="Telerik.Web.UI.RenderMode" value="classic" />
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.ScriptManager.EnableEmbeddedjQuery" value="false" />
<add key="Telerik.Skin" value="Portal" />

Any ideas?
0
Pavlina
Telerik team
answered on 01 Sep 2014, 05:08 PM
Hi,

I assume that you had already revised the following article, describing the cause and the solutions for such problems:
http://www.telerik.com/forums/telerik-web-ui-webresource-axd-unhandled-exception
If you are not, please try the provided solutions and let us know the behavior.


You can also check the following article in the documentation:
http://www.telerik.com/help/aspnet-ajax/web-resources-troubleshooting.html 

Another thing you can try is the script CDN we offer: http://www.telerik.com/help/aspnet-ajax/scriptmanager-cdn-support.html so that the scripts are not loaded from your own server, in case the problem stems from the webresource requests.

If you are using RadScriptManager you can try disabling the script combining by setting the EnableScriptCombine property to false and see if it makes any difference.

In addition, please refer to this forum thread, where a similar issue is observed and a solution for the problem is found.

Regards, Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Tony
Top achievements
Rank 1
answered on 02 Sep 2014, 02:01 PM
Hi Pavlina

None of your suggestions are having any effect on the path to the theme when debug=false.

i.e. the Request header is GET /Content/Grid/sprite.gif  - this is the wrong path

but when I switch to debug="true" the Request header is altered to GET /Content/themes/Portal/Grid/sprite.gif and all is ok.


Any other ideas?

Thanks
Tony





0
Pavlina
Telerik team
answered on 05 Sep 2014, 04:07 PM
Hello,

May I ask you to isolate the problem in a sample runnable project where the custom theme is applied. This would allow us to replicate the described problem with debug="true" locally and provide a proper solution for your case. You should open a support ticket in order to be able to attach the project.

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Tony
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Tony
Top achievements
Rank 1
Share this question
or