Silverlight - RIA 服务数据/服务问题
我遇到了一个令人困惑的情况,也许你们可以帮忙。 我的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Fiddler 查看 HTTP 请求和可能的错误代码。
You can use Fiddler to see the HTTP requests and possibly error codes.