微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Silverlight 通信WCF 服务器Web.Config 配置

<system.serviceModel>
   <behaviors>
    <serviceBehaviors>
     <behavior name="SilverlightApplication3.Web.Service1Behavior">
      <serviceMetadata httpGetEnabled="true"/>
      <serviceDebug includeExceptionDetailInFaults="false"/>
     </behavior>
    </serviceBehaviors>
   </behaviors>
        <bindings>
            <basicHttpBinding>
                <binding name="BasicHttpBinding_IDataService"
             maxBufferPoolSize="2147483647"
             maxReceivedMessageSize="2147483647"
             maxBufferSize="2147483647">
                    <readerQuotas
               maxArrayLength="2147483647"
               maxBytesPerRead="2147483647"
              maxDepth="2147483647"
              maxNaMetableCharCount="2147483647"
              maxStringContentLength="2147483647" />
         
        </binding>
       
      </basicHttpBinding>
     
    </bindings>
   <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
   <services>
    <service behaviorConfiguration="SilverlightApplication3.Web.Service1Behavior" name="SilverlightApplication3.Web.Service1">
     <endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IDataService" contract="SilverlightApplication3.Web.Service1"/>
     <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
    </service>
   </services>
</system.serviceModel>

注意红色部分为同名

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐