{System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

Error occurs when instantiating a service (web reference) in my windows application.

var mService = new ClientSvc.wscLi.Service(); //asmx service
  
System: Windows 7 32-bit

I noticed that the error characteristic for 64 bit systems 


{System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
===


Error occurs when instantiating a service (web reference) in my windows application.

var mService = new ClientSvc.wscLi.Service(); //asmx service
  
System: Windows 7 32-bit

I noticed that the error characteristic for 64 bit systems 

