AX 2012 R3 CU8:System.ServiceModel.FaultException:发生错误
AX 2012 R3 CU8: System.ServiceModel.FaultException: An error occurred
我正在尝试使用 AIF 服务更新现有的销售订单。当我调用服务操作时,我收到以下错误消息:
System.ServiceModel.FaultException: 发生错误。
服务器堆栈跟踪:
在 System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime 操作, ProxyRpc& rpc)
在 System.ServiceModel.Channels.ServiceChannel.Call(字符串操作、布尔单向、ProxyOperationRuntime 操作、Object[] ins、Object[] outs、TimeSpan 超时)
在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage 方法调用,ProxyOperationRuntime 操作)
在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage 消息)
在 [0] 重新抛出异常:
客户端是一个 VisualStudio .net C# 控制台项目。该调用包含在 try/catch 块中。
try
{
Console.WriteLine("Making call to update sales order...");
proxy.update(callContext, entityKeys, newSalesOrderDoc);
Console.WriteLine("Updates completed successfully.");
proxy.Close();
}
catch (FaultException<AifFault> e)
{
foreach (var item in e.Detail.InfologMessageList)
{
Console.WriteLine(item.InfologMessageType + " -- " + item.Message);
}
proxy.Abort();
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
proxy.Abort();
}
我在第一次捕获时设置了一个断点,但执行永远不会在那里停止。我可以毫无问题地调用入站端口上的其他操作。
有什么方法可以获取更多信息吗?
谢谢。
检查 AX 中的 AIF 异常(系统管理 - 定期 - 服务和应用程序集成框架 - 异常).
您还可以在 入站端口 (在故障排除 select All document versions
下)和 Include exceptions in fault
启用消息日志记录。不要忘记在生产或定期清理中禁用。
我正在尝试使用 AIF 服务更新现有的销售订单。当我调用服务操作时,我收到以下错误消息:
System.ServiceModel.FaultException: 发生错误。
服务器堆栈跟踪: 在 System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime 操作, ProxyRpc& rpc) 在 System.ServiceModel.Channels.ServiceChannel.Call(字符串操作、布尔单向、ProxyOperationRuntime 操作、Object[] ins、Object[] outs、TimeSpan 超时) 在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage 方法调用,ProxyOperationRuntime 操作) 在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage 消息)
在 [0] 重新抛出异常:
客户端是一个 VisualStudio .net C# 控制台项目。该调用包含在 try/catch 块中。
try
{
Console.WriteLine("Making call to update sales order...");
proxy.update(callContext, entityKeys, newSalesOrderDoc);
Console.WriteLine("Updates completed successfully.");
proxy.Close();
}
catch (FaultException<AifFault> e)
{
foreach (var item in e.Detail.InfologMessageList)
{
Console.WriteLine(item.InfologMessageType + " -- " + item.Message);
}
proxy.Abort();
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
proxy.Abort();
}
我在第一次捕获时设置了一个断点,但执行永远不会在那里停止。我可以毫无问题地调用入站端口上的其他操作。
有什么方法可以获取更多信息吗?
谢谢。
检查 AX 中的 AIF 异常(系统管理 - 定期 - 服务和应用程序集成框架 - 异常).
您还可以在 入站端口 (在故障排除 select All document versions
下)和 Include exceptions in fault
启用消息日志记录。不要忘记在生产或定期清理中禁用。