i started getting this error after binding BasicHttpBinding manually. problem is normal WCF calls r using WSHttpBinding. till you change this, it won't solve the problem
System.ServiceModel.WSHttpBinding binding = new WSHttpBinding();
binding.Name = "Test";
binding.CloseTimeout = TimeSpan.Parse("00:01:00");
binding.OpenTimeout = TimeSpan.Parse("00:01:00");
binding.ReceiveTimeout = TimeSpan.Parse("00:10:00");
binding.SendTimeout = TimeSpan.Parse("00:10:00");
binding.BypassProxyOnLocal = false;
binding.HostNameComparisonMode = HostNameComparisonMode.StrongWildcard;
binding.MaxBufferPoolSize = int.MaxValue;
binding.MaxReceivedMessageSize = int.MaxValue;
binding.MessageEncoding = WSMessageEncoding.Text;
binding.TextEncoding = Encoding.UTF8;
binding.UseDefaultWebProxy = true;
binding.AllowCookies = false;
binding.ReaderQuotas.MaxDepth = int.MaxValue;
binding.ReaderQuotas.MaxStringContentLength = int.MaxValue;
binding.ReaderQuotas.MaxArrayLength = int.MaxValue;
binding.ReaderQuotas.MaxBytesPerRead = int.MaxValue;
binding.ReaderQuotas.MaxNameTableCharCount = int.MaxValue;
return new TranscriptServiceClient(binding, new EndpointAddress(new Uri("http://localhost:10780/TranscriptService.svc")));
Subscribe to:
Post Comments (Atom)
5 comments:
i absolutely adore your own writing kind, very helpful.
don't quit and also keep posting simply because it simply well worth to look through it.
looking forward to browse additional of your current content pieces, enjoy your day :)
Spot on, thanks.
you saved my day.
Thank you very much.
I liκe it when ρеoplе get together аnd
sharе oрinions. Great blog, сontinue the good
worκ!
Also ѵіsit my homepage ... http://activateberkeley.org
Post a Comment