0
對不起,我的英語可能不合適。大數據提交更改
我的解決方案是使用WCF RIA服務SP1的Silverlight。
我想提交具有大字符串的變化實體。
當它沒有大字符串時,提交更改的結果是成功。
但是,當它包含大字符串時,提交更改將失敗並出現此錯誤。
「的現有連接被強行關閉遠程主機」我認爲這是一個關於超時的問題,所以我嘗試下面的代碼。但它不起作用。
ChannelFactory<BatchContext.IBatchServiceContract> channel = ((WebDomainClient<BatchContext.IBatchServiceContract>)this.DomainClient).ChannelFactory;
channel.Endpoint.Binding.OpenTimeout = new TimeSpan(0, 30, 0);
channel.Endpoint.Binding.CloseTimeout = new TimeSpan(0, 30, 0);
channel.Endpoint.Binding.ReceiveTimeout = new TimeSpan(0, 30, 0);
channel.Endpoint.Binding.SendTimeout = new TimeSpan(0, 30, 0);
我該怎麼辦?
謝謝!