Sysinternals' Portmon: Error 2

2019-02-04 04:18发布

When I try to connect to local ports, Computer -> Connect local, using Portmon v. 3.02, I'm getting an error message, Error 2, in a small error dialog box:

Enter image description here

I run the tool as an administrator (if not, I get error 6).

By the way this is a Windows 7 x64. On 32-bit, in Windows 7 x86, it works fine. How can I fix this problem?

标签: serial-port
8条回答
姐就是有狂的资本
2楼-- · 2019-02-04 04:30

Sysinternals' Portmon works only on 32-bit versions of Windows. It does not support 64-bit (probably its driver is not signed).

From the Portmon homepage:

  • Runs on:
    • Client: Windows XP (32-bit) and higher (32-bit).
    • Server: Windows Server 2003 (32-bit) and higher (32-bit).
查看更多
smile是对你的礼貌
3楼-- · 2019-02-04 04:32

"Error 2" is "Cannot find the file specified", that is, cannot find a required DLL file.

Originally, you got this error when you tried to run Portmon from a network location: that broke the security trust, causing Portmon to be untrusted (or perhaps just messing up the search path somehow).

On my copy of Windows 7 64 bit, Microsoft Dependency Walker (depends.exe) tells me that PORTMSYS.SYS (the file created/loaded by Portmon.exe), has unresolved dependencies on ci.dll, clfs.sys, hal.dll and kdcom.dll.

Those are the

code integrity
common log file system
hardware abstraction layer
kernel debugger com

libraries, and they aren't actually missing: if they were, Windows wouldn't boot. However, I don't see a copy of those files in SysWow64. This suggests to me that the problem is not with portman.sys: the problem is with the win32 compatibility layer in Windows 7/64 bit: It doesn't support debug properly.

It is now 2018. There is no 64-bit version of Portmon. Serial ports are a legacy standard. The Windows 7 problem was fixed by the release of Windows 8.1. However, there is a faint chance that some Visual Studio utility or security update back-ported to Windows 7 will fix the problem. Perhaps someone who is familiar with SysWow and debugging will comment.

查看更多
劳资没心,怎么记你
4楼-- · 2019-02-04 04:34

Just to test that the hardware is working, you could perhaps boot a Linux live CD and run the statserial and/or minicom program to verify that it works. The Knoppix distribution seems to contain both those programs.

Serial ports on Linux are named /dev/ttyS0 for COM1, /dev/ttyS1 for COM2, etc.

趁早两清
5楼-- · 2019-02-04 04:37

I've used AccessPort http://sudt.com/en/ap/download.htm and it works great. Very similar to Portmon

Luminary・发光体
6楼-- · 2019-02-04 04:39

In Windows Explorer, right click on portmon.exe --> select Properties --> click the Compatibility tab, and Run in Windows XP compatibility mode. It works fine like that in Windows 7 64-bit.

冷血范
7楼-- · 2019-02-04 04:42

Don't start Portmon from a network drive/path or something else.

Copy on to the hard disk drive, e.g. on the desktop, restart and try again!

登录 后发表回答