This project is read-only.

HomeController.Index not being called in Orchard 1.8.1


I have recently updated to Orchard 1.8.1 and the Contrib.MediaFolder.Controllers.HomeController.Index route is no longer being called. In the Media Storage List, the files are found and listed, but the images show as broken. Also when viewed on the site, the images are viewed as broken.

In the prior Orchard V1.6.1, the Contrib.MediaFolder.Controllers.HomeController.Index route was being called. Not sure what changed between the two versions, and it may be an Orchard CMS change that caused it to break.

Any help in determining how to fix this is appreciated.

file attachments


FrankHavens wrote Sep 19, 2014 at 8:22 PM

View from Media Storage Admin Page

FrankHavens wrote Sep 19, 2014 at 8:23 PM

route as shown in Debug tools with 404 error

FrankHavens wrote Sep 19, 2014 at 10:08 PM

this can be closed.

Turns out the Media Folder had a web.config with a staticfile handler. Removed the config and route started getting called.

Removed the following from web.config in the Orchard.Web\Media folder.
      <!-- iis6 - for any request in this location, return via managed static file handler -->
      <add path="*" verb="*" type="System.Web.StaticFileHandler" />
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
    <handlers accessPolicy="Script,Read">
      iis7 - for any request to a file exists on disk, return it via native http module.
      accessPolicy 'Script' is to allow for a managed 404 page.
      <add name="StaticFile" path="*" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read" />