Getting Exception

为君一笑 提交于 2019-12-08 13:16:55

问题


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 )   

Edits:

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


回答1:


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




回答2:


A faulty set SortDescriptor or FilterDescriptor could produce the same error



来源:https://stackoverflow.com/questions/5596510/getting-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!