• 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>
  • 相关阅读:
    【Mesh R-CNN】论文翻译(原理部分)
    关于栈的学习记录
    css入门笔记
    前端学习之html基础知识归纳
    navigator url无法跳转跳转问题
    新手小白学会vim脚本配置
    Linux下实现两个变量之间传参
    [Apache Doris] Apache Doris 架构及代码目录解读
    [编程总结] 开源系统平台化建设思路
    论文阅读|PointRend: Image Segmentation as Rendering
  • 原文地址:https://www.cnblogs.com/itzhanghb/p/3863371.html
Copyright © 2020-2023  润新知