none
В чем причина ошибки при вызове методов Wcf RRS feed

  • Вопрос

  • Текст ошибки:"Удаленная сторона больше не распознает эту последовательность. Скорее всего, это вызвано прерыванием на удаленной стороне. <var>X</var> Произошел сбой надежного сеанса". Вот клиентский конфиг:

    <?xml version="1.0" encoding="utf-8" ?><configuration> 

    <configSections>    <sectionGroup name="applicationSettings"

    type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral,

    PublicKeyToken=b77a5c561934e089" >      <section name="ReportDesigner.Properties.Settings"

    type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0,

    Culture=neutral,

    PublicKeyToken=b77a5c561934e089" requirePermission="false" />   

    </sectionGroup>  </configSections>  <system.serviceModel>    <bindings>   

          <wsHttpBinding>       

    <binding name="WSHttpBinding_IAdmin" receiveTimeout="23:00:00"       

       bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"       

       maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"       

       messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"     

         allowCookies="true">         

    <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"           

    maxArrayLength="2147483647" maxBytesPerRead="2147483647"

    maxNameTableCharCount="2147483647" />         

    <reliableSession ordered="true" inactivityTimeout="23:00:00"       

         enabled="true" />         

    <security mode="None">          

      <transport realm="" />         

    </security>       

    </binding>    

      </wsHttpBinding>   

    </bindings>   

    <client>      

    <endpoint address="http://develop-3/test/Admin.svc" binding="wsHttpBinding"     

       bindingConfiguration="WSHttpBinding_IAdmin" contract="Admin.IAdmin"     

       name="WSHttpBinding_IAdmin" /> 

       </client>   

    <behaviors>     

    <endpointBehaviors>       

    <behavior name="MaxBehavior">         

    <dataContractSerializer maxItemsInObjectGraph="2147483647"/>     

       </behavior>     

    </endpointBehaviors>  

    </behaviors> 

    </system.serviceModel> </configuration>.

    Вот серверный конфиг:

    <system.serviceModel>
        <bindings>
         
          <wsHttpBinding>
            <binding name="SessionBinding"   allowCookies="true" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                 maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
                messageEncoding="Text" textEncoding="utf-8"
                useDefaultWebProxy="true" receiveTimeout="23:00:00"
                >
              <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647"
                 maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
              <reliableSession ordered="true" inactivityTimeout="23:00:00" enabled="true" />
              <security mode="None">
              </security>
            </binding>
          </wsHttpBinding>
        </bindings>
    
        <services>
         
          <service name="WebServiceCadTech.Admin" behaviorConfiguration="behavior">
            <endpoint address="" binding="wsHttpBinding" bindingConfiguration="SessionBinding"  contract="WebServiceCadTech.IAdmin" />
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="behavior">
              <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
              <serviceMetadata httpGetEnabled="true"/>
              <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
              <serviceDebug includeExceptionDetailInFaults="true"/>
              <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
             
              <serviceThrottling
                 maxConcurrentCalls="1"
                 maxConcurrentSessions="1000"
                 maxConcurrentInstances="1000"
              />
            </behavior>
          </serviceBehaviors>
          <endpointBehaviors>
    
          </endpointBehaviors>
        </behaviors>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>
      </system.serviceModel>


    23 апреля 2013 г. 4:40

Ответы