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

时间:2018-04-03 06:29:23

标签: c# windows installation windows-installer

我启动了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()

1 个答案:

答案 0 :(得分:3)

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

以下是一个范围比下面的列表更广泛的检查列表:EXE file is not working (推荐的浏览)。也许先尝试下面的问题。

发布时崩溃

  

这只是一个凌乱的列表,旨在激发调试思路。请   如果发现不准确,请改进内联。

     

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

  • 依赖性问题 :缺少文件&运行时 - 和注册(也许是驱动程序?)。装配绑定问题(GAC,清单)。
  • 配置问题 :配置文件中指定的错误路径或URL(通常来自开发人员计算机)。甚至是错误的许可证文件或解密密钥(参见其他要点 - 许多重叠)。
  • 编码问题 :仅提及ANSI / Unicode,加密/解密,压缩/解压缩等潜在问题。路径名中有非法字符?
  • 许可问题 :许可证无效或与许可服务器无连接。基本上是配置问题,但将其列为自己的问题。也可能与网络有关。
  • 硬件/驱动程序问题 :如果应用程序无法连接到硬件(驱动程序问题),我看到应用程序崩溃了。这是条形码阅读器应用程序吗?它需要连接设备吗?也许司机老了,或者更糟:实验。 (您的exe被称为POSBarcode.exe,表示与硬件设备的通信?)。
  • 平台&比特率问题 :例如混合x86,x64文件。应用程序无法在虚拟机上运行?应用程序只能在嵌入式设备上运行?我在这里不稳定。只列出想到的一切。膨胀的清单,没有定论。
  • 权限问题 :某种权限被拒绝。
    • 许可问题可能看起来像行为被拒绝(没有适当的警告)。
    • 缺少 NTFS权利(文件,文件夹,共享,注册表)。
    • 缺少NT privileges
    • 身份验证的问题& 授权 数据库连接
    • 阻止安全软件(防病毒,防火墙)。
    • 缺少 AD群组成员资格& 群组政策干预
    • Code Access Security问题? (不应该崩溃,不应该吗?我知道CAS已经发生了很大变化,我还没有达到速度)。
  • 不知道是否列出网络问题(没有连接,代理失败等等),加密问题(应用程序没有&#t; t如果系统时钟错误(我想防止错误的日期和时间进入数据库),某些应用程序甚至可能拒绝启动,本地化问题<解密它收到的goboundigook) / strong>?,操作系统版本或版本?等...

总体问题 :您是否作为有效用户在具有所需运行时的当前和最新的计算机上启用必要的AD组成员身份和许可证?你有一个有效的网络连接,暂时禁用安全软件用于测试目的吗?

以下是原始答案。

依赖关系&amp;错误配置

具体问题清单:

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

链接 (基本上仅用于保管):