【发布时间】:2011-05-04 16:01:57
【问题描述】:
当我的域服务被调用以返回实体框架对象时,我收到一个数据库连接超时错误。我在 Visual Studio 2010 中使用 Silverlight 4。
在执行 EntityQuery Load 操作后,初始错误被困在 Silverlight 客户端,如下所示:
“An error occurred while executing the command definition. See the inner exception for details.
InnerException message: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.”
我最初认为 SQL Server 数据库可能存在错误,因为错误似乎是突然出现的,但我在 Domain Service 类中发现了一个错误,如下所示:
Function evaluation timed out.
The type 'MyProject.Web.Models.MyCustomEntity' exists in both 'MyProject.Web.dll' and 'DataContractSurrogates_cfc4b316-5204-4fc6-830c-d91c6fc0b24b'
这篇文章有类似的错误,但他们的解决方案对我没有帮助: silverlight The type exists in both and DataContractSurrogates
我有点不知所措,非常感谢您的帮助!
【问题讨论】:
标签: silverlight visual-studio-2010 entity-framework wcf-ria-services datacontractsurrogate