ImageResizer显示没有错误,但不在IIS6上工作

时间:2012-07-11 01:54:09

标签: imageresizer

我刚刚在IIS6 .NET2上安装了imageresizer并下载了JCropExample2示例项目。我没有错误,但是:a:图片不会在页面加载时调整大小而b:裁剪不起作用。没有显示错误。我是.NET的新手,所以真的不确定我错过了什么?

ImageResizer Debug:

2 Issues detected:

(Warning):  To potentially see additional errors here, perform an image resize request.


(Warning):  NoCache is only for development usage, and cannot scale to production use.
            Add DiskCache or CloudFront for production use


You are not using any paid bundles.

Registered plugins:

ImageResizer.Plugins.Basic.DefaultEncoder
ImageResizer.Plugins.Basic.NoCache
ImageResizer.Plugins.Basic.ClientCache
ImageResizer.Plugins.Basic.Diagnostic
ImageResizer.Plugins.Basic.SizeLimiting

Configuration:

<resizer>
<pipeline fakeExtensions=".ashx" />
<plugins />
</resizer>


Accepted querystring keys:

quality, format, thumbnail, maxwidth, maxheight, width, height, 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, 

Accepted file extensions:

bmp, gif, exif, png, tif, tiff, tff, jpg, jpeg, jpe, jif, jfif, jfi, 

Environment information:

Running Microsoft-IIS/6.0 on Microsoft Windows NT 5.2.3790 Service Pack 2 and CLR 2.0.50727.3634
Trust level: Unrestricted
OS bitness: x86
Executing assembly: c:\windows\system32\inetsrv\w3wp.exe
IntegratedPipeline: False

Loaded assemblies:

mscorlib                                 Assembly: 2.0.0.0         File: 2.0.50727.3634  Info: 2.0.50727.3634
System.Web                               Assembly: 2.0.0.0         File: 2.0.50727.3634  Info: 2.0.50727.3634
System                                   Assembly: 2.0.0.0         File: 2.0.50727.3634  Info: 2.0.50727.3634
System.Xml                               Assembly: 2.0.0.0         File: 2.0.50727.3082  Info: 2.0.50727.3082
System.Configuration                     Assembly: 2.0.0.0         File: 2.0.50727.3053  Info: 2.0.50727.3053
System.Data                              Assembly: 2.0.0.0         File: 2.0.50727.3053  Info: 2.0.50727.3053
System.Web.RegularExpressions            Assembly: 2.0.0.0         File: 2.0.50727.3053  Info: 2.0.50727.3053
Microsoft.JScript                        Assembly: 8.0.0.0         File: 8.0.50727.3053  Info: 8.0.50727.3053
System.Web.Mobile                        Assembly: 2.0.0.0         File: 2.0.50727.3053  Info: 2.0.50727.3053
System.ServiceModel                      Assembly: 3.0.0.0         File: 3.0.4506.3636   Info: 3.0.4506.3636
System.Web.Services                      Assembly: 2.0.0.0         File: 2.0.50727.3053  Info: 2.0.50727.3053
System.Drawing                           Assembly: 2.0.0.0         File: 2.0.50727.3639  Info: 2.0.50727.3639
System.EnterpriseServices                Assembly: 2.0.0.0         File: 2.0.50727.3053  Info: 2.0.50727.3053
ImageResizer                             Assembly: 3.2.3.302       File: 3.2.3.302       Info: 3-2-beta-3  Commit: 245e873
System.ServiceModel.Web                  Assembly: 3.5.0.0         File: 3.5.594.1152    Info: 3.5.594.1152
System.WorkflowServices                  Assembly: 3.5.0.0         File: 3.5.594.1152    Info: 3.5.594.1152
System.Runtime.Serialization             Assembly: 3.0.0.0         File: 3.0.4506.3636   Info: 3.0.4506.3636
System.IdentityModel                     Assembly: 3.0.0.0         File: 3.0.4506.3636   Info: 3.0.4506.3636
SMDiagnostics                            Assembly: 3.0.0.0         File: 3.0.4506.3636   Info: 3.0.4506.3636

1 个答案:

答案 0 :(得分:1)

工作正常。您未能阅读3 {3}}

中的第3步
<!-- Unless you (a) use Integrated mode, or (b) map all reqeusts to ASP.NET, 
     you'll need to add .ashx to your image URLs: image.jpg.ashx?width=200&height=20 -->
         <pipeline fakeExtensions=".ashx" />

当您使用的IIS6没有集成模式时,您必须使用.jpg.ashx语法。

on the homepage