我尝试将ImageResizer v3迁移到v4。升级后,我不能调用ImageResizer,甚至不能调用支持页面。支持页错误为:
[TypeLoadException: Der Typ "ImageResizer.Util.BundleAttribute" in der Assembly "ImageResizer, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null" konnte nicht geladen werden.]
System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0
System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +191
System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +162
System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +148
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +604
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +144
System.Attribute.GetCustomAttributes(Assembly element, Type attributeType, Boolean inherit) +111
System.Attribute.GetCustomAttribute(Assembly element, Type attributeType, Boolean inherit) +17
System.Reflection.CustomAttributeExtensions.GetCustomAttribute(Assembly element) +60
ImageResizer.Plugins.Basic.DiagnosticPageHandler.GenerateOutput(HttpContext context, Config c) +943
ImageResizer.Plugins.Basic.DiagnosticPageHandler.ProcessRequest(HttpContext context) +168
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +904
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +98我怎么才能修复它呢?我卸载了模块,然后重新安装,但没有成功:
ImageResizer.4.0.5
ImageResizer.Plugins.TinyCache.4.0.5发布于 2016-02-17 00:07:04
您在ImageResizer v3中留下了1个或多个插件。您不能在v4 ImageResizer.dll中使用a v3插件。
https://stackoverflow.com/questions/35419692
复制相似问题