Search code examples
c#.netdllimportnpcap

Unable to Load DLL 'wpcap.dll'. The specified module is not found


I want to know which application installed this wpcap.dll. I can see it in some PCs in location c:\Windows\System32\Npcap and in others in c:\Windows\System32.

When I run my code (which has DllImport("wpcap.dll") ) in the first PC, this exception is thrown whereas it is not thrown in second PC.

Also, when I manually add the dll to first PC also, the same exception is thrown. Can someone help me with this?


Solution

  • I want to know which application installed this wpcap.dll

    Google Said it is WinPcap

    https://ru.wikipedia.org/wiki/Pcap

    You can try this:

    run cmd and execute command:

    regsvr32 wpcap.dll