【问题标题】:Microsoft Dynamics Ax 2012 R2 run time issueMicrosoft Dynamics Ax 2012 R2 运行时问题
【发布时间】:2015-06-10 06:46:12
【问题描述】:

我想对收据进行一些更改。我有一台带抽屉、打印机等的测试机。所以我可以测试打印收据。 但是在尝试打印收据时出现 2 个错误。并在 Axe 窗口上警告“无法打印收据。您想再次尝试打印吗?”以下是错误的描述:

  1. 错误

LSRetailPosis.TransactionServices.EstablishConnection: System.Net.Sockets.SocketException (0x80004005):没有这样的主机是已知的 在 System.Net.Dns.GetAddrInfo(String name) 在 System.Net.Dns.InternalGetHostByName(字符串主机名,布尔值 包括 IPv6) 在 System.Net.Dns.GetHostEntry(String 主机名或地址)在 System.ServiceModel.Channels.DnsCache.Resolve(Uri uri)。

  1. 错误

LSRetailPosis.TransactionServices.EstablishConnection: System.ServiceModel.EndpointNotFoundException:不存在 DNS 条目 对于主机 axpos_dev。 ---> System.Net.Sockets.SocketException:没有这样的 主机在 System.Net.Dns.GetAddrInfo(String name) 在 System.Net.Dns.InternalGetHostByName(字符串主机名,布尔值 包括 IPv6) 在 System.Net.Dns.GetHostEntry(String 主机名或地址)在 System.ServiceModel.Channels.DnsCache.Resolve(Uri uri) --- 结束 内部异常堆栈跟踪---

服务器堆栈跟踪:在 System.ServiceModel.Channels.DnsCache.Resolve(Uri uri) 在 System.ServiceModel.Channels.SocketConnectionInitiator.GetIPAddresses(Uri uri) 在 System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri,TimeSpan 超时)在 System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri,TimeSpan 超时)在 System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(时间跨度 超时)在 System.ServiceModel.Channels.StreamedFramingRequestChannel.StreamedFramingRequest.SendRequest(消息 消息,TimeSpan 超时)在 System.ServiceModel.Channels.RequestChannel.Request(消息消息, TimeSpan 超时)在 System.ServiceModel.Channels.SecurityChannelFactory1.SecurityRequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout) at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout) at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout) at System.ServiceModel.Security.SecuritySessionClientSettings1.ClientSecuritySessionChannel.OnOpen(TimeSpan 超时)在 System.ServiceModel.Channels.CommunicationObject.Open(时间跨度 超时)在 System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan 超时)
在 System.ServiceModel.Channels.CommunicationObject.Open(时间跨度 超时)在 System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel 通道,TimeSpan 超时)在 System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(时间跨度 超时,CallOnceManager 级联)在 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.Dynamics.Retail.TransactionServices.ClientProxy.ITransactionService.IsAlive() 在 LSRetailPosis.TransactionServices.CheckConnection()。

我用测试软件测试了打印机,它工作得很好。我该如何解决这个问题?

【问题讨论】:

  • 我认为您实际上可以从您正在处理的机器上看到/解析/ping 提到的主机 - 'axpos_dev'...并且报表服务器也可以看到它。
  • 是的,没错,除了打印收据之外,我可以进行任何处理。

标签: .net printing axapta microsoft-dynamics


【解决方案1】:

我认为您可以打印其他报告。所以在 AX2012 R2/R3 中部署报表真的很痛苦。您尝试关注了吗?

  • 清除缓存 - 工具 -> 缓存 -> 刷新报表服务器
  • 重启 AOS 和报表服务器
  • 您是否拥有报表服务器的本地管理权限? (您需要他们来部署报告)
  • 重建 CIL?
  • 您是从 Visual Studio 还是从 AX 部署报表?
  • 您是否在服务器上运行了多个报表服务?
  • 从 Microsoft Dynamics AX 配置实用程序中刷新配置
  • 最后一个。你做了什么样的修改?

【讨论】:

  • 我发现了打印问题。我使用的是标准 A4 纸,当我更换热敏收据纸时,打印机无法打印!此错误与打印问题无关。当我运行项目并进行交易但 axpos 工作正常时,我不断出现这 2 个错误。对不起误导你我是AX新手:(
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2023-03-15
  • 2015-01-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多