Custom icons not shown in IIS 7.5

Vote:
 

Hi

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?!

#85302
Apr 22, 2014 18:05
Vote:
 

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?

#85317
Edited, Apr 23, 2014 9:30
Vote:
 

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.

#85322
Apr 23, 2014 10:18
Vote:
 

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?

#85323
Apr 23, 2014 10:24
Vote:
 
#85324
Apr 23, 2014 10:24
Vote:
 

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"?>

<module>

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

#85346
Apr 23, 2014 14:58
Vote:
 

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.

#85352
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.