获取异常 [英] Getting Exception

查看:23
本文介绍了获取异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

针对我的 RIA 服务调用GetProjectItemSummariesQuery"时出现以下异常.奇怪的是,它每四五次调用该函数才发生一次.

I'm getting the following exception when calling 'GetProjectItemSummariesQuery' against my RIA Service. The weird thing is that it only happens once every four or five times I call the function.

System.ServiceModel.DomainServices.Client.DomainOperationException: Load operation failed for query 'GetProjectItemSummaries'. Object reference not set to an instance of an object.
   at System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception error)
   at System.ServiceModel.DomainServices.Client.LoadOperation.Complete(Exception error)
   at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
   at System.ServiceModel.DomainServices.Client.DomainContext.<>c__DisplayClass1b.<Load>b__17(Object )   

我在被调用的服务和调用函数中都放置了一个 try/catch.他们什么也没抓到.

I placed a try/catch in both the service that is being called and the calling function. They caught nothing.

推荐答案

配置 WCF 跟踪 并尝试捕捉真正发生的事情.

Configure WCF Tracing and try to catch what's really going on.

这篇关于获取异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆