首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > CAD教程 >

WCF 中 webconfig 配置有关问题

2012-04-03 
WCF中webconfig配置问题C# code system.serviceModelbehaviorsserviceBehaviorsbehavior name

WCF 中 webconfig 配置问题

C# code
 <system.serviceModel>        <behaviors>            <serviceBehaviors>                <behavior name="">                    <serviceMetadata httpGetEnabled="true" />                    <serviceDebug includeExceptionDetailInFaults="false" />                </behavior>            </serviceBehaviors>        </behaviors>        <!--<bindings>这里是因为,WCF,只能通过BasicHttpBinding传递数据            <customBinding>                <binding name="SilverlightDBDemo.Web.DBService.customBinding0">                    <binaryMessageEncoding />                    <httpTransport />                </binding>            </customBinding>        </bindings>-->        <bindings>              <basicHttpBinding>                    <binding name="BasicHttpBinding_IDataService" maxBufferSize="2147483647"                          maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">                          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"                                maxArrayLength="2147483647" maxBytesPerRead="2147483647"                                maxNameTableCharCount="2147483647" />                    </binding>              </basicHttpBinding>                     </bindings>    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"      multipleSiteBindingsEnabled="true" />        <services>              <service name="SilverlightDBDemo.Web。DBService"><!--这里是 全角的 句号,按理说,应该是英文输入法下面的  点 -->                <endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IDataService" />                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />              </service>        </services>    </system.serviceModel>


新手,高手赐教

[解决办法]
是的,肯定需要英文下的点才行。

热点排行