I had the same problem. For me copying opencv_ffmpeg242.dll solved it, so thanks for that suggestion! If the same doesn't work for you, may I suggest:
- Make sure it's the correct bitness.
- Make sure it's copied to the necessary folder at runtime (e.g. \bin\debug)
- Other DLLs might be necessary too. It's probably a good test just to add all the DLLs.