Код: Выделить всё
try
{
lst = new Listener();
lst.AddBinding(new IPEndPoint(IPAddress.Any, 162));
lst.MessageReceived += Listener_MessageReceived;
lst.StartAsync();
}
catch (Exception ex)
{
}
private static void Listener_MessageReceived(object sender, MessageReceivedEventArgs e)
{
// SNMP trap recived Here.
File.AppendAllText("c:/temp/servicelog.log", "Version :" + e.Message.Version + "\n");
File.AppendAllText("c:/temp/servicelog.log", "Version :" + e.Message.Scope.Pdu.Variables[4].Data.ToString() + "\n");
}
- HandleMessage :Enter.
HandleMessage System.Collections.Generic.List`1[Lextm. SharpSnmpLib.Messaging.ISnmpMessage]Версия: V2*

Я также получаю следующее
[img]https: //i.sstatic.net/WyaSi.png[/img]
Подробнее здесь: https://stackoverflow.com/questions/717 ... eexception