У меня есть пользовательский элемент управления Silverlight 4, который вызывает очень длинную службу WCF RIA. Как показано ниже, я увеличиваю период ожидания по умолчанию.Silverlight 4 WCF RIA Service Timeout Problem
_domainContext = new WindowsDashboardDomainContext();
// Increase timeout -- this can be a very long running query
((WebDomainClient<WindowsDashboardDomainContext.IWindowsDashboardDomainServiceContract>)
_domainContext.DomainClient).ChannelFactory.Endpoint.Binding.SendTimeout = new TimeSpan(99, 0, 0);
_domainContext.GetSections("All", "All", "All").Completed += GetAllSectionsCompleted;
К сожалению, это, кажется, игнорирует этот тайм-аут, и по-прежнему бросает исключение тайм-аут:
Error: Unhandled Error in Silverlight Application Load operation failed for query 'GetClicks'. An error occurred while executing the command definition. See the inner exception for details. Inner exception message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
Почему это происходит?