【发布时间】:2016-08-09 14:14:40
【问题描述】:
我有一个托管在我自己 PC 的 localost (IIS-Express) 上的 Web 表单。我正在使用 .NET 4.6。
在我的 web.config 我有
<sectionGroup>
<section>
<applicationSettings>
<UI.Properties.Settings>
<setting name=" UI_Portal" serializeAs="String">
<value>http://localhost/Service/EppPortal.asmx</value>
</setting>
<setting name="UI_Portal" serializeAs="String">
<value>http://localhost/Service/Portal.asmx</value>
</setting>
</UI.Properties.Settings>
</applicationSettings>
</section>
</sectionGroup>
我得到了错误:
The configuration section 'sectionGroup' cannot be read because it is missing a section declaration
**
Config Source:
305:
306: <sectionGroup>
307:
**
我找不到解决它的方法。请帮忙。谢谢。
【问题讨论】:
-
您发布的配置代码与错误描述不匹配。贴出实际代码
-
您的 web.config 还有更多内容吗?你在任何地方都使用
<sectionGroup>标签吗? -
@Rahul 抱歉,我抄错了。请立即查看。
-
@MADsc13nce 是的,有 sectionGroup,请看。谢谢。
标签: c# asp.net .net iis webforms