LivePacketDevice.AllLocalMachine FileNotFoundException

Sep 18, 2010 at 1:04 PM

Hello there,

I tried this simple example, but it does'nt work :

http://pcapdotnet.codeplex.com/wikipage?title=Pcap.Net%20Tutorial%20-%20Sending%20Packets

 

This line cause FileNotFoundException :

IList<LivePacketDevice> allDevices = LivePacketDevice.AllLocalMachine; / Exception de HRESULT : 0x8007007E

 

Yet, I correctly added references to 4 dlls : Base, Core, Core.extensions and Packets

I work with Pcap.Net 0.6.0 (44468)

 

Any Idea ?

Thank you.

Sep 18, 2010 at 1:13 PM

I'm sorry for your trouble.

I installed WinPcap and it works :

http://www.winpcap.org/install/default.htm

 

But how deployed application without insall WinPcap ?!

Coordinator
Sep 18, 2010 at 1:42 PM

You need to install WinPcap in order to use Pcap.Net.

You can install WinPcap as part of the deployment of your application.

Sep 18, 2010 at 2:31 PM

Thank you for your help.