silverlight RiA 读取SQL视图
今天做数据查询时,
利用下面代码访问数据库的一个表正常!
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)
请各位大师帮帮忙看看小弟这个问题如何解决,急啊 谢啦!