Support Center

nettwain2005

Tien Nguyen Feb 10, 2013 04:46PM EST

I am trying to run the NetTwain demo project in VS2010 and got error "Could not load file or assembly 'NetTwain2005' or one of its dependencies. An attempt was made to load a program with an incorrect format."
Where do I find this assemply? Is it normally in the Global cache?

1 Data Techniques Response

Up -2 Rated Down
DTI Support  Data Techniques Employee Feb 11, 2013 04:53PM EST

Hello,

Nettwain2005 is the name of the web app assembly that the solution is building. The Incorrect Format exception indicates a a problem with mixed bitness ie trying to load a 32 bit assy into a 64 bit process.

Try setting the Target CPU for that solution to 'Any CPU' if its been set to x86 or x64.

Thanks for your interest in our products and please let us know if you have any questions.

Sincerely,
Sean
Data Techniques Suppor

This question is closed to new answers.

Contact Us