未处理的类型异常 ' System.Configuration.ConfigurationErrorsException'发生在 System.Configuration.dll
其他信息:配置系统无法初始化
发生在:
return ((bool)(this["StartupCheckbox"]));
当我尝试运行项目时会显示此错误。 当我检查项目设置时,设置就在那里。
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace StartupApp.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool StartupCheckbox {
get {
return ((bool)(this["StartupCheckbox"]));
}
set {
this["StartupCheckbox"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("0")]
public int delayBetweenProgramCheckingNumeric {
get {
return ((int)(this["delayBetweenProgramCheckingNumeric"]));
}
set {
this["delayBetweenProgramCheckingNumeric"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string dependencies {
get {
return ((string)(this["dependencies"]));
}
set {
this["dependencies"] = value;
}
}
}
}
编辑: 这只在我移动项目位置时才会发生?