0
我剛剛在IIS6 .NET2上安裝了imageresizer並下載了JCropExample2示例項目。我沒有得到任何錯誤,但a:圖像不會在頁面加載時調整大小,b:裁剪不起作用。沒有顯示錯誤。我是.NET新手,所以真的不知道我錯過了什麼?ImageResizer顯示沒有錯誤,但不能在IIS6上工作
ImageResizer調試:
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
非常感謝您的快速響應。你的答案絕對正確,儘管我沒有錯過這個步驟,只是不確定它是如何實現的。當我編輯頁面如下:你可以請告知什麼'映射所有reqeusts到ASP.NET'的意思和實現,因爲這聽起來像一個更好的選擇也許... – 2012-07-11 21:39:57
我最初的嘗試失敗是由於錯字-lol- – 2012-07-11 21:46:11
好的,我找到了謝謝,將所有請求映射到ASP.NET http://imageresizing.net/docs/cleanurls – 2012-07-11 22:00:28