This turned out to have an easy fix.  Copy the web.config from /Media to
/files.  Thanks, Bertrand for your post here:
http://orchard.codeplex.com/discussions/286230

Steve


On Thu, Jan 26, 2012 at 11:44 AM, Steven Smith <ssmith.li...@gmail.com>wrote:

> I'm working on an Orchard setup that's migrated from another domain.  The
> old domain kept the images from blog posts in a root folder of
> /files/media/image/Windows-Live-Writer/ArticleName/image.jpg
>
> I've copied all of the old files over, but I'm getting an ASP.NET 404
> response when I try to access these images at this path.  Is there some
> rewriting going on that requires me to put these in the /Media folder in
> Orchard?  Any other ideas?
> I think the issue is this:
>  <system.webServer>
>    <validation validateIntegratedModeConfiguration="false" />
>    <modules runAllManagedModulesForAllRequests="true">
>      <remove name="WarmupHttpModule" />
>      <add name="WarmupHttpModule"
> type="Orchard.WarmupStarter.WarmupHttpModule, Orchard.WarmupStarter,
> Version=1.0.20, Culture=neutral" />
>    </modules>
>    <handlers accessPolicy="Script">
>      <!-- clear all handlers, prevents executing code file extensions,
> prevents returning any file contents -->
>      <clear />
>      <!-- Return 404 for all requests via managed handler. The url routing
> handler will substitute the mvc request handler when routes match. -->
>      *<add name="NotFound" path="*" verb="*"
> type="System.Web.HttpNotFoundHandler" preCondition="integratedMode"
> requireAccess="Script" />*
>    </handlers>
>  </system.webServer>
>
> So my question is, should I remove/comment that line and be done, or do I
> need to do something to add a static route handler of some kind, so that
> images in the /files folder can be displayed correctly?
>
> Thanks,
> Steve
>
> --
> Steve Smith
> http://SteveSmithBlog.com/
> http://twitter.com/ardalis
>
>


-- 
Steve Smith
http://SteveSmithBlog.com/
http://twitter.com/ardalis

Reply via email to