双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

silverlight RiA 读取SQL视图

HellMoxi HellMoxi 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
今天做数据查询时,

利用下面代码访问数据库的一个表正常!

Web.Services.fhjlDomainContext fdc = new Web.Services.fhjlDomainContext();
this.dataGrid1.ItemsSource=fdc.userinfos;
fdc.Load(fdc.GetuserinfoQuery());

但是我利用同样的代码去访问数据库中的一个视图的时候却一直在报错!

Web.Services.fhjlDomainContext fdc = new Web.Services.fhjlDomainContext();
this.dataGrid1.ItemsSource=fdc.userinfos;
fdc.Load(fdc.GetuserinfoQuery());

字符:13
错误:Unhandled Error in Silverlight Application
Code: 4004
Category: ManagedRuntimeError
Message:
System.ServeiceModel.DomainServices.Client.DomainOperationExcetion:
Load operation failed for query 'GetUserViewLssj'. 远程服务器返回了错误: NotFound. --->
System.ServiceModel.CommunicationException: 远程服务器返回了错误: NotFound. ---> System.Net.WebException: 远程服务器返回了错误。
位于
System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asncResult)

请各位大师帮帮忙看看小弟这个问题如何解决,急啊 谢啦!
...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
HellMoxi
WPF/Silverlight 8,757 成员 12,031 内容