0
虽然我试图使用WCF RIA为Silverlight应用程序加载数据,但得到错误 作为波纹管。错误4004,与Silverlight 4 WCF RIA与远程数据库
消息:未处理的错误在Silverlight应用程序
代码:4004
类别:ManagedRuntimeError
消息:System.ServiceModel.DomainServices.Client.DomainOperationException:加载操作失败查询
我正在使用远程数据库,它正确地认证用户,连接到数据库但数据绑定失败。代码:
public MainPage()
{
InitializeComponent();
this.Loaded += new RoutedEventHandler(MainPage_Loaded);
}
void MainPage_Loaded(object sender, RoutedEventArgs e)
{
// create a context to the WCF RIA service and call the RIA service method
// to get the list of all customers.
var context = new ExpertIssueTracker.Web.ITDomainContext();
dataGrid1.ItemsSource = context.IT_USERs;
context.Load(context.GetIT_USERQuery());
}
我试过了提琴手,但无法弄清楚确切的原因。连接到远程托管数据库时,我们有任何特定的问题吗?
WCF RIA错误是可怕的。每次我看到这条消息时,都是因为数据库连接字符串在某种程度上不正确。 – Geoff 2010-11-22 20:48:22