cyanfish / naps2-wia

Low-level WIA 2.0/1.0 application library for .NET
MIT License
19 stars 5 forks source link

NAPS2.Wia.Native.dll Not found #5

Closed martron1 closed 1 year ago

martron1 commented 1 year ago

I tried running the example in my application and it threw "DllNotFoundException" with message: System.DllNotFoundException: 'Unable to load DLL 'NAPS2.Wia.Native.dll': The specified module could not be found.

I am running Windows 11 and my project is using .Net framework 4.0.

cyanfish commented 1 year ago

NAPS2.Wia generates _win32 and _win64 folders in the output directories with that DLL. You'll need to make sure your project includes them. If you have a chain of project references you might need to reference it in the main project (e.g if you have A > B > NAPS2.Wia you might also need A > NAPS2.Wia).