Fork me on GitHub

林德熙

If you have any language confusion,please talk to me lindexi_gd@163.com.

WPF 异常 NativeWPFDLLLoader.LoadNativeWPFDLL

如果发现出现下面异常,可以尝试重装 .net Framework

 System.ComponentModel.Win32Exception 异常信息: System.DllNotFoundException  MS.Internal.NativeWPFDLLLoader.LoadNativeWPFDLL(UInt16*, UInt16*)  MS.Internal.NativeWPFDLLLoader.LoadCommonDLLsAndDwrite()  <Module>.CModuleInitialize.{ctor}(CModuleInitialize*, Void ())  <Module>.?A0x721f77f1.CreateCModuleInitialize()  <Module>.?A0x721f77f1.??__E?A0x721f77f1@cmiStartupRunner@@YMXXZ()  <Module>._initterm_m(Void* ()*, Void* ()*)  <Module>.<CrtImplementationDetails>.LanguageSupport.InitializePerAppDomain(<CrtImplementationDetails>.LanguageSupport*)  <Module>.<CrtImplementationDetails>.LanguageSupport._Initialize(<CrtImplementationDetails>.LanguageSupport*)  <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize(<CrtImplementationDetails>.LanguageSupport*) 异常信息: <CrtImplementationDetails>.ModuleLoadException  <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize(<CrtImplementationDetails>.LanguageSupport*)  <Module>..cctor() 异常信息: System.TypeInitializationException  lindexi.Startup.Main(System.String[]) 

尝试使用 sfc /scannow 看是否系统坏了,重新安装 .net Framework就好了

本文会经常更新,请到原文:/lindexi/post/WPF-%E5%BC%82%E5%B8%B8-NativeWPFDLLLoader.LoadNativeWPFDLL/,避免陈旧错误知识的误导,同时有更好的阅读体验。

知识共享许可协议
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。欢迎转载、使用、重新发布,但务必保留文章署名林德熙(包含链接:http://blog.csdn.net/lindexi_gd ),不得用于商业目的,基于本文修改后的作品务必以相同的许可发布。如有任何疑问,请与我联系