所以我有对dll文件(PacketDotNet.dll和SharpCap.dll)的引用,但由于某种原因,它找不到这两个类。
private LivePcapDevice m_Device = null;
private IStatusUpdate m_IStatusUpdate;不知道该怎么做,如果有人有这个问题的经验,这将是有帮助的,但这是我的设置,看起来它应该是工作的。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using SharpPcap;
using PacketDotNet;
using System.Collections.ObjectModel;
using System.Net.NetworkInformation;
namespace DHCP4IPTV
{发布于 2013-07-06 05:05:49
大约30分钟前,我正在处理这个问题。解决方案很简单-使用较低版本的SharpPcap.dll,我最初使用4.2,但现在我使用3.3,它工作得很好。
Here Are all SharpPcap versions
https://stackoverflow.com/questions/17496432
复制相似问题