[英]How do I fix a .NET windows application crashing at startup with Exception code: 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文件不起作用 (建议略读)。 也许首先尝试下面的问题。
这只是一个混乱的清单,旨在激发调试思路。 如果发现错误,请改进内联。
许多事情可能会使应用程序在启动时崩溃。 我怀疑列出的所有问题都将导致崩溃,而是错误消息。 另外: 几个点有很多重叠 。
POSBarcode.exe
指示与硬件设备进行通信吗?)。 总体问题 :您是否以有效用户身份启动,且该计算机具有必需的AD组成员身份和许可证,且该计算机是最新的且具有所需运行时的最新信息,并且您的网络连接正常,并且出于测试目的而暂时禁用了安全软件?
以下是原始答案。
具体问题清单:
.NET
, VC++ runtime
, VC runtime
, java
等)。 modules view
来了解项目以交互方式加载的内容: Debug => Start Debugging
,然后转到Debug => Windows => Modules
。 它应该显示为交互运行项目而加载的内容。 确定后,将释放文件夹中缺少的所有内容复制到位。 C# / C
应用程序Dependencies.exe
相反。 它缺少对高级功能的处理,例如并排程序集和API集。 链接 (主要用于保管):
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.