Launching a scan application on a 64-bit machine through ClickOnce

Ok, here is my setup.

I have a C # application that runs fine on all 32-bit Windows XP-Vista-7 machines. I already have Verisign PFX to support ClickOnce deployment and use Atalasoft DotTwain 8.0 as a third-party scanner assistant.

When I publish my application, I select “Any processor” as the target platform. When I try to run it on a Windows 7 64-bit home preview, my application crashes after installation.

I tried republishing the work on a specific x64 platform, but still failed.

Any ideas on what I'm doing wrong here? Thanks a lot ~!

+3
source share
1 answer

Select 'x86' and I bet it will work;

You most likely have a “x86” link (32-bit) in your project, such as DotTwain. "Any processor" means that the .NET platform will run it as "x64" because you said that everything is in order. Then he tries to load the link, finds it 32-bit and gives a "BadImageFormatException" (usually).

So, you will need a version of DotTwain that was not "ngen-ed", also has a link to the CPU "Any" or releases a separate 64-bit version where all your links are definitely not set to "x86" (you need "any" or "x64").

( , , 32-, 64- DotTwain Atalasoft)

, !

+7

Source: https://habr.com/ru/post/1755449/


All Articles