Todor Manev
Todor Manev

Reputation: 11

SharpSnmpLib SNMP read exception using library SharpSnmpLib

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

Upvotes: 0

Views: 619

Answers (1)

Todor Manev
Todor Manev

Reputation: 11

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;

Upvotes: 1

Related Questions