引用web service时,出现无法识别的配置节点 applicationSettings

昨天更新引用web service的项目时,出现 无法识别的配置节点 applicationSettings/* Properties.Settings 这样的问题

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>

Link From:http://www.cnblogs.com/pinbo/archive/2010/11/19/1881792.html

posted @ 2011-06-24 09:24  山村果园  阅读(325)  评论(0编辑  收藏  举报