【问题标题】:The port name is illegal or couldn't be connected to the device端口名称不合法或无法连接到设备
【发布时间】:2012-03-14 05:11:09
【问题描述】:

我在尝试认领 Epson TM-T88V 票据打印机时遇到上述错误。
我已经安装了:

.NET 的 OPOS ADK
.NET v1.12 的 POS

我在笔记本电脑和另一台计算机上打印了很多天,两者都工作正常。然后我决定把两台机器都放在打印机工作的地方。从那时起,我得到了上述错误。

希望有人能发光,会很有帮助。
谢谢

更新:
执行健康检查实用程序后,我收到此错误:
================== 例外===================== Microsoft.PointOfService.PosControlException 错误代码:非法 (106) 错误代码扩展:0 消息:PortHandler Win32 错误。 目标:无效声明(Int32)

堆栈跟踪

在 jp.co.epson.upos.core.v1_11_0001.pntr.CommonPrinterService.Claim(Int32 iTimeout) 在 CheckHealthTest.MainForm.ExecuteCheckHealth(DeviceInfo objInfo) 在 CheckHealthTest.MainForm.btnCheckHealth_Click(对象发送者,EventArgs e) ---------InnerException---------- jp.co.epson.pos.comm.v2_0001.CommControlException 消息:PortHandler Win32 错误。 目标:Void ThrowCommException(Int32, System.String)

堆栈跟踪

在 jp.co.epson.pos.comm.v2_0001.CommonPortIO.ThrowCommException(Int32 iError, String strMessage) 在 jp.co.epson.pos.comm.v2_0001.PortHandlerIO.ThrowJNIErrorException(Int32 JNIErrorID) 在 jp.co.epson.pos.comm.v2_0001.PortHandlerIO.PortOpen() 在 jp.co.epson.pos.comm.v2_0001.PortControl.OpenPort() 在 jp.co.epson.upos.core.v1_11_0001.pntr.CommonPrinterService.OpenPort()

在卸载 Epson Advanced 驱动程序并运行健康检查后,我得到以下异常:

错误代码扩展:1001 消息:端口名称非法,或无法连接到设备。 目标:无效声明(Int32)

堆栈跟踪

zh jp.co.epson.upos.core.v1_11_0001.pntr.CommonPrinterService.Claim(Int32 iTimeout) zh CheckHealthTest.MainForm.ExecuteCheckHealth(DeviceInfo objInfo) en CheckHealthTest.MainForm.btnCheckHealth_Click(Object sender, EventArgs e) ---------InnerException---------- jp.co.epson.pos.comm.v2_0001.CommControlException 消息:端口名称非法。 目标:Void ThrowCommException(Int32, System.String)

堆栈跟踪

zh jp.co.epson.pos.comm.v2_0001.CommonPortIO.ThrowCommException(Int32 iError, String strMessage) zh jp.co.epson.pos.comm.v2_0001.CommonPortIO.ThrowCommException(Int32 iError) zh jp.co.epson.pos.comm.v2_0001.PortHandlerIO.PortOpen() zh jp.co.epson.pos.comm.v2_0001.PortControl.OpenPort() zh jp.co.epson.upos.core.v1_11_0001.pntr.CommonPrinterService.OpenPort()

【问题讨论】:

  • 任何代码伴随您面临的这个问题..?
  • 除非您提出具体问题,否则我们将无法为您提供帮助。这个网站是针对编程问题的,所以你需要非常具体。
  • 不,我没有收到任何错误代码
  • 您使用的是安装的 Epson OPOS 驱动程序而不是“Epson Advanced Printer Driver”吗?

标签: c# printing epson opos


【解决方案1】:

如果使用 Epson Check Health Utility 的打印机测试报告错误(就像您之前提到的那样),这不是 EPOS-Excel 的故障。这仅仅意味着没有为您的打印机正确配置 Epson OPOS 驱动程序。一旦检查健康实用程序报告“正常”测试结果,EPOS-Excel 使用打印机应该没有问题。

您是否使用安装的 Epson OPOS 驱动程序而不是“Epson Advanced Printer Driver”?

【讨论】:

  • 您只需要安装 OPOS 驱动程序,在某些情况下,Windows 驱动程序可能会导致冲突问题。假设其他一切都正确,当您使用 Epson Check Health 实用程序在打印机上执行“Check Health Interactive”测试时会发生什么?
  • 让我们确保只安装了 OPOS 驱动程序 - 这样您就不会有多个驱动程序争夺打印机端口的控制权。
  • 好的,你运行的是什么操作系统 Win7 64bit?
  • 删除所有打印机驱动程序:) 下载最新的 EPSON OPOS ADK for .NET download.epson-biz.com/modules/pos/… 1) 安装 POS.net 2) 安装 EPSON OPOS 3) 运行 TM USB 4) 运行 setupPos
  • 愚蠢的验证---检查USB线以确保它连接正确..你的设备管理器是什么样子的
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-12-14
  • 1970-01-01
  • 1970-01-01
  • 2020-11-29
  • 2013-08-21
  • 2018-11-10
相关资源
最近更新 更多