TypeInitializationException: “Dapper.SqlMapper”的类型初始值设定项引发异常。 --TypeName: Dapper.SqlMapper StackTrace: 在 Dapper.SqlMapper.AddTypeHandler[T](TypeHandler`1 handler) 在 Quicker.Domain.Services.SQLDataMgr..ctor(IAppPathProvider pathProvider) 在 DynamicInjector4c74b1371e344373844141ec2cea06cf(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.FLvigKiPju() 在 Quicker.App.<StartupApplicationAsync>d__17.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 Quicker.App.<ApplicationStart>d__15.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) SEHException: 外部组件发生异常。 StackTrace: 在 System.ModuleHandle.ResolveMethod(RuntimeModule module, Int32 methodToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount) 在 System.ModuleHandle.ResolveMethodHandleInternalCore(RuntimeModule module, Int32 methodToken, IntPtr[] typeInstantiationContext, Int32 typeInstCount, IntPtr[] methodInstantiationContext, Int32 methodInstCount) 在 System.Reflection.Associates.AssignAssociates(Int32 tkMethod, RuntimeType declaredType, RuntimeType reflectedType) 在 System.Reflection.Associates.AssignAssociates(MetadataImport scope, Int32 mdPropEvent, RuntimeType declaringType, RuntimeType reflectedType, RuntimeMethodInfo& addOn, RuntimeMethodInfo& removeOn, RuntimeMethodInfo& fireOn, RuntimeMethodInfo& getter, RuntimeMethodInfo& setter, MethodInfo[]& other, Boolean& composedOfAllPrivateMethods, BindingFlags& bindingFlags) 在 System.Reflection.RuntimePropertyInfo..ctor(Int32 tkProperty, RuntimeType declaredType, RuntimeTypeCache reflectedTypeCache, Boolean& isPrivate) 在 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.PopulateProperties(Filter filter, RuntimeType declaringType, Dictionary`2 csPropertyInfos, Boolean[] usedSlots, ListBuilder`1& list) 在 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.PopulateProperties(Filter filter) 在 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.GetListByName(Char* pName, Int32 cNameLen, Byte* pUtf8Name, Int32 cUtf8Name, MemberListType listType, CacheType cacheType) 在 System.RuntimeType.RuntimeTypeCache.MemberInfoCache`1.Populate(String name, MemberListType listType, CacheType cacheType) 在 System.RuntimeType.GetPropertyCandidates(String name, BindingFlags bindingAttr, Type[] types, Boolean allowPrefixLookup) 在 System.RuntimeType.GetProperties(BindingFlags bindingAttr) 在 Dapper.SqlMapper..cctor()