【发布时间】:2013-05-17 07:49:19
【问题描述】:
我正在运行繁重的 WCF RIA 服务操作并在客户端 Silverlight 应用程序上收到此类错误:
Uncaught Error: Unhandled Error occurred in Silverlight Application:
Submit operation failed. Для запроса HTTP к
"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:
в System.Windows.Ria.OperationBase.Complete(Exception error)
в System.Windows.Ria.SubmitOperation.Complete(Exception error)
в System.Windows.Ria.DomainContext.CompleteSubmitChanges(IAsyncResult asyncResult)
в System.Windows.Ria.DomainContext.<>c__DisplayClassd.<SubmitChanges>b__5(Object )
我在执行 1 分钟后就遇到了这样的超时。
我的上下文是这样的:
[EnableClientAccess()]
public class ConfigService : LinqToEntitiesDomainService<MyEntityFrameworkEntities>
这是代码截图:
【问题讨论】:
-
你应该在你的代码中添加端点:factory.Endpoint.Binding.SendTimeout = new TimeSpan(0, 10, 0);
-
我有两个方法的工厂:ReleaseDomainService 和 CreateDomainService。没有其他的。让我尝试投射到 ChannelFactory
-
我不知道 RIA Beta 对不起兄弟....
-
如果你喜欢我的研究,请点赞我....你的好兄弟....
标签: wcf silverlight silverlight-3.0 wcf-ria-services wcf-configuration