zoukankan      html  css  js  c++  java
  • SilverLight使用域服务时的web.config 配置示例

     1 <?xml version="1.0" encoding="utf-8"?>
     2 
     3 <!--
     4   有关如何配置 ASP.NET 应用程序的详细消息,请访问
     5   http://go.microsoft.com/fwlink/?LinkId=169433
     6   -->
     7 
     8 <configuration>
     9     <system.web>
    10       <httpModules>
    11         <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    12       </httpModules>
    13         <compilation debug="true" targetFramework="4.0" />
    14     </system.web>
    15 
    16   <system.webServer>
    17     <modules runAllManagedModulesForAllRequests="true">
    18       <add name="DomainServiceModule" preCondition="managedHandler"
    19                type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    20     </modules>
    21     <validation validateIntegratedModeConfiguration="false"/>
    22   </system.webServer>
    23 
    24   <system.serviceModel>
    25     <bindings>
    26       <basicHttpBinding>
    27         <binding name="" closeTimeout="10:00:00" openTimeout="10:00:00"
    28             receiveTimeout="10:00:00" sendTimeout="10:00:00" maxBufferSize="2147483647"
    29             maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
    30           <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
    31               maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
    32         </binding>
    33       </basicHttpBinding>
    34       <customBinding>
    35         <binding name="" closeTimeout="00:10:00" openTimeout="00:10:00"
    36             receiveTimeout="00:10:00" sendTimeout="00:10:00">
    37           <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" />
    38           <binaryMessageEncoding>
    39             <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
    40                 maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
    41           </binaryMessageEncoding>
    42         </binding>
    43       </customBinding>
    44     </bindings>
    45     <behaviors>
    46       <serviceBehaviors>
    47         <behavior name="" >
    48           <serviceMetadata httpGetEnabled="true" />
    49           <serviceDebug includeExceptionDetailInFaults="true" />
    50           <dataContractSerializer  maxItemsInObjectGraph="2147483647"/>
    51         </behavior>
    52       </serviceBehaviors>
    53     </behaviors>
    54     <serviceHostingEnvironment aspNetCompatibilityEnabled="true"
    55         multipleSiteBindingsEnabled="true" />
    56   </system.serviceModel>
    57 </configuration>
  • 相关阅读:
    C语言volatile关键字的用法
    UDP广播包
    进程和线程的区别
    Unix/Linux进程间通信
    虚拟空间,malloc
    自我介绍
    java初始化顺序
    java 队列基础操作
    java IO基础操作
    Python中的Tab补全功能添加
  • 原文地址:https://www.cnblogs.com/itzhanghb/p/3863371.html
Copyright © 2011-2022 走看看