【发布时间】:2012-03-05 13:50:07
【问题描述】:
我有一个连接到 CRM 2011 服务的应用程序。当我在没有 CallerID 的情况下附加到服务时,我可以毫无错误地抓取数据。当我将呼叫者 ID 添加到连接时,问题就来了。我收到此错误消息(可能看起来很熟悉):
由于内部错误,服务器无法处理请求。 有关错误的更多信息,请打开 IncludeExceptionDetailInFaults(来自 ServiceBehaviorAttribute 或从配置行为)在服务器上发送 异常信息返回给客户端,或者按照 Microsoft .NET Framework 3.0 SDK 文档并检查 服务器跟踪日志。服务器堆栈跟踪:在 System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(消息 回复、MessageFault 故障、字符串操作、MessageVersion 版本、 故障转换器故障转换器)在 System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime 操作,ProxyRpc& rpc) 在 System.ServiceModel.Channels.ServiceChannel.Call(字符串动作, Boolean oneway, ProxyOperationRuntime 操作, Object[] ins, Object[] 出局,TimeSpan 超时)在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime 操作)在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage 消息)在 [0] 处重新抛出异常:在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(消息数据& msgData,Int32 类型)在 Microsoft.Xrm.Sdk.IOrganizationService.Retrieve(字符串实体名称, Guid id, ColumnSet columnSet) 在 Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.RetrieveCore(字符串 entityName, Guid id, ColumnSet columnSet) at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Retrieve(字符串 entityName, Guid id, ColumnSet columnSet) at Hanlon.Data.CRM.DataObjectBase.Retrieve(Guid 身份)在 Hanlon.Data.CRM.Advisor.Fill(Guid advisor_identity) 在 HypotheticalReportCrmSite.HypotheticalReport.AcceptanceWorkFlow()
有没有人知道为什么会发生这种情况,或者我如何才能更具体地找出错误的原因?该应用程序可在测试和用户验收服务器上运行,但在生产环境中崩溃。
【问题讨论】: