Hagop

Hi,

I have a service that get installed and runs fine on both 32 and 64 bit. This service listens for incoming messages coming from another client software that is installed on a terminal server..

The client is able to connect to the remote host server and communicate with the 32 bit service... But when I try to connect to the 64 bit server to communicate with the service it does not work. Is there anything I have to do on the 32 bit service that is running on the 64 bit in order to make it work properly

Both the service and the client service is written in VB.Net 2005 Pro...

Thanks


Re: 64-Bit .NET Framework Development. I have a 32 bit vb.net service running on 64bit..

Spidermans_DarkSide

Hi,

In your apllication you could force the length of the integers it uses using for example.>>

Dim myInt As Int16

or use Int32 or even Int64

if you need unsigned Integers use a "U" as in Uint32.

This, i guess, will make it work on both systems in exactly the same manner.

I guess in a later version Visual Studio will have Int128 and UInt128 for two 64 bit cocantenated variables and may show it based on what processor or/and operating system is installed.

Regards,

S_DS






Re: 64-Bit .NET Framework Development. I have a 32 bit vb.net service running on 64bit..

Hagop

Hi Darkside,

SO basically I have to change all my data tyoes in order to make it work properly on the 64Bit

Thanks





Re: 64-Bit .NET Framework Development. I have a 32 bit vb.net service running on 64bit..

Josh Williams

No. That answer is incorrect.

There are cases where in interop signatures you need to use an appropriately sized data type, frequently a IntPtr which will be correctly sized for both 32-bit and 64-bit platforms.

Do you have any more information about the failure Have you attached a debugger to see if an exception of some kind is being thrown

-josh





Re: 64-Bit .NET Framework Development. I have a 32 bit vb.net service running on 64bit..

Hagop

Hi,

Some of my variables are declared as integer, string, smallint and byte and so forth.... The services is listening on port 63000 ... No errors or failures are bring generated by the service.. I checked everywhere.... I even used TCP listener but nothing...





Re: 64-Bit .NET Framework Development. I have a 32 bit vb.net service running on 64bit..

Hagop

Hi Guys,

First of, I would like to thank you all for the help you guys provided.  The service was working fine, stupid of me. It's just that the client application was poiting to the wrong IP address and that's what caused it not to responde to my incoming messages...  :-)  

In addition to that the service was build properly as I checked the CPU type which was set to AnyCPU. This is the default which would make it work on any cpu....

Sorry guys..

 

thanks for everything...