【发布时间】:2010-07-22 00:36:03
【问题描述】:
我正在使用 SL4 和 RIA 服务来构建基于 Silverlight 业务应用程序模板的新解决方案。由于我还在开发中,所以我只是使用 localhost。
我正在尝试通过在关联(组合)实体中进行一次更改并调用 SubmitChanges 来测试 SubmitChanges 功能。我的 DomainService 在 Update 方法的入口点有一个断点。断点被击中,一切看起来都很好。在这一点上,我实际上并没有让 Update 方法做任何事情——它只是返回。在客户端回调中,我检查 SubmitOperation 对象是否有错误。它报告:
Submit operation failed. The remote server returned an error: NotFound.
到目前为止,我还没有找到没有找到的东西。
我尝试使用 Fiddler(连同 WCF 二进制插件),据我所知,请求看起来不错,但根据 Fiddler:
ReadResponse() failed: The server did not return a response for this request.
嗯...这不对,因为我的回调断点被命中。 (这就是我收到 NotFound 错误消息的方式。)
我还尝试使用以下内容编辑我的 web.config 文件:
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<behaviors>
<serviceBehaviors>
<behavior name="RIAServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="True" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
这并没有提供任何新信息。关于如何追踪“真正的”问题,我开始没有想法了。有什么想法吗??
【问题讨论】:
标签: silverlight silverlight-4.0 wcf-ria-services