Exception:“Dapper.SqlMapper”的类型初始值设定项引发异常。该方法的参数和签名不匹配。

报错信息

TypeInitializationException: “Dapper.SqlMapper”的类型初始值设定项引发异常。
--TypeName: Dapper.SqlMapper
StackTrace:
   在 Dapper.SqlMapper.AddTypeHandler[T](TypeHandler`1 handler)
   在 Quicker.Domain.Services.SQLDataMgr..ctor(IAppPathProvider pathProvider)
   在 DynamicInjectorf155aca19e3140ac8a4f648e984cfa38(Object[] )
   在 Ninject.Activation.Context.ResolveInternal(Object scope)
   在 Ninject.Activation.Context.Resolve()
   在 Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings, Boolean filterImplicitBindings)
   在 Ninject.Planning.Targets.Target`1.ResolveWithin(IContext parent)
   在 System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   在 System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   在 System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   在 Ninject.Activation.Providers.StandardProvider.Create(IContext context)
   在 Ninject.Activation.Context.ResolveInternal(Object scope)
   在 Ninject.Activation.Context.Resolve()
   在 Ninject.KernelBase.Resolve(IRequest request, Boolean handleMissingBindings, Boolean filterImplicitBindings)
   在 Quicker.App.T7brJcMjhD()
   在 Quicker.App.<StartupApplicationAsync>d__16.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 Quicker.App.<ApplicationStart>d__14.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

BadImageFormatException: 该方法的参数和签名不匹配。
--Message: 该方法的参数和签名不匹配。
StackTrace:
   在 System.Reflection.RuntimeParameterInfo.GetParameters(IRuntimeMethodInfo methodHandle, MemberInfo member, Signature sig, ParameterInfo& returnParameter, Boolean fetchReturnParameter)
   在 System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()
   在 System.Reflection.RuntimeMethodInfo.GetParametersNoCopy()
   在 System.RuntimeType.FilterApplyMethodBase(MethodBase methodBase, BindingFlags methodFlags, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
   在 System.RuntimeType.GetMethodCandidates(String name, BindingFlags bindingAttr, CallingConventions callConv, Type[] types, Boolean allowPrefixLookup)
   在 System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
   在 System.Type.GetMethod(String name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)
   在 Dapper.SqlMapper.<>c.<.cctor>b__92_1(Type x)
   在 System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   在 System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   在 Dapper.SqlMapper..cctor()

 

解决方法

暂无解决方案。

相关信息
1 查看
23天9小时前
Quicker版本
版本 反馈次数