• 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>
  • 相关阅读:
    Restful levels &HATEOAS基本介绍~
    跨源资源共享(CORS)概念、实现(用Spring)、起源介绍
    Ubuntu下math库函数编译时未定义问题的解决
    常用软件清单~
    JetBrains PyCharm 专业版激活
    hello1.java内容简单介绍
    hello1 web项目中web.xml作用分析
    hello2 source analisis(notes)
    Servlet filter
    分析helo1项目中的 Web.xml
  • 原文地址:https://www.cnblogs.com/itzhanghb/p/3863371.html
Copyright © 2020-2023  润新知