MaaXYZ / MCCA

交错战线 小助手
MIT License
61 stars 2 forks source link

[报错]MFA 遇到了问题 #21

Open f59375543 opened 1 month ago

f59375543 commented 1 month ago

MFA 遇到了问题 “对类型“MFAWPF.Views.MainWindow”的构造函数执行符合指定的绑定约束的调用时引发了异常。”,行号为“14”,行位置为“12”。 Unable to load DLL 'MaaToolkit' or one of its dependencies: 动态链接库(DLL)初始化例程失败。 (0x8007045A) 详细信息 System.Windows.Markup.XamlParseException: “对类型“MFAWPF.Views.MainWindow”的构造函数执行符合指定的绑定约束的调用时引发了异常。”,行号为“14”,行位置为“12”。 ---> System.DllNotFoundException: Unable to load DLL 'MaaToolkit' or one of its dependencies: 动态链接库(DLL)初始化例程失败。 (0x8007045A) at MaaFramework.Binding.Interop.Native.MaaToolkit.g__PInvoke|12_0(Byte __userPath_native, Byte defaultJson_native) at MaaFramework.Binding.Interop.Native.MaaToolkit.MaaToolkitConfigInitOption(String userPath, String defaultJson) at MaaFramework.Binding.MaaToolkit.ConfigClass.InitOption(String userPath, String defaultJson) at MaaFramework.Binding.MaaToolkit..ctor(Boolean init, String userPath, String defaultJson) at MFAWPF.Views.MainWindow..ctor() in F:\RiderProjects\MFAWPF\MFAWPF\Views\MainWindow.xaml.cs:line 47 at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions) --- End of inner exception stack trace --- at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc) at System.Windows.Application.DoStartup() 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)

Tohkahb commented 1 month ago

可能是缺少VC_redist.x64运行库https://aka.ms/vs/17/release/vc_redist.x64.exe

f59375543 commented 1 month ago

可能是缺少VC_redist.x64运行库https://aka.ms/vs/17/release/vc_redist.x64.exe

查到原因了,我之前启动了1.4,就算关闭后仍然无法正常调动,重启电脑后恢复正常