Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Error: Could not load file or assembly #32

Open
rearintok opened this issue May 10, 2016 · 2 comments
Open

Error: Could not load file or assembly #32

rearintok opened this issue May 10, 2016 · 2 comments

Comments

@rearintok
Copy link

Hi, I'm getting this error

An error occurred creating the form. See Inner.Exception for details. Th error is: Could not load file or assembly 'TwainDotnet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d3cd6e1539fa8c71' or one of its dependencies. An attempt was made to load a program with an incorrect format.

its a new project, not the sample..my project is set to .Net Framework 4, platform to AnyCPU...when i try to change the platform target to AnyCPU of TwainDotNet & TwainDotNet.WinFroms..the above exception is gone, but there will be another error on the DataSourceManager BadImageFormatException on TwainDotnet

@rearintok
Copy link
Author

does not support x64

@jeske
Copy link

jeske commented Jun 3, 2017

The underlying TWAIN libraries are supplied in 32bit native DLLs only, TwainDotNet needs to run in 32bit mode in order to access them. Set your project to x86 to use TwainDotNet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants