Silveright call WCF to save big data, directly in the client reported "remote server returned error: not Found" problem, a small amount is no problem, such as:
Later in this article find the solution: http://www.cnblogs.com/yjmyzz/archive/2011/06/29/2093829.html
Put it on the way and take it if you need it.
Servicereferences.clientconfig Customer Profile:
<configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding na Me="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> <!--The following node is the key, the amount of traffic data--<customBinding> <binding name="Basichttpbinding_moduleaservice"> <textmessageencoding messageversion="Default"writeencoding="Utf-8"/> "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 server-side configuration file:
<?xml version="1.0"encoding="Utf-8"?><configuration> <configSections> </configSections> <system.web> <compilation debug="true"targetframework="4.5"/> "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 na Me="Basichttpbehavior"> <servicethrottling maxconcurrentsessions=" -"maxconcurrentinstances=" -"maxconcurrentcalls=" -"/> <servicedebug includeexceptiondetailinfaults="true"/> <servicemetadata httpgetenabled="true"Httpsgetenabled="true"/> <datacontractserializer maxitemsinobjectgraph="2147483647"/> <servicetimeouts transactiontimeout="00:10:00"/> </behavior> </serviceBehaviors> </behaviors> <servicehostingenvironment Aspne Tcompatibilityenabled="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=" -"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 runallmanagedmodulesforall requests="true"/> <directorybrowse enabled="true"/> </system.webServer></configuration>
Silverlight saving Big data to WCF appears not found problem