• 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>
  • 相关阅读:
    Ubuntu18.04彻底删除MySQL数据库(转载)
    Windows中杀死占用某个端口的进程(转载)
    记一次使用mybatis生成工具生成mapper层代码
    解决git push过程中出现Please make sure you have the correct access rights and the repository exists.(转载)
    xshell连接到Vmware中的centos附加解决ens33看不到ip地址的问题
    常见Git命令清单(转载)
    Linux常用命令大全(转载)
    腾讯云centos服务器上安装hadoop踩坑记
    PowerShell 获取大文件行数
    Cannot Login to SQL Server using administrator account
  • 原文地址:https://www.cnblogs.com/itzhanghb/p/3863371.html
Copyright © 2020-2023  润新知