프로젝트에 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>
그냥 생각.
아이디어를 주셔서 감사합니다.하지만 문서에는 실제로 설정이 하나만 포함되어 있습니다. : / –