繁体   English   中英

Windows应用程序启动错误异常代码:0xe0434352

[英]Windows Application Startup Error Exception code: 0xe0434352

我正在启动Windows应用程序,然后启动应用程序。

错误异常代码:0xe0434352我从EventViewer中发现“跟随错误”。

Visual Studio 2010中的Application_develop,启动错误

      Application: POSBarcode.exe
            Framework Version: v4.0.30319
            Description: The process was terminated due to an unhandled exception.
            Exception Info: System.Xml.XmlException
               at System.Xml.XmlTextReaderImpl.Throw(System.Exception)
               at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
               at System.Xml.XmlTextReaderImpl.Read()
               at System.Xml.XmlTextReader.Read()
               at System.Configuration.XmlUtil..ctor(System.IO.Stream, System.String, Boolean, System.Configuration.ConfigurationSchemaErrors)
               at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()

            Exception Info: System.Configuration.ConfigurationErrorsException
               at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean)
               at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(System.Configuration.ConfigurationSchemaErrors)
               at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
               at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(System.Object, System.Configuration.Internal.InternalConfigEventArgs)

            Exception Info: System.Configuration.ConfigurationErrorsException
               at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(System.Object, System.Configuration.Internal.InternalConfigEventArgs)
               at System.Configuration.Internal.InternalConfigRoot.OnConfigRemoved(System.Configuration.Internal.InternalConfigEventArgs)
               at System.Configuration.Internal.InternalConfigRoot.RemoveConfigImpl(System.String, System.Configuration.BaseConfigurationRecord)
               at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(System.String, Boolean, Boolean, Boolean, Boolean, System.Object ByRef, System.Object ByRef)
               at System.Configuration.BaseConfigurationRecord.GetSection(System.String)
               at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(System.String)
               at System.Configuration.ConfigurationManager.GetSection(System.String)
               at System.Configuration.ClientSettingsStore.ReadSettings(System.String, Boolean)
               at System.Configuration.LocalFileSettingsProvider.GetPropertyValues(System.Configuration.SettingsContext, System.Configuration.SettingsPropertyCollection)
               at System.Configuration.SettingsBase.GetPropertiesFromProvider(System.Configuration.SettingsProvider)
               at System.Configuration.SettingsBase.GetPropertyValueByName(System.String)
               at System.Configuration.SettingsBase.get_Item(System.String)
               at System.Configuration.ApplicationSettingsBase.GetPropertyValue(System.String)
               at System.Configuration.ApplicationSettingsBase.get_Item(System.String)
               at POSBarcode.Properties.Settings.get_MotherBoardID()
               at POSBarcode.Global..cctor()

            Exception Info: System.TypeInitializationException
               at POSBarcode.Global..ctor()
               at POSBarcode.Login..ctor()
               at POSBarcode.Program.Main()

这不是我通常要处理的任务,而是我会假设的某种缺失的依赖关系或配置错误。 这是先前答案的重述。

与下面的列表相比,这里的检查列表范围更广: EXE文件不起作用 (建议略读)。 也许首先尝试下面的问题。


启动时崩溃

这只是一个混乱的清单,旨在激发调试思路。 如果发现错误,请改进内联。

许多事情可能会使应用程序在启动时崩溃。 我怀疑列出的所有问题都将导致崩溃,而是错误消息。 另外: 几个点有很多重叠

  • 依赖性问题 :缺少文件和运行时-和注册(可能还有驱动程序?)。 程序集绑定问题(GAC,清单)。
  • 配置问题 :配置文件中指定的错误路径或URL(通常来自开发人员机器)。 甚至是错误的许可证文件或解密密钥(请参阅其他要点-大量重叠)。
  • 编码问题 :仅提及潜在问题,例如ANSI / Unicode,加密/解密,压缩/解压缩。 路径名称中的字符非法?
  • 许可问题 :许可无效或与许可服务器没有连接。 本质上是配置问题,但将其列为自己的问题。 也可能与网络有关。
  • 硬件/驱动程序问题 :我已经看到,如果应用程序无法连接到硬件,则会崩溃(驱动程序问题)。 那是条形码阅读器应用程序吗? 需要连接的设备吗? 驾驶员可能老了,或更糟:正在试验。 (您的exe文件称为POSBarcode.exe指示与硬件设备进行通信吗?)。
  • 平台和位数问题 :例如,混合x86,x64文件。 应用程序无法在虚拟机上运行? 应用程序只能在嵌入式设备上运行吗? 我在这里摇摇欲坠。 仅列出所有想到的内容。 扩展列表,不是决定性的。
  • 权限问题 :某种权限被拒绝。
    • 许可问题的外观和行为类似于拒绝权限(没有适当的警告)。
    • 缺少NTFS权限 (文件,文件夹,共享,注册表)。
    • 缺乏NT特权
    • 数据库连接的 身份验证授权问题。
    • 阻止安全软件 (防病毒,防火墙)。
    • 缺少AD组成员组策略干扰
    • 代码访问安全性问题? (应该不会崩溃,应该吗?我知道CAS发生了很大变化,我不适应最新情况)。
  • 不知道是否列出网络问题 (无连接,代理失败等), 加密问题 (应用程序无法解密收到的gobbledigook),如果系统时钟错误,某些应用程序甚至可能拒绝启动(我猜是为了防止错误的日期和时间将其放入数据库), 本地化问题操作系统版本或版本等。

总体问题 :您是否以有效用户身份启动,且该计算机具有必需的AD组成员身份和许可证,且该计算机是最新的且具有所需运行时的最新信息,并且您的网络连接正常,并且出于测试目的而暂时禁用了安全软件?


以下是原始答案。


依赖关系和错误配置

具体问题清单:

  • 可调试性 :Visual Studio?
    • 这是您自己的应用程序,因此您可以使用源代码吗?
    • 如果是这样,它是否可以在Visual Studio中以调试模式正常运行
  • 相关性 :您是否测试了基本的必需运行时组件/条件?
    • 您是否首先尝试在另一台计算机上运行有问题的应用程序? 干净的虚拟机,测试服务器,测试工作站或SOE计算机? 您是否使用与在开发箱上使用的相同的用户凭据进行测试?
    • 目标计算机开发人员 计算机体系结构是否相同? 您针对的是哪个CPU 目标计算机有什么特别的问题吗? 它有奇怪的政策吗? 它具有安全软件来阻止事物吗? 缺少开发计算机上安装的通用运行时组件吗? .NETVC++ runtimeVC runtimejava等)。
    • 如果它在Visual Studio中可用,请尝试使用modules view来了解项目以交互方式加载的内容: Debug => Start Debugging ,然后转到Debug => Windows => Modules 它应该显示为交互运行项目而加载的内容。 确定后,将释放文件夹中缺少的所有内容复制到位。
    • 您是否已使用Dependencies.exe等工具完成了基本的依赖项检查? 直接链接到“发布”标签 )。
    • 还有老化和过时的Dependency Walker ,它具有概要分析功能(启动EXE和监视依赖项)。 这是一个C ++应用程序,与提到的C# / C应用程序Dependencies.exe相反。 它缺少对高级功能的处理,例如并排程序集和API集。
    • Fuslogvw.exe报告什么? (.NET程序集绑定失败)。
    • 如何确定.NET应用程序的依赖关系? (仅供参考)。
  • 配置 :清单文件或其他设置文件中可能有问题吗? 似乎可能基于日志。
    • 路径 :在发布模式下,普通框上没有指向您源层次结构中某个文件夹的相对路径吗? 硬编码的开发箱引用指向发布系统上的资源丢失无法访问的网络位置
    • 文件 :可能缺少资源文件吗? (图片,dll等)。 也许只是一个图像文件或某种设置文件完全丢失了?
    • 进程监视 :这些是procmon.exe会话可以帮助揭示的内容。 原始样本用法

链接 (主要用于保管):

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM