Can't install service with ALT.SMS.SmppClient on x64 system

Smpp v3.4 client

Moderator: alt

Locked
KonstOne
Posts: 7
Joined: Fri Sep 26, 2008 7:31 am

Can't install service with ALT.SMS.SmppClient on x64 system

Post by KonstOne » Mon Jul 12, 2010 11:41 am

When can I try to install and run my service with ALT.SMS on x64-base computer, I have this message:

Unhandled Exception: System.BadImageFormatException: Could not load file or assembly 'ALT.SMS.SmppClient, Version=2.6.7.0, Culture=neutral, PublicKeyToken=f4ef11ed003c8441' or one of its dependencies. An attempt was made to load a program with an incorrect format.
File name: 'ALT.SMS.SmppClient, Version=2.6.7.0, Culture=neutral, PublicKeyToken=f4ef11ed003c8441' at SmppService.ServiceMain.ServiceStart(Boolean AsConsole)
at SmppService.ServiceMain.Main() in ****ServiceMain.vb:line 27

=== Pre-bind state information ===
LOG: User = ******
LOG: DisplayName = ALT.SMS.SmppClient, Version=2.6.7.0, Culture=neutral, PublicKeyToken=f4ef11ed003c8441
(Fully-specified)
LOG: Appbase = file:///D:/SMPP/Release/
LOG: Initial PrivatePath = NULL
Calling assembly : SmppService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7b6459b9ceaabf36.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\SMPP\Release\SmppService.exe.Config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework64\
v2.0.50727\config\machine.config.
LOG: Post-policy reference: ALT.SMS.SmppClient, Version=2.6.7.0, Culture=neutral
, PublicKeyToken=f4ef11ed003c8441
LOG: Attempting download of new URL file:///D:/SMPP/Release/ALT.SMS.SmppClient.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000. Probing terminated.


Working ALT.SMS DLL under x64 is possible?
KonstOne
Posts: 7
Joined: Fri Sep 26, 2008 7:31 am

Post by KonstOne » Mon Jul 12, 2010 1:31 pm

Solution is found:
compile project x86 only (not Any CPU)
Locked