引用web service时,出现无法识别的配置节点 applicationSettings/
ApplicationSetting 节点的内容:
<applicationSettings>
<Test.Site.Properties.Settings>
<setting name="Test_Site_StudentWebService_StudentWebService" serializeAs="String"> <value>http://10.4.51.2/Vehicle/Interface.asmx</value>
</setting>
</Ielts.Manager.Site.Properties.Settings>
</applicationSettings>
解决的方法也很简单:
只需要在<configSections> 节点配置applicationSettings 的 SectionGroup
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="Test.Site.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>