首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >System.TypeLoadException:"ImageResizer.Util.BundleAttribute“

System.TypeLoadException:"ImageResizer.Util.BundleAttribute“
EN

Stack Overflow用户
提问于 2016-02-16 05:45:51
回答 1查看 272关注 0票数 1

我尝试将ImageResizer v3迁移到v4。升级后,我不能调用ImageResizer,甚至不能调用支持页面。支持页错误为:

代码语言:javascript
复制
[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

我怎么才能修复它呢?我卸载了模块,然后重新安装,但没有成功:

代码语言:javascript
复制
ImageResizer.4.0.5
ImageResizer.Plugins.TinyCache.4.0.5
EN

回答 1

Stack Overflow用户

发布于 2016-02-17 00:07:04

您在ImageResizer v3中留下了1个或多个插件。您不能在v4 ImageResizer.dll中使用a v3插件。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35419692

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档