twain / twain-cs

A C# interface for TWAIN
168 stars 67 forks source link

Unable to load DLL 'twaindsm.dll' #45

Open i3v opened 4 years ago

i3v commented 4 years ago

I just cloned the repo and the first thing I've tried was to run the twaincsscan.exe. When I click "Open" I get the following error:

000000 170320678151 S1 T00000001 V. ts:2020-08-08 17:03:20.691174 os:windows
000001 170320691174 S1 T00000001 V. TWAINCSScan v2.4.11.0
000002 170323376261 S1 T00000001 V. 
000003 170323376261 S1 T00000001 V. twn> DG_CONTROL/DAT_PARENT/MSG_OPENDSM
000004 170323389259 S1 T00000001 VE crash - Unable to load DLL 'twaindsm.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
000005 170323390270 S1 T00000001 V. twn> FAILURE/BUMMER

I was able to fix this by copying the twain-dsm/Releases/dsm_020403/windows/64/TWAINDSM.dll to the exe folder.

I wonder why this is not documented anyhow, e.g. in TWAIN CS.rtf.