当我发布ASP.NET
项目时,它会提示配置错误,第15行为:
Tip:Already defined zone or group name 'applicationSettings'. You can only define it updates its configuration hierarchy .
我需要你的帮助,谢谢你!
</sectionGroup>
row 14: </sectionGroup>
row 15: <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
row 16: <section name="WebTemplate.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.2, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
row 17: <section name="VPA.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
请帮我弄明白我收到配置错误的原因。
答案 0 :(得分:1)
您的web.config必须是有效的&#34; xml&#34;文件。
尝试为此部分组命名并且不要忘记关闭xml元素:
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="WebTemplate.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.2, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<section name="VPA.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
(你的configSections中可以有更多不同的sectionGroup,但只有一个具有相同的名称)