I\'ve written an IP multicasting application in C#. It compiles fine, but at runtime this line:
sock.SetSocketOption(SocketOptionLevel.IP,
I had the same error on Windows Server 2008. In my case, after restart the server (with 2 years uptime) problem solved.