【发布时间】:2015-06-10 06:46:12
【问题描述】:
我想对收据进行一些更改。我有一台带抽屉、打印机等的测试机。所以我可以测试打印收据。 但是在尝试打印收据时出现 2 个错误。并在 Axe 窗口上警告“无法打印收据。您想再次尝试打印吗?”以下是错误的描述:
- 错误
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)。
- 错误
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.SecurityChannelFactory
1.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