Skip to main content
Microsoft Silverlight
Home Forums Data and Service-Oriented Development Accessing Web Services with Silverlight Silverlight 2 WCF returns NOT FOUND message when posting large data
7 replies. Latest Post by kaurav_sonika on November 25, 2009.
(0)
bugBurger
Member
3 points
8 Posts
09-08-2009 4:33 PM |
Here is the scenario. I am using SL2 to post large data to WCF. The service works well until it reach to 65536 limit. After that wcf service return NOT FOUND message. I have search through lot of forums and verified my config files for both client and server are correct. No luck.
Does any one can quicky create a scenario and see whther it works ? Any help will be appriciated.
Sergey....
Star
12286 points
2,165 Posts
09-08-2009 4:37 PM |
Hi,
You can send data by portion for 65536.
xiaoyongaz
24 points
7 Posts
09-08-2009 4:56 PM |
Can you post your config?
You can also enable tracing on server side and see what kind of exception do you get. It normally is some kind of quota been reached
09-09-2009 9:24 AM |
I finally solve my problem - I had bindingconfiguration tag missing in my config. Here is perfectly working config files -
Web.Config in your Web Project:
<system.serviceModel> <bindings> <basicHttpBinding> <binding name="LargeBuffer" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> </binding> </basicHttpBinding> </bindings> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <services> <service behaviorConfiguration="MyNameSpace.UploadBehavior" name="Aprimo.Web.WCF.Upload"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="LargeBuffer" contract="MyNameSpace.Upload" /> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> <behaviors> <serviceBehaviors> <behavior name="MyNameSpace.UploadBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors></system.serviceModel>
ServiceReferece.ClientConfig under Silverlight Project:
<configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="LargeBuffer_Upload" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> <security mode="None" /> </binding> </basicHttpBinding> </bindings> <client> <endpoint address="http://localhost:1475/WCF/Upload.svc" binding="basicHttpBinding" bindingConfiguration="LargeBuffer_Upload" contract="Aprimo.Silverlight.UploadService.Upload" name="LargeBuffer_Upload" /> </client> </system.serviceModel></configuration>
varshav...
12461 points
2,587 Posts
09-09-2009 9:52 AM |
Check this:
http://www.eggheadcafe.com/community/aspnet/18/10084621/timeout-in-calling-wcf-se.aspx
Also you can check this post: http://silverlight.net/forums/t/22736.aspx
HTH
09-09-2009 10:00 AM |
Add this is your web config file:
<
</
billsm
Contributor
3580 points
1,011 Posts
09-13-2009 5:05 PM |
I just wanted to thank everyone who contributed this post Thanks
kaurav_...
4 points
2 Posts
11-25-2009 8:13 AM |
This thread will help you...
http://smehrozalam.wordpress.com/2009/01/29/retrieving-huge-amount-of-data-from-wcf-service-in-silverlight-application/