无法识别的配置节点 applicationSettings/* Properties.Settings 解决方法

在项目中引用web service时,偶然出现 无法识别的配置节点 applicationSettings/* Properties.Settings 这样的问题

ApplicationSetting 节点的内容:

 

  <applicationSettings>

   <Test.Site.Properties.Settings>

        <setting name="Test_Site_StudentWebService_StudentWebService"    serializeAs="String">                                       <value>http://192.168.0.100/CallBackService.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>

 

posted on 2010-11-12 11:53  黑头  阅读(795)  评论(0编辑  收藏  举报

导航