Remotereader插件不能与imageresizer一起使用

时间:2014-01-01 10:27:55

标签: imageresizer

我遇到了Image resizer的remotereader插件问题。

在本地服务器和本地IIS上一切正常,但是当我将站点放在远程服务器上时,它停止使用错误消息图像url包含错误。

exm:http://refp.client-staging.com/remote.jpg.ashx?width=526&urlb64=aHR0cHM6Ly9zMy5hbWF6b25hd3MuY29tL3JlZnBzdGFnaW5nL3Byb3BlcnR5L25vLWltYWdlLnBuZw&hmac=OsF1TwAYgvA无法加载,因为它包含错误。 在控制台中,它显示500内部错误。

同一个插件在本地服务器上正常运行。

我试图将本地和远程服务器上的/resizer.debug.ashx都匹配。他们之间没有区别。

我也尝试过根据imageresizer支持进行诊断,但不能从中得到任何结果。

这是resizer.debug.ashx输出。

Image resizer diagnostic sheet      1/1/2014 10:14:38 AM

1 Issues detected:

(Warning):  Precompilation is enabled. Image providers may not work as expected.



You are using plugins from the Performance Edition: DiskCache (Performance Edition), RemoteReaderPlugin (Performance Edition)

Registered plugins:

ImageResizer.Plugins.Basic.DefaultEncoder
ImageResizer.Plugins.Basic.NoCache
ImageResizer.Plugins.Basic.ClientCache
ImageResizer.Plugins.Basic.Diagnostic
ImageResizer.Plugins.Basic.SizeLimiting
ImageResizer.Plugins.MvcRoutingShim.MvcRoutingShimPlugin
ImageResizer.Plugins.DiskCache.DiskCache
ImageResizer.Plugins.RemoteReader.RemoteReaderPlugin

Configuration:

<resizer>
<remotereader signingKey="[redacted]" allowAllSignedRequests="true"     allowRedirects="50000000000000">
<allow domain="imageresizing.net" />
<allow domain="*.imageresizing.net" onlyWhenSigned="true" />
</remotereader>
<pipeline fakeExtensions=".ashx" />
<clientcache minutes="1440" />
<diskCache dir="~/imagecache" autoClean="false" hashModifiedDate="true" enabled="true"     subfolders="32" cacheAccessTimeout="15000" asyncWrites="false" asyncBufferSize="10485760"     />
<plugins>
<add name="MvcRoutingShim" />
<add name="DiskCache" />
<add name="RemoteReader" />
</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/7.5 on Microsoft Windows NT 6.1.7601 Service Pack 1 and CLR     4.0.30319.1008
Trust level: Unrestricted
OS bitness: AMD64
Executing assembly: c:\windows\system32\inetsrv\w3wp.exe
IntegratedPipeline: True

Loaded assemblies:

mscorlib                                 Assembly: 4.0.0.0         File: 4.0.30319.1008      Info: 4.0.30319.1008
System.Web                               Assembly: 4.0.0.0         File: 4.0.30319.1016  Info: 4.0.30319.1016
System                                   Assembly: 4.0.0.0         File: 4.0.30319.1001  Info: 4.0.30319.1001
System.Core                              Assembly: 4.0.0.0         File: 4.0.30319.233   Info: 4.0.30319.233
System.Xml                               Assembly: 4.0.0.0         File: 4.0.30319.1015  Info: 4.0.30319.1015
System.Configuration                     Assembly: 4.0.0.0         File: 4.0.30319.1015  Info: 4.0.30319.1015
System.Data.SqlXml                       Assembly: 4.0.0.0         File: 4.0.30319.1015  Info: 4.0.30319.1015
Microsoft.Build.Utilities.v4.0           Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Runtime.Caching                   Assembly: 4.0.0.0         File: 4.0.30319.237   Info: 4.0.30319.237
System.Web.RegularExpressions            Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Data                              Assembly: 4.0.0.0         File: 4.0.30319.237   Info: 4.0.30319.237
System.Transactions                      Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.EnterpriseServices                Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Numerics                          Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
Microsoft.JScript                        Assembly: 10.0.0.0        File: 10.0.30319.296  Info: 10.0.30319.296
System.Web.Mvc                           Assembly: 3.0.0.0         File: 3.0.20105.0    
System.Web.WebPages.Deployment           Assembly: 1.0.0.0         File: 1.0.20105.407  
System.Web.WebPages                      Assembly: 1.0.0.0         File: 1.0.20105.407  
Microsoft.Web.Infrastructure             Assembly: 1.0.0.0         File: 1.0.20105.407  
System.Web.WebPages.Razor                Assembly: 1.0.0.0         File: 1.0.20105.407  
System.ComponentModel.DataAnnotations    Assembly: 4.0.0.0         File: 4.0.30319.1         Info: 4.0.30319.1
System.Data.Linq                         Assembly: 4.0.0.0         File: 4.0.30319.1015      Info: 4.0.30319.1015
System.Web.Extensions                    Assembly: 4.0.0.0         File: 4.0.30319.1016  Info: 4.0.30319.1016
REFP.csproj_deploy                       Assembly: 0.0.0.0        
Cassette.Views                           Assembly: 2.0.0.17975     File: 2.0.0.0         Info: 2.0.0
REFP.Core                                Assembly: 1.0.0.0         File: 1.0.0.0        
Stripe.net                               Assembly: 1.2.0.0        
FluentValidation.Mvc                     Assembly: 3.2.0.0         File: 3.2.0.0        
EntityFramework                          Assembly: 4.1.0.0         File: 4.1.10331.0     Info: 4.1.10331.0
System.Data.Entity                       Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Xml.Linq                          Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Runtime.Serialization             Assembly: 4.0.0.0         File: 4.0.30319.1016  Info: 4.0.30319.1016
Anonymously Hosted DynamicMethods Assembly Assembly: 0.0.0.0        
System.Data.OracleClient                 Assembly: 4.0.0.0         File: 4.0.30319.1         Info: 4.0.30319.1
FluentValidation                         Assembly: 3.2.0.0         File: 3.2.0.0        
Cassette                                 Assembly: 2.0.0.17974     File: 2.0.0.0         Info: 2.0.0
EntityFrameworkDynamicProxies-EntityFramework Assembly: 1.0.0.0        
EntityFrameworkDynamicProxies-REFP.Core  Assembly: 1.0.0.0        
System.ServiceModel.Activation           Assembly: 4.0.0.0         File: 4.0.30319.233   Info: 4.0.30319.233
System.Runtime.DurableInstancing         Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.ServiceModel                      Assembly: 4.0.0.0         File: 4.0.30319.1001  Info: 4.0.30319.1001
SMDiagnostics                            Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Xaml.Hosting                      Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
Elmah                                    Assembly: 1.2.13605.0     File: 1.2.13605.2128 
Cassette.Aspnet                          Assembly: 2.0.0.17975     File: 2.0.0.0         Info: 2.0.0
Microsoft.CSharp                         Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Web.Services                      Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Drawing                           Assembly: 4.0.0.0         File: 4.0.30319.1001  Info: 4.0.30319.1001
System.IdentityModel                     Assembly: 4.0.0.0         File: 4.0.30319.1001  Info: 4.0.30319.1001
System.ServiceModel.Web                  Assembly: 4.0.0.0         File: 4.0.30319.233   Info: 4.0.30319.233
System.Activities                        Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.ServiceModel.Activities           Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.WorkflowServices                  Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Data.DataSetExtensions            Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Web.DynamicData                   Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Web.ApplicationServices           Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
AjaxMin                                  Assembly: 4.60.4609.17023
AWSSDK                                   Assembly: 1.3.19.0        File: 1.3.19.0       
BCrypt.Net                               Assembly: 0.1.4056.18965  File: 0.1.0.0        
CKFinder                                 Assembly: 2.2.0.1326     
ImageResizer                             Assembly: 3.4.2.549       File: 3.4.2.549       Info: 3-4-2  Commit: dd7c30b
ImageResizer.Mvc                         Assembly: 3.4.2.549       File: 3.4.2.549       Info: 3-4-2  Commit: dd7c30b
ImageResizer.Plugins.DiskCache           Assembly: 3.4.2.549       File: 3.4.2.549       Info: 3-4-2  Commit: dd7c30b
ImageResizer.Plugins.RemoteReader        Assembly: 3.4.2.549       File: 3.4.2.549       Info: 3-4-2  Commit: dd7c30b
ImageResizer.Plugins.S3Reader            Assembly: 3.4.2.549       File: 3.4.2.549       Info: 3-4-2  Commit: dd7c30b
librets-dotnet                           Assembly: 0.0.0.0        
LinqKit                                  Assembly: 1.0.0.0         File: 1.0.0.0        
Newtonsoft.Json                          Assembly: 4.5.0.0         File: 4.5.3.14814    
nunit.framework                          Assembly: 2.6.3.13283     Info: 2.6.3.13283
REFP                                     Assembly: 1.0.0.0         File: 1.0.0.0        
RestSharp                                Assembly: 102.7.0.0       File: 102.7.0.0      
RouteDebug                               Assembly: 1.0.0.0         File: 1.0.0.0        
seleniumtestcases                        Assembly: 1.0.0.0         File: 1.0.0.0        
Utilities                                Assembly: 1.0.0.0         File: 1.0.0.0        
WebDriver                                Assembly: 2.37.0.0        File: 2.37.0.0       
WebDriver.Support                        Assembly: 2.37.0.0        File: 2.37.0.0       
System.Web.Abstractions                  Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Web.Helpers                       Assembly: 1.0.0.0         File: 1.0.20105.407  
System.Web.Routing                       Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
System.Design                            Assembly: 4.0.0.0         File: 4.0.30319.237       Info: 4.0.30319.237
System.Web.Mobile                        Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
App_Web_hc0ar5ee                         Assembly: 0.0.0.0        
App_Web_issnssr2                         Assembly: 0.0.0.0        
System.Dynamic                           Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
App_Web_xii3ec4x                         Assembly: 0.0.0.0        
App_Web_wzezwmsm                         Assembly: 0.0.0.0        
App_Web_hhqs4kam                         Assembly: 0.0.0.0        
App_Web_3uzvykdn                         Assembly: 0.0.0.0        
App_Web_lip2j2wq                         Assembly: 0.0.0.0        
App_Web_hjrxm4as                         Assembly: 0.0.0.0        
System.Xml.Xsl.CompiledQuery.1           Assembly: 0.0.0.0        
pcln2wso                                 Assembly: 1.3.19.0       

The following plugin assemblies are loaded but do not seem to be in use. You should     remove them (and especially their dependencies (unless used elsewhere)) from the /bin     folder to improve application load times:

ImageResizer.Plugins.S3Reader            Assembly: 3.4.2.549       File: 3.4.2.549           Info: 3-4-2  Commit: dd7c30b

Reference list of plugin dependencies - so you know what additional dlls to remove when     removing a plugin. (may not be up-to-date, see plugin docs):

The FreeImage plugin has the following dependencies: FreeImage.dll and FreeImageNET.dll
The Logging plugin depends on: NLog.dll
The AdvancedFilters, RedEye, and WhitespaceTrimmer plugins depend on: AForge.dll,     AForge.Math.dll, and AForge.Imaging.dll
The PsdReader and PsdComposer plugins depend on: PsdFile.dll
The S3Reader plugin depends on: LitS3.dll
The BatchZipper plugin depends on: Ionic.Zip.Reduced.dll
The PdfRenderer plugin depends on gsdll32.dll or gdsll32.dll
The RedEye plugin depends on several dozen files... see the plugin docs.

请帮忙。提前谢谢。

1 个答案:

答案 0 :(得分:0)

我解决了这个问题。这是服务器的问题。实际上,当这不起作用,我试图使用remotereader插件,但也没有工作,所以我尝试将代码部署到其他服务器,它的工作原理。所以代码没什么,它在部署的服务器上遇到了一些问题。

感谢。