Silverlight儲存大資料到WCF出現Not Found問題

來源:互聯網
上載者:User

標籤:

 

Silveright調用WCF儲存大資料時,直接在用戶端報“ 遠程伺服器返回了錯誤:Not Found ”問題,少量是沒問題,如:

 

 

後面在這個文章中找到解決辦法: http://www.cnblogs.com/yjmyzz/archive/2011/06/29/2093829.html

 

順道貼出來一下,有需之則取之。

 

ServiceReferences.ClientConfig 客戶設定檔:

<configuration>  <system.serviceModel>    <bindings>      <basicHttpBinding>        <binding name="BasicHttpBinding_IModuleAService" maxBufferSize="2147483647"            maxReceivedMessageSize="2147483647"                 openTimeout ="00:10:00"                 receiveTimeout ="00:10:00"                 sendTimeout ="00:10:00"                 closeTimeout ="00:10:00">          <security mode="None" />        </binding>      </basicHttpBinding>      <!--下面這個節點是關鍵,通訊資料量-->      <customBinding>        <binding name="BasicHttpBinding_ModuleAService">          <textMessageEncoding messageVersion="Default" writeEncoding="utf-8" />          <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" transferMode="Buffered" />        </binding>      </customBinding>    </bindings>    <client>      <endpoint address="http://localhost:77886/ModuleAService.svc"          binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IModuleAService"          contract="ModuleAService.IModuleAService" name="BasicHttpBinding_IModuleAService" />    </client>  </system.serviceModel></configuration>

 

Web.Config 服務端設定檔:

<?xml version="1.0" encoding="utf-8"?><configuration>  <configSections> </configSections>  <system.web>    <compilation debug="true" targetFramework="4.5" />    <httpRuntime targetFramework="4.5" maxRequestLength="102400" />  </system.web>  <system.serviceModel>    <services>      <service behaviorConfiguration="BasicHttpBehavior" name="ModuleAService.ModuleAService">        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IModuleAService"  contract="ModuleAService.IModuleAService" />      </service>    </services>    <behaviors>      <serviceBehaviors>        <behavior name="BasicHttpBehavior">          <serviceThrottling maxConcurrentSessions="500" maxConcurrentInstances="500" maxConcurrentCalls="500" />          <serviceDebug includeExceptionDetailInFaults="true" />          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />          <dataContractSerializer maxItemsInObjectGraph="2147483647" />          <serviceTimeouts transactionTimeout="00:10:00" />        </behavior>      </serviceBehaviors>    </behaviors>    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />    <bindings>      <basicHttpBinding>        <binding name="BasicHttpBinding_IModuleAService" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647"                  sendTimeout="00:10:00" receiveTimeout="00:10:00" closeTimeout="00:10:00" openTimeout ="00:10:00" messageEncoding="Text"                 transferMode="Streamed" useDefaultWebProxy="true">          <readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />          <security mode="None" >            <transport clientCredentialType="None" proxyCredentialType="None" realm="" />            <message clientCredentialType="UserName" algorithmSuite="Default" />          </security>        </binding>      </basicHttpBinding>    </bindings>    <client>      <endpoint address="" binding="basicHttpBinding"  bindingConfiguration="BasicHttpBinding_IModuleAService" contract="ModuleAService.IModuleAService" name="" />    </client>  </system.serviceModel>  <system.webServer>    <modules runAllManagedModulesForAllRequests="true" />    <directoryBrowse enabled="true" />  </system.webServer></configuration>

 

Silverlight儲存大資料到WCF出現Not Found問題

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.