WFC数据服务实验室源代码返回错误 [英] WFC Data Services Lab source code returns an error
问题描述
我正在完成数据访问动手练习/ WCF数据服务/实验/练习
I am working through the Data Access Hands-on Labs/WCF Data Services/Labs/Exercises
在Ex4 / End / C#
In Ex4/End/C#
当我运行此应用程序时,我收到"处理此请求时出错"。在以下位置;
When I run this application I get a "An error occurred while processing this request." in the following location;
private void AsyncQueryOnDataContext< T>(DataServiceQuery< T>查询,FrameworkElement元素)
&NBSP;&NBSP;&NBSP; {
query.BeginExecute(结果=>
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP; this.Dispatcher。的BeginInvoke(()=>
&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP ;
element.DataContext = new ObservableCollection< T>(query.EndExecute(result)) ),null ); $
}
private void AsyncQueryOnDataContext<T>(DataServiceQuery<T> query, FrameworkElement element)
{
query.BeginExecute(result =>
this.Dispatcher.BeginInvoke(() =>
element.DataContext = new ObservableCollection<T>( query.EndExecute(result))), null);
}
带下划线的代码在错误显示中突出显示:
The underlined code is highlighted in the error display:
我想知道这是否与我在上一篇文章中描述的问题有关标题为"无法安装开放数据协议实验室" (我怀疑任何关联,但我正在检查所有替代方案。)
I am wondering if this may be associated with the problem I described in a previous post with the title "Cannot Install open data protocol lab" (I doubt any association but I am checking all alternatives).
推荐答案
嗨jperry,
Hi jperry,
很高兴见到你。
Glad to see you.
我认为这与之前的问题无关,因为我可以在我身边重新解决这个问题。 我会进行一些进一步的调查,并在找到任何更新信息后立即与您联系。
I think it's not related to the previous issue since I can repro the problem at my side. I will perform some further investigation and get back to you as soon as I found any update information.
此外,您在进行其他练习时是否遇到类似的问题?  ;
Besides, do you encounter similiar issue when you are doing other exercises?
美好的一天!
谢谢
这篇关于WFC数据服务实验室源代码返回错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!