This project is read-only.

Problems with Device

Mar 12, 2010 at 2:13 PM

Hello to everybody.

I can't understand why pcap gives me a error when i try to open a device.

The device is the wireless card installed on my pc.

this is the exception text:


System.InvalidOperationException non è stata gestita
  Message="Unable to open the adapter. rpcap://\\Device\\NPF_{56AC550D-5919-4487-B63A-713054DD0AA9} is not supported by WinPcap"

And this is the code that I use to open the device:

PacketDevice device= devices[1];

            using (PacketCommunicator communicator = device.Open(65536,
                Packet packets;



Mar 12, 2010 at 9:53 PM
Edited Mar 12, 2010 at 11:05 PM


1. Try to open the device without Promiscuous. Does it work?

2. Try to sniff the device using Wireshark. Does it work?

3. WinPcap doesn't work with many wireless devices in promiscuous mode. See Question 16 in WinPcap FAQ:

I've just checked in a version of Pcap.Net that should add to the error message you're getting the error message that WinPcap outputs. It would be available in the next Pcap.Net version. Until then, you can download the sources (Change Set 38206) and compile to see the WinPcap error.


I hope this helps,