wpf程序报错

用wpf开发的应用程序,发现有部分win7用户打开应用程序时,提示已停止工作。

然后查看windows日志文件发现报了两个错误,有哪位大神帮忙看下是什么原因导致的,或者还需要我提供什么信息吗?

第一个:
,时间戳: 0x59d7a19c
错误模块名称: KERNELBASE.dll,版本: 6.1.7601.23915,时间戳: 0x59b94abb
异常代码: 0xe0434352
错误偏移量: 0x0000c54f
错误进程 ID: 0x11f8
错误应用程序启动时间: 0x01d3424d1ae7c684
错误应用程序路径: D:(省略掉).exe
错误模块路径: C:Windowssyswow64KERNELBASE.dll
报告 ID: 58eede71-ae40-11e7-ad93-e03f49b3c763

第二个:
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ComponentModel.Win32Exception

Exception Info: System.DllNotFoundException
at MS.Internal.NativeWPFDLLLoader.LoadNativeWPFDLL(UInt16, UInt16)
at MS.Internal.NativeWPFDLLLoader.LoadCommonDLLsAndDwrite()
at <Module>.CModuleInitialize.{ctor}(CModuleInitialize*, Void ())
at <Module>.?A0x721f77f1.CreateCModuleInitialize()
at <Module>.?A0x721f77f1.??__E?A0x721f77f1@cmiStartupRunner@@YMXXZ()
at <Module>._initterm_m(Void (), Void ())
at <Module>.<CrtImplementationDetails>.LanguageSupport.InitializePerAppDomain(<CrtImplementationDetails>.LanguageSupport*)
at <Module>.<CrtImplementationDetails>.LanguageSupport._Initialize(<CrtImplementationDetails>.LanguageSupport*)
at <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize(<CrtImplementationDetails>.LanguageSupport*)

Exception Info: <CrtImplementationDetails>.ModuleLoadException
at <Module>.<CrtImplementationDetails>.LanguageSupport.Initialize(<CrtImplementationDetails>.LanguageSupport*)
at <Module>..cctor()

Exception Info: System.TypeInitializationException

阅读 4.8k
2 个回答

我怀疑第二个错误是因为dll没有找到。

at MS.Internal.NativeWPFDLLLoader.LoadNativeWPFDLL(UInt16, UInt16)加载本地dll时出现问题。
调查清楚目标用户的.net framework版本,过低则让他们升级到4.5以上

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进