Silverlight - RIA 服务数据/服务问题

发布于 2024-08-03 20:17:21 字数 586 浏览 2 评论 0原文

我遇到了一个令人困惑的情况,也许你们可以帮忙。 我的 RIA 解决方案不会从服务中检索数据...

给您一个想法... 我的域服务源自 LinqToSqlDomainService,并且位于 Web 应用程序项目中。

我首先使用 MVC 创建了一个 RIA 服务项目,并且对服务的 Get 查询 (DomainContext) 效果很好。

然后,我创建了一个新的 RIA 解决方案,并使用 Web 应用程序项目(而不是 MVC 来托管服务),但这只是无法获取数据。

Silverlight (RIA) 客户端项目是工作项目的副本,尽管我更改了引用等,但我怀疑该项目中可能存在问题,要么创建 HttpDomainClient: this(new HttpDomainClient(new Uri("DataService.axd/FooAdmin-Web-FooDomainService/", System.UriKind.Relative)))

或在 LoadOperation 中: loadOp = this._context.Load(this._context.GetFooQuery());

有哪些方法可以解决此问题并查看失败的原因?

I have a baffling situation, which maybe you guys can help.
My RIA Solution does not retrieve the data from the service...

To give you an idea...
My domain service is derived from LinqToSqlDomainService and is in a Web Application project.

I had first created a RIA Services project with MVC and the Get query to the service (DomainContext) works great.

I then created a new RIA Solution, and used a Web Application project (instead of MVC to host the service), and this just does not get the data.

The Silverlight (RIA) client project is a copy of the working one and although I changed references, etc., I suspect there could be a problem in this project, either creating the HttpDomainClient:
this(new HttpDomainClient(new Uri("DataService.axd/FooAdmin-Web-FooDomainService/", System.UriKind.Relative)))

or in the LoadOperation:
loadOp = this._context.Load(this._context.GetFooQuery());

What are some ways, I can troubleshoot this and see what is failing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小清晰的声音 2024-08-10 20:17:21

您可以使用 Fiddler 查看 HTTP 请求和可能的错误代码。

You can use Fiddler to see the HTTP requests and possibly error codes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文