SharpSnmpLib SNMP read exception using library SharpSnmpLib

543 views Asked by At

I get exception when doing snmp get.

Here is the Wireshark dump of the packet that gives the exception:

wireshark dump of the packet that gives the exception

Lextm.SharpSnmpLib.SnmpException: data construction exception ---> System.ArgumentException: Truncation error for 32-bit integer coding. Parameter name: length

1

There are 1 answers

0
Todor Manev On

I found the problem I was sending too big requestID or negative requestID which are not supported by some devices!
Use this option to disable negative request ID Messenger.UseFullRange = false;