日期:2014-05-18  浏览次数:20797 次

WCF的很简单的问题
<?xml version="1.0" encoding="utf-8"?>
<!--
  注意: 除了手动编辑此文件以外, 
  还可以使用 Web 管理工具来配置应用程序的设置。
  可以使用 Visual Studio 中的“网站”->“Asp.Net 配置”选项。
  设置和注释的完整列表在 
  machine.config.comments 中,该文件通常位于 
  \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration>


  <configSections>
  <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
  <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
  <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
  <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
  <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
  <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
  </sectionGroup>
  </sectionGroup>
  </sectionGroup>
  </configSections>  


  <appSettings/>
  <connectionStrings/>

  <system.web>
  <!--
  设置 compilation debug="true" ,将调试符号 
  插入已编译的页面中。但由于这会影响性能, 
  因此请只在开发过程中 
  将此值设置为 true。
  -->
  <compilation debug="false">

  <assemblies>
  <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
  <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
  </assemblies>

  </compilation>
  <!--
  通过 <authentication> 节可以配置
  ASP.NET 使用的安全身份验证 
  模式,以标识传入的用户。&nbs