Login  
Search All Forums
Dart Home | PowerTCP Sockets for .NET | Custom Development Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
AuthorForum: PowerTCP Sockets for .NET (Secure and Standard)
Topic: 64-bit SSL Sockets for .Net Incompatibility
cbenard

From: USA
Posts: 21
Member Since: 04/20/07
posted April 23, 2007 10:43 AM

I am using Dart.PowerTCP.SslSockets.dll assembly version 1.0.9.0.

On any 64 bit windows server, a secure connection to a server fails. On a 32 bit windows, using the exact same program, the connection succeeds. Here is the information on the exception that we get when connecting:
- ex {"The handle specified is invalid"} System.Exception {System.InvalidOperationException}
+ [System.InvalidOperationException] {"The handle specified is invalid"} System.InvalidOperationException
+ Data {System.Collections.ListDictionaryInternal} System.Collections.IDictionary {System.Collections.ListDictionaryInternal}
HelpLink null string
+ InnerException null System.Exception
Message "The handle specified is invalid" string
Source "Dart.PowerTCP.SslSockets" string
StackTrace "  at as.Invoke(Delegate A_0, Object[] A_1)\r\n  at Dart.PowerTCP.SslSockets.Tcp.Connect(String server, Int32 serverPort, String client, Int32 clientPortMin, Int32 clientPortMax)\r\n  at Dart.PowerTCP.SslSockets.Tcp.Connect(String server, Int32 serverPort)\r\n  at ClaimServerSendTest.TestForm.SendClaim(String inputClaim, Switch switchType) in C:\\Applications\\ClaimServerSendTest\\ClaimServerSendTest\\ClaimServerSendTest\\TestForm.cs:line 119" string
+ TargetSite {System.Object Invoke(System.Delegate, System.Object[])} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
+ Static members
+ Non-Public members
Reproduce with this code:
[code]
using Dart.PowerTCP.SslSockets;
public static void connectTest()
{
Tcp tcpConnection = new Tcp();
tcpConnection.UseAuthentication = false;
tcpConnection.Charset = "ASCII"; 
tcpConnection.Connect("208.188.175.172", 1262); // Exception happens here
tcpConnection.Send("text here");
tcpConnection.Close();

return returned;
}
[/code]
cbenard

From: USA
Posts: 21
Member Since: 04/20/07
posted April 23, 2007 10:46 AM

I left out in the reproduction code:
tcpConnection.SecureProtocol = SecureProtocol.Auto;

So the complete code is:
using Dart.PowerTCP.SslSockets;
public static void connectTest()
{
Tcp tcpConnection = new Tcp();
tcpConnection.UseAuthentication = false;
tcpConnection.SecureProtocol = SecureProtocol.Auto;
tcpConnection.Charset = "ASCII"; 
tcpConnection.Connect("208.188.175.172", 1262); // Exception happens here
tcpConnection.Send("text here");
tcpConnection.Close();

return returned;
}
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 24, 2007 4:44 PM

Hi,
I have confirmed the issue:

In VS.NET 2005 projects only, on 64-bit machines only, setting the SecureProtocol property causes the error.

I have reported this issue as # 4303.

The default behavior is to use SecureProtocol.Auto, and when I tried not explicitly setting the property, it worked ok for me.

If you are planning on using Auto, you might try removing that line as as work-around.

For updates on the status of the issue, please contact Jamie Powell (jamie.powell@dart.com).

Thanks,
-ken
cbenard

From: USA
Posts: 21
Member Since: 04/20/07
posted April 24, 2007 5:18 PM

Ken,
I have verified your workaround solves my problem for the moment.

That's a very strange issue.

Thanks,
Chris Benard
cbenard

From: USA
Posts: 21
Member Since: 04/20/07
posted April 24, 2007 6:03 PM

Oops, it appears I was incorrect. That fix does not work!

If you don't specify it, the default is SecureProtocol.None. Therefore, I have no workaround and no solution. Please fix this asap.

Thanks,
Chris Benard
cbenard

From: USA
Posts: 21
Member Since: 04/20/07
posted March 12, 2009 11:48 AM

Is this going to be fixed, or has it already been fixed? And if so, please tell me in which version it has been fixed.
cbenard

From: USA
Posts: 21
Member Since: 04/20/07
posted March 12, 2009 3:09 PM

From my testing, this appears to be fixed in 1.1.1.0. Does your issue tracking system show this issue to be resolved? If so, what version was it resolved in.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 17, 2009 9:30 AM

Hi,
Yes, 1.0.9.0.
There is a release history link for each product page on our website.

http://www.dart.com/ptsslnet_relhist.aspx

-ken
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX