MAA 遇到了问题
The type initializer for 'MaaWpfGui.ViewModels.UI.SettingsViewModel' threw an exception.
Unable to load DLL 'MaaCore.dll': 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)
解决方案
请参考文档: 常见问题 - 闪退 进行操作。
详细信息
System.TypeInitializationException: The type initializer for 'MaaWpfGui.ViewModels.UI.SettingsViewModel' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'MaaCore.dll': 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)
at MaaWpfGui.ViewModels.UI.SettingsViewModel.AsstGetVersion()
at MaaWpfGui.ViewModels.UI.SettingsViewModel..cctor()
--- End of inner exception stack trace ---
at MaaWpfGui.ViewModels.UI.SettingsViewModel..ctor()
at lambda_method(Closure , IRegistrationContext )
at StyletIoC.Internal.Registrations.SingletonRegistration.GetInstanceExpression(ParameterExpression registrationContext)
at StyletIoC.Internal.Registrations.RegistrationBase.GetGeneratorInternal()
at StyletIoC.Internal.Registrations.RegistrationBase.GetGenerator()
at StyletIoC.Internal.Container.Get(RuntimeTypeHandle typeHandle, String key, Type typeIfAvailable)
at StyletIoC.Internal.Container.Get[T](String key)
at MaaWpfGui.Helper.Instances.Instantiate(IContainer container)
at Stylet.BootstrapperBase.Start(String[] args)
at System.Windows.Application.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
The type initializer for 'MaaWpfGui.ViewModels.UI.SettingsViewModel' threw an exception.
Unable to load DLL 'MaaCore.dll': 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)
解决方案
请参考文档: 常见问题 - 闪退 进行操作。
详细信息
System.TypeInitializationException: The type initializer for 'MaaWpfGui.ViewModels.UI.SettingsViewModel' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'MaaCore.dll': 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)
at MaaWpfGui.ViewModels.UI.SettingsViewModel.AsstGetVersion()
at MaaWpfGui.ViewModels.UI.SettingsViewModel..cctor()
--- End of inner exception stack trace ---
at MaaWpfGui.ViewModels.UI.SettingsViewModel..ctor()
at lambda_method(Closure , IRegistrationContext )
at StyletIoC.Internal.Registrations.SingletonRegistration.GetInstanceExpression(ParameterExpression registrationContext)
at StyletIoC.Internal.Registrations.RegistrationBase.GetGeneratorInternal()
at StyletIoC.Internal.Registrations.RegistrationBase.GetGenerator()
at StyletIoC.Internal.Container.Get(RuntimeTypeHandle typeHandle, String key, Type typeIfAvailable)
at StyletIoC.Internal.Container.Get[T](String key)
at MaaWpfGui.Helper.Instances.Instantiate(IContainer container)
at Stylet.BootstrapperBase.Start(String[] args)
at System.Windows.Application.OnStartup(StartupEventArgs e)
at System.Windows.Application.<.ctor>b__1_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)