32 bit Service Broker

  • 31 October 2014
  • 3 replies
  • 0 views

Badge +1

I am trying to create a custom service broker using Visual Studio 2013 on a 64 bit Windows 7 machine.

Everything works fine if I compile for Any CPU or x64, but I get an error if I have compiled for x86.

The error occurs when I try to execute a smart object contained in the service broker.

The message error I get is:

Could not load file or assembly <file> or one of its dependencies. And attempt was made to load a program with an incorrect format.

Source : SourceCode.HostServerLib

 

Is there something I can do to get a 32 bit service broker to work?


10766iFDA6AEA7835107A4.png

3 replies

Userlevel 3
Badge +10

Do you have "enable 32-bit applications" set to true in your IIS application pool that contains K2?

Userlevel 3
Badge +10

11468i95B12FC11EA4BC90.png

Badge +1

I have received a response to this issue from someone at K2 via email.

I will post their response here:

 

“from what I understand, one cannot “mix” bit versions. It’s not something that we do, it’s the way that the .NET Framework handle this. One way around this I can think of is to wrap the calls in an IIS process. IIS can have sites running 32 bit. Then simply call these from the broker (or use the OOB broker if possible)”

Reply