Question

About a week ago I was able to scan images using my 64bit .net application on Windows 7 x64. I am now getting an error when the WIA interop library loads saying that it, or one of its dependencies is trying to load a dll in an incorrect format.

This error is usually a x64/x32 issue.

It has worked in the past. I have tried regenerating the interop library from the IDE but it doesn't help.

Photoshop x64 can still aquire images so WIA is actually working.

I don't know what's happened in the interim.

I have been battling for a few hours. Any suggestions?

Regards Craig.

Était-ce utile?

La solution

I have seen this happen when:

a.) it is a web app and you are using IIS. You have to tell the app pool to allow 32 bit applications.

b.) You aren't compiling in x86 but in x64. If you are using a 32 bit binary, you have to compile in x86.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top