lextudio / sharpsnmplib

Sharp SNMP Library- Open Source SNMP for .NET
https://sharpsnmp.com
MIT License
356 stars 152 forks source link

Error on Mono #360

Closed lextudio-support closed 2 hours ago

lextudio-support commented 2 hours ago

Hi lextm, I'm very grateful for your work.
I have a question to do.
I've created a simple console application that is listening for traps. I've compiled it under Windows and it works great. Now i need to make it work under a Linux distro but when i run it through mono, i get this error:

(Trap.exe:2345): WARNING : Missing method System.Net.Sockets.Socket::get_ReceiveBufferSize() in assembly /usr/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll, referenced in assembly /usr/src/test/SharpSnmpLib.dll

I've tried upgrading mono version to 1.9.1 but it seems not to work at all. Do you know if there is something I can do (even magic rituals :P ) to fix this problem?

Thanks a lot.

Original Reported Date: 2008-06-25T02:46:24.683-07:00 Original CodePlex Discussion Thread ID: 30246

lextudio-support commented 2 hours ago

Copied from CodePlex without authors:

Hi, it is weird to me too :-( Although I claim #SNMP supports Mono, I only tested it against MoMA. It seemed like the Mono version you used did not have System.Net.Sockets.Socket::get_ReceiveBufferSize() implemented so may you fire a bug report to the Mono guys? If possible, you may check out latest Mono from their SVN repository to see if this method is added now.

I am right now checking #SNMP source code to see if there could be a workaround. I posted findings here if I were lucky :-)

Original Posted Date: 2008-06-25T05:10:38.44-07:00

lextudio-support commented 2 hours ago

Copied from CodePlex without authors:

Thanks for the reply :)
I'm trying to download and install a new linux distro (previous one run on a virtual server machine) in order to properly install latest mono version.
If it will keep reporting that error I'll report the bug to Mono guys :)

Original Posted Date: 2008-06-25T06:58:14.45-07:00

lextudio-support commented 2 hours ago

Copied from CodePlex without authors:

Problem solved :)

I've installed mono 1.9 on a brand new Ubuntu server 8.04. Now the program works well on both Windows and Linux.
Thanks for the support ;)

Original Posted Date: 2008-06-26T07:10:31.907-07:00

lextudio-support commented 2 hours ago

Copied from CodePlex without authors:

Hi. Thanks for testing #SNMP on Linux. Glad it works at last.

Original Posted Date: 2008-06-27T01:33:19.323-07:00

lextudio-support commented 2 hours ago

Marked as Answer Date: 2013-10-06T21:38:00.717-07:00