Orchard CMS Deployment: Duplicate StaticFile handler

0 Flares Twitter 0 Facebook 0 StumbleUpon 0 Google+ 0 LinkedIn 0 0 Flares ×

One little problem I had when promoting my first Orchard CMS site to my shared hosting provider is that none of the Theme elements seemed to be working. By this I mean the css and any content items (like images) weren’t loading. When I looked into it I found that, there was a duplicate StaticFile handler in the web.config for these files. This was probably due to the way my shared hosting provider holds the websites.

To resolve it I added the following snippet to the web.config of the root Themes folder, in the Orchard CMS website:
…your configurations here…

Not sure if this is a normal problem with Orchard CMS, whether its more as a result of a partially failed deployment, or whether its always the case on a shared hosting provider.

Matt

The Essential App Marketing Kit
Subscribe To My Newsletter To Get an Entire Chapter From The Book for FREE
Never display this again
0 Flares Twitter 0 Facebook 0 StumbleUpon 0 Google+ 0 LinkedIn 0 0 Flares ×