我启动了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()
答案 0 :(得分:3)
不是我通常要处理的任务,但我会假设某种缺失的依赖或错误配置。这是以前答案的重演。
以下是一个范围比下面的列表更广泛的检查列表:EXE file is not working (推荐的浏览)。也许先尝试下面的问题。
这只是一个凌乱的列表,旨在激发调试思路。请 如果发现不准确,请改进内联。
许多事情可能会导致应用程序在启动时崩溃。我怀疑所有的 列出的问题会导致崩溃,而是错误消息。也: 几个点重叠很多。
POSBarcode.exe
,表示与硬件设备的通信?)。总体问题 :您是否作为有效用户在具有所需运行时的当前和最新的计算机上启用必要的AD组成员身份和许可证?你有一个有效的网络连接,暂时禁用安全软件用于测试目的吗?
以下是原始答案。
具体问题清单:
.NET
,VC++ runtime
,VC runtime
,java
等等。)。modules view
来了解项目以交互方式加载的内容:Debug => Start Debugging
,然后转到Debug => Windows => Modules
。它应该显示加载的任何内容以交互方式运行项目。在识别后,将发布文件夹中缺少的内容复制到位。C# / C
应用程序Dependencies.exe
。它缺乏对并排程序集和API集等高级功能的处理。链接 (基本上仅用于保管):