简体   繁体   English

Silverlight 4,Ria服务,HttpRequestTimedOutWithoutDetail

[英]Silverlight 4, Ria Services, HttpRequestTimedOutWithoutDetail

I have a database that is being accessed by a Silverlight application. 我有一个Silverlight应用程序正在访问的数据库。 It has an Error_Log in that same database. 在同一数据库中有一个Error_Log。

I have hundreds of HttpRequestTimedOutWithoutDetail errors in the Error_Log table. 我在Error_Log表中有数百个HttpRequestTimedOutWithoutDetail错误。 I have set the timeout in the web.config to over a minute. 我已将web.config中的超时设置为一分钟以上。 I often receive the error if I call a query twice in a row. 如果我连续两次调用查询,通常会收到错误消息。

I've decreased the volume by checking context first, but they still happen often. 我通过先检查上下文来减少了音量,但是它们仍然经常发生。 At first I thought it was a server load issue, but then I turned up my SQL Server 2008 instance to 3 Gigs of RAM, and I still get it with almost no users. 起初我以为这是服务器负载问题,但后来我将SQL Server 2008实例设置为3 Gigs RAM,但仍然几乎没有用户使用它。

Can someone please help me understand why these errors happen when seemingly there is no reason to timeout? 有人可以帮助我了解为什么似乎没有超时的原因会发生这些错误吗? Does it have to do with multiple queries being sent at the same time? 它与同时发送多个查询有关吗? Or does it have to do with sending off queries that all hit the same database context? 还是与发送所有命中相同数据库上下文的查询有关?

EDIT: 编辑:

I'm thinking this might be a connection pooling issue? 我在想这可能是连接池问题? I have it turned on, but maybe the connections aren't getting closed properly? 我已将其打开,但也许连接未正确关闭?

((WebDomainClient<RealFormsContext.IRealFormsServiceContract>)Context.DomainClient)
   .ChannelFactory.Endpoint.Binding.OpenTimeout = new TimeSpan(0, 10, 0);

That got rid of my Timeout errors. 那摆脱了我的超时错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM