尝试打开app.config文件项目。我已经看到它定义了多个设置部分(特别是如果您曾经重命名过您的项目)。
尝试摆脱任何多余的设置部分(不要忘记删除从configSections标签型材件为好。)
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="ProjectName.Properties.Settings" />
<!-- Remove this -->
<section name="OldProjectName.Properties.Settings" />
</sectionGroup>
</configSections>
<userSettings>
<ProjectName.Properties.Settings>
<!-- Project Settings Appear here -->
</ProjectName.Properties.Settings>
<!-- Remove this -->
<OldProjectName.Properties.Settings>
<!-- Old Project Settings Appear here -->
</OldProjectName.Properties.Settings>
</userSettings>
</configuration>
只是一个想法。
感谢您的想法,但该文档实际上只包含一组设置。 :/ – 2010-03-10 01:38:33