c# - 端口名称非法或无法连接到设备

标签 c# printing epson opos

我在尝试领取 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) ---------内部异常------------ 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,字符串 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)

堆栈跟踪

en jp.co.epson.upos.core.v1_11_0001.pntr.CommonPrinterService.Claim(Int32 iTimeout) CheckHealthTest.MainForm.ExecuteCheckHealth(DeviceInfo objInfo) en CheckHealthTest.MainForm.btnCheckHealth_Click(对象发送者, EventArgs e) ---------内部异常------------ jp.co.epson.pos.comm.v2_0001.CommControlException 消息:端口名称非法。 目标:Void ThrowCommException(Int32, System.String)

堆栈跟踪

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

enter image description here enter image description here

最佳答案

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

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

关于c# - 端口名称非法或无法连接到设备,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9419110/

相关文章:

epson - 使用 CUPS 和热敏打印机打印 postscript 文档

C#:私有(private)内部接口(interface)是否可能?

c# - LINQ ToDictionary 和 ToLookup 有什么区别

python - "a bytes-like object is required"但我使用的是字节

objective-c - 使用 Swift 的 Epson 打印机找不到 arm64 的符号

ubuntu - Epson TM-T88V 格式化

c# - 字典将为空键

c# - 从 C# 中的字符串中去除字节顺序标记

c++ - 如何在 Windows 上用 C++ 重命名打印机?

Android USB 权限对话框从不出现