I have context like that:
[EnableClientAccess()]
public class MyRiaService : LinqToEntitiesDomainService<EntityFrameworkContext>
Using Silverlight client I am initiating heavy database operation wich takes more than 1 minute. As a result I am getting timeout exception:
Uncaught Error: Unhandled Error occured in Silverlight Application: Submit operation failed. for HTTP request to
https://localhost/MyProject/ClientBin/myservice.svc/binary
has exceeded the allotted timeout. The time allotted to this operation may have been a portion of a longer timeout.Stack Trace:
at System.Windows.Ria.OperationBase.Complete(Exception error)
at System.Windows.Ria.SubmitOperation.Complete(Exception error)
at System.Windows.Ria.DomainContext.CompleteSubmitChanges(IAsyncResult asyncResult)
at System.Windows.Ria.DomainContext.<>c_DisplayClassd.b_5(Object )
I would be happy to change send timeout there, but I don't know, how. I've tried this:
((WebDomainClient<LibraryDomainContext.ILibraryDomainServiceContract>)this.DomainClient).ChannelFactory.Endpoint.Binding.SendTimeout = new TimeSpan(0, 5, 0);
But I don't have property DomainClient.