我的解決方案的Silverlight它使用WCF RIA服務SP1和Entity Framework 4WCF RIA服務SP1超時過期
我有裝載大尺寸的數據有問題。
我有這個錯誤信息。
System.ServiceModel.DomainServices.Client.DomainException:Timeout過期。操作完成之前超時的時間或服務器沒有響應。
我認爲這是一個問題關於超時,所以我嘗試了下面的代碼。它工作時,我沒有安裝WCF RIA服務「SP1」。 但是因爲我安裝了「SP1」,所以無法正常工作。
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);
我該怎麼辦?