Note that there are some explanatory texts on larger screens.

plurals
  1. POImageResizer IIS/IIS Express VirtualFolder Issues
    text
    copied!<p>I'm trying to set up an MVC4 website that will act as an image CDN and I can't get the VirtualFolder functionality to work in IIS or IIS Express for "raw" (unmodified) files. If I switch the website to the built-in webserver then I can make a request for the "raw" file and it'll load. In both cases if I use the a querystring such as ?width=300 the image is loaded correctly.</p> <p>Ultimately my goal is to create my own plugin that will be loading files from a content service we have managing our dynamic content but I'm just trying to get the thing working in general without requiring the querystring value tagged on the end since there will be plenty of cases the image will need to be loaded in it's original form. They will be in a format similar to somewebsite.com/images/{someid}/{somefilename}.ext.</p> <p>This is a brand new website and I installed ImageResizer using the MVCWebConfig package in NuGet. Right now I have the VirtualFolder plugin pointing to "~/testpath" and, like I said, ~/testpath/someimage.jpg doesn't work but ~/testpath/someimage.jpg?width=300 does. </p> <p>I've gone through the troubleshooting, Stackoverflow, and Google searches and it seems like everything is set up correctly so I just don't understand why the built-in server works but IIS and IIS Express do not.</p> <p>As a note, this is on Windows 7 Ultimate, VS2k12. Express shows up as IIS8, regular IIS is 7.5.</p> <p>Additionally, I have tried it with RAMMFAR (runAllManagedModulesForAllRequests) turned on and off. <em>EDIT</em> -- I misreported that not having RAMMFAR was making the built-in server not render raw file, that is not the case. RAMMFAR doesn't seem to affect it in either case but the use of vpp="true" was what made the difference.</p> <p><em>EDIT</em> Additionally, I have tried having the plugin use vpp="false" as well as vpp="true".</p> <p><em>EDIT 7/11/2013</em> Here is the resizer.debug diagnostic sheet details (running in IIS Express):</p> <blockquote> <p>Image resizer diagnostic sheet 7/11/2013 12:50:49 PM</p> <p>2 Issues detected:</p> <p>(Warning): To potentially see additional errors here, perform an image resize request.</p> <p>(Warning): NoCache is only for development usage, and cannot scale to production use. Add DiskCache or CloudFront for production use</p> <p>You are not using any paid bundles.</p> <p>Registered plugins:</p> <p>ImageResizer.Plugins.Basic.DefaultEncoder ImageResizer.Plugins.Basic.NoCache ImageResizer.Plugins.Basic.ClientCache ImageResizer.Plugins.Basic.Diagnostic ImageResizer.Plugins.Basic.SizeLimiting ImageResizer.Plugins.MvcRoutingShim.MvcRoutingShimPlugin GAT.Web.Cdn.Plugins.ContentImagePlugin ImageResizer.Plugins.Basic.VirtualFolder ImageResizer.Plugins.Basic.Gradient</p> <p>Configuration:</p> <p> </p> <p>Accepted querystring keys:</p> <p>quality, format, thumbnail, color1, color2, angle, width, height, maxwidth, maxheight, w, h, scale, stretch, crop, cropxunits, cropyunits, page, bgcolor, rotate, flip, sourceFlip, sFlip, sRotate, borderWidth, borderColor, paddingWidth, paddingColor, ignoreicc, frame, useresizingpipeline, cache, process, margin, anchor, dpi, mode, zoom, </p> <p>Accepted file extensions:</p> <p>bmp, gif, exif, png, tif, tiff, tff, jpg, jpeg, jpe, jif, jfif, jfi, </p> <p>Environment information:</p> <p>Running Microsoft-IIS/8.0 on Microsoft Windows NT 6.1.7601 Service Pack 1 and CLR 4.0.30319.18052 Trust level: Unrestricted OS bitness: x86 !! Warning, running as 32-bit on a 64-bit OS(AMD64). This will limit ram usage !! Executing assembly: C:\Program Files (x86)\IIS Express\iisexpress.exe IntegratedPipeline: True</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload