zoukankan      html  css  js  c++  java
  • 将WCF寄宿在托管的Windows服务中

    将WCF寄宿在托管的Windows服务中

    https://www.cnblogs.com/seekdream/p/6821348.html

    wcf服务在服务器上可以,在本机上一样的代码,就是无法访问,提示“出错”状态

    https://www.cnblogs.com/KimhillZhang/p/5309104.html

    采用普通配置文件处理,修改配置文件如下:主要点:<netTcpBinding>

      <binding name="NewBinding" maxReceivedMessageSize="2147483647" transferMode="Buffered">
        <readerQuotas maxStringContentLength="2147483647" maxArrayLength="12000000"/>
        <security mode="None">
        <transport clientCredentialType="None"></transport>
        </security> 
      </binding>
    </netTcpBinding>

    代码方式:

    binding.TransferMode = TransferMode.Buffered;  // hu
    
    binding.Security.Mode = SecurityMode.None; // hu
    binding.Security.Transport.ClientCredentialType = TcpClientCredentialType.None; // hu
    binding.Security.Transport.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign; // hu
  • 相关阅读:
    Rocket
    Rocket
    Rocket
    Rocket
    POJ 1849 树的直径 Two
    SGU 495 Kids and Prizes
    HDU 4336 概率DP 状压
    HDU 4089 && UVa 1498 Activation 带环的概率DP
    SGU 149 树形DP Computer Network
    暑假集训刷题记录
  • 原文地址:https://www.cnblogs.com/hwubin5/p/10583306.html
Copyright © 2011-2022 走看看