Reputation: 3693
I have created an WCF Service that uses much memory. So I should run this service as an x64 process. But when I set platform=x64 and start debug I catch exception:
Could not load file or assembly 'XXXXXX' or one of its dependencies. An attempt was made to load a program with an incorrect format.
How I can do it correctly? Thanks!
EDIT:
My service uses only one reference: .NET -> System.ServiceModel
Upvotes: 5
Views: 2383
Reputation: 7757
It means that one of your dependent assemblies (referenced or a project from the same solution) is set to a different CPU architecture. Check that all referenced assemblies or projects are set to x64 or Any CPU.
Upvotes: 1