G
Geofrey van Hecke
Hi everybody,
I've devloped an .NET DLL (written in C#) and referenced by a VB6
application. The dll uses the System.Net.Sockets.Socket class to connect a
remote PC.
For an unknowed reason, under Windows 2003 server x64 version, this DLL
raises an System.PlatformNotSupportedException exception.
System.PlatformNotSupportedException: This operation is only supported on
Windows 2000 SP3 or later operating systems.
at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
at System.Net.Sockets.Socket.Connect(String host, Int32 port)
at MyConnector.Connect()
at MonClient.Connect()
I do not have this error under Windows XP or Windows 2000 server.
Furthermore, the same DLL may be used in the same time by a test program
(also written in VB6). So, I've two VB6 programs referencing the same DLL at
the same time but one raises PlatformNotSupportedException while the other
works perfectly... And I uses exactly the sames instructions in both code
sources.
Do you have some explanation or investigation trick to suggest ?
Thanks for you help
I've devloped an .NET DLL (written in C#) and referenced by a VB6
application. The dll uses the System.Net.Sockets.Socket class to connect a
remote PC.
For an unknowed reason, under Windows 2003 server x64 version, this DLL
raises an System.PlatformNotSupportedException exception.
System.PlatformNotSupportedException: This operation is only supported on
Windows 2000 SP3 or later operating systems.
at System.Net.Sockets.Socket.Connect(IPAddress[] addresses, Int32 port)
at System.Net.Sockets.Socket.Connect(String host, Int32 port)
at MyConnector.Connect()
at MonClient.Connect()
I do not have this error under Windows XP or Windows 2000 server.
Furthermore, the same DLL may be used in the same time by a test program
(also written in VB6). So, I've two VB6 programs referencing the same DLL at
the same time but one raises PlatformNotSupportedException while the other
works perfectly... And I uses exactly the sames instructions in both code
sources.
Do you have some explanation or investigation trick to suggest ?
Thanks for you help