Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run WCF service as x64

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

like image 236
xtmq Avatar asked Nov 13 '22 09:11

xtmq


1 Answers

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.

like image 124
luksan Avatar answered Nov 24 '22 00:11

luksan