Custom icons not shown in IIS 7.5



I have specific behaviour bugging me. I have implemented custom tree icons and block size choosing icons using UIDescriptors. They work perfectly on developer machines on multiple computers in both IIS Express and IIS 8.5.

When deployed to any of 2 servers both running IIS 7.5, it doesn't load. Icons are just not displayed, empty space. When checked in console there are no errors, and the treeIcons.css doesn't load as a resource. Like it is not called at all. I have tried to copy all files I have on my machine, modules, everything. Still doesn't load.

Did anybody have similar problem?!

Apr 22, 2014 18:05

It sounds like a "bundle-problem", meaning that you might have css bundling when doing a release-build but not a debug-build. In the deployed enviroment, can you see if there are minified versions of the css?

Edited, Apr 23, 2014 9:30

Henrik thanks for the reply. No, CSS-s aren't minified. As I wrote before, at one point I copied everything from my machine at one point, the Debug build, still didn't show.

Apr 23, 2014 10:18

Ok, strange then. If you do a viewsource in development and in production, are there any differens in the resulting file, looking at the include style-part?

Apr 23, 2014 10:24
Apr 23, 2014 10:24

It is definitely IIS version. I have deployed the code to IIS 8.0 and it works. This part of configuration in modules.config doesn't work in IIS 7

<?xml version="1.0" encoding="utf-8"?>


<!-- This adds the template assembly to the "default module" -->
<add assembly="Kampanje" />
<add name="epi-cms.widgets.base" path="Styles/Styles.css" resourceType="Style"/>
<!-- Add a mapping from alloy to ~/ClientResources/Scripts to the dojo loader configuration -->
<add name="Kampanje" path="Scripts" />

Apr 23, 2014 14:58

Should work in IIS 7, but it sounds like the module.config isn't loaded.

You can verify if the module is picked up by the initialization by looking for the "App" module in:

<ui path>/Shell/Debug/ShellModules

You'll be prompted to add an appSettings key, which you should make sure to remove again on production sites.

Edited, Apr 23, 2014 15:50
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.