This project is read-only.

System.IO.FileNotFoundException

Jul 18, 2011 at 11:53 PM

trying to run your example app (SendingASinglePacketWithSendpacket.exe, I compile (and run from the debug/bin directory) from my windows 7 x64 box. when i copy the bin dir over to my windows server 2008 R2 (with winpcap and .net 4 installed) i get the following:

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'PcapDotNet.Core.dll' or one of its dependencies. The specified module cou
ld not be found.
   at SendingASinglePacketWithSendPacket.Program.Main(String[] args)

 

it seems to be loading the file because if i delete pcapDotNet.Core.dll i get

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or ass
embly 'PcapDotNet.Core, Version=0.8.0.40959, Culture=neutral, PublicKeyToken=4b6
f3e583145a652' or one of its dependencies. The system cannot find the file speci
fied.
   at SendingASinglePacketWithSendPacket.Program.Main(String[] args)

 

any ideas?

Jul 19, 2011 at 4:32 PM

Hi Tony,

 

Please make sure you've followed the "Using Pcap.Net in your programs" section fully in the Pcap.Net User Guide.

 

Boaz.

Jul 19, 2011 at 7:37 PM

thanks, i was missing the VC++ 2010 redist