Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
f59375543 opened this issue Sep 30, 2024 · 2 comments
Open

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

f59375543 opened this issue Sep 30, 2024 · 2 comments

Comments

@f59375543
Copy link

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
Copy link
Collaborator

Tohkahb commented Sep 30, 2024

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

@f59375543
Copy link
Author

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

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

@Tohkahb Tohkahb pinned this issue Oct 3, 2024
@Tohkahb Tohkahb unpinned this issue Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants