Episerver 7.5 HTTP 404 Error while viewing images in the site



I'm getting a 404 error while viewing the images from website. Thanks to guidance from Henrik, Per Magne that in my previous post:


I was able to resolve upload of files. And when I view the image in edit mode via media manager, The image is shown properly. The URL resolves as : 


However, when I refer the image in a page, and view from website, it resolves as :


And I get a 404 error for the image. I did go through links mentioned by Henrik, but couldnt resolve the issue myself. It sounds to me that I'm missing some module in web.config.

Here is my module section :


In IIS Failed request tracing I get the following details. Kindly help resolving the issue. Many thanks in advance.

HttpStatus="404", HttpSubStatus="0", FileNameOrURL="404.htm"



Mar 18, 2015 11:15

I might be missing what the problem is, but do you have a custom controller for ImageData content?

Mar 27, 2015 17:47

Hello Ted, 

Sorry that I was on paternity leave and couldnt answer to your question earlier.

We are currently developing a episerver 7.5 site integrating with our existing single signon implmentation (based on Microsoft WIF).

We ran in to problems when we had to add a below route for few custom validations:

"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "DefaultPage", action = "Index", id = "" } // Parameter defaults

This was offending any requests to images and hence I had to add a custom Image Controller to read and server imagedata.

I know that my custom controller implementation is not the correct way of serving images, but please let me know the correct way of implementing this.



Apr 01, 2015 18:13