你这WCF服务是用什么来承载的呢

解决方案 »

  1.   

    <system.webServer>
         <modules runAllManagedModulesForAllRequests="true"/>
      </system.webServer>
      <system.serviceModel>
        <bindings>
          <netTcpBinding>
            <binding name="NetTcpBinding_IQHWShopService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536">
              <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
              <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
              <security mode="None"></security>
            </binding>
          </netTcpBinding>
        </bindings>
        <client>
          <endpoint address="net.tcp://ziran-pc/QHWShopService.svc" binding="netTcpBinding"
                    bindingConfiguration="NetTcpBinding_IQHWShopService" contract="IQHWShopService"
                    name="NetTcpBinding_IQHWShopService" />
        </client>
      </system.serviceModel>
      

  2.   

    你net.tcp://ziran-pc/QHWShopService.svc这个直接能访问吗
    你的服务不想用iis部署是吗?为什么要用nettcp
      

  3.   

    打算用nettcp看看能否解决大访问量时cpu过高问题
      

  4.   

    那你准备用iis来承载nettcp协议的WCF服务吗?