Ahmad
Ahmad

Reputation: 910

PcapDotNet An attempt was made to load a program with > an incorrect format

I'm attempting to use the pcapDotNet library to my project, however, I get an exception when launching the appliction. I'm using Visual Studio 2010, winpcap 4.1.3 and PcapDotNet 1.0.2.21772.

The exception is:

Could not load file or assembly 'PcapDotNet.Core, Version=1.0.2.21772, Culture=neutral, PublicKeyToken=4b6f3e583145a652' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Upvotes: 1

Views: 1010

Answers (1)

Ahmad
Ahmad

Reputation: 910

I used 32 bit dll file and my problem solved.

Upvotes: 2

Related Questions