EldoS | Feel safer!

Software components for data protection, secure storage and transfer

C# / SSL / TElSimpleSSLClient

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#5921
Posted: 04/17/2008 12:53:02
by Isi Robayna (Basic support level)
Joined: 04/17/2008
Posts: 2

I am trying to run the simple demo 'SimpleSSLClient' under \Samples\C#\SSLBlackBox\Client\SimpleSSLClient

any ideas on why I might be getting the following exception no matter if I connect to our own ssl server or an http server on the internet:


SBSimpleSSL.EElSSLClientConnectionLostError was unhandled
Message="Connection lost"
Source="SecureBlackbox.SSLClient"
ErrorCode=0
StackTrace:
at SBSimpleSSL.TElCustomSimpleSSLClient.DoReceive(Object Sender, Byte[]& Buffer, Int32 MaxSize, Int32& Written)
at SBClient.TElSecureClient.DoReceive(Byte[]& Buffer, Int32 MaxSize, Int32& Written)
at SBClient.TElSecureClient.DataAvailable()
at SBSimpleSSL.TElCustomSimpleSSLClient.DataAvailable()
at SBSimpleSSL.TElCustomSimpleSSLClient.IntMessageLoop(Boolean NoPeek)
at SBSimpleSSL.TElCustomSimpleSSLClient.DoMessageLoop(Boolean NoPeek)
at SBSimpleSSL.TElCustomSimpleSSLClient.Open()
at SSLClientDemo.frmMain.DoRequest() in C:\Program Files\EldoS\SecureBlackbox.NET\Samples\C#\SSLBlackbox\Client\SimpleSSLClient\Form1.cs:line 380
at SSLClientDemo.frmMain.Connect() in C:\Program Files\EldoS\SecureBlackbox.NET\Samples\C#\SSLBlackbox\Client\SimpleSSLClient\Form1.cs:line 372
at SSLClientDemo.frmMain.toolBar_ButtonClick(Object sender, ToolBarButtonClickEventArgs e) in C:\Program Files\EldoS\SecureBlackbox.NET\Samples\C#\SSLBlackbox\Client\SimpleSSLClient\Form1.cs:line 578
at System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m)
at System.Windows.Forms.ToolBar.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
at System.Windows.Forms.Control.DefWndProc(Message& m)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolBar.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at SSLClientDemo.frmMain.Main() in C:\Program Files\EldoS\SecureBlackbox.NET\Samples\C#\SSLBlackbox\Client\SimpleSSLClient\Form1.cs:line 343
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
#5922
Posted: 04/17/2008 13:32:53
by Eugene Mayevski (EldoS Corp.)

Did you try to continue execution? This exception is normal when you connect to HTTP(S) server which closes connection after sending reply.


Sincerely yours
Eugene Mayevski
#5923
Posted: 04/17/2008 14:14:55
by Isi Robayna (Basic support level)
Joined: 04/17/2008
Posts: 2

Thanks for your quick reply.

If I am connecting to a http(s) server, I cannot continue running your demo. I keep getting different exceptions in SecureClient.Open()

I am trying to connect from your demo to our own TCP SSL server (Indy + Secure black box) and I get the following exception (this is what I would really like to find out how to fix)

As soon as I execute Secureclient.Open()

I get the following errorCode in the event: "SecureClient_OnError"
Errorcode: 75777

then the exception reports:

SBSimpleSSL.EElSimpleSSLClientError was unhandled
Message="Connection failed"
Source="SecureBlackbox.SSLClient"
ErrorCode=0
StackTrace:
at SBSimpleSSL.TElCustomSimpleSSLClient.Open()
at SSLClientDemo.frmMain.DoRequest() in C:\Program Files\EldoS\SecureBlackbox.NET\Samples\C#\SSLBlackbox\Client\SimpleSSLClient\Form1.cs:line 380
at SSLClientDemo.frmMain.Connect() in C:\Program Files\EldoS\SecureBlackbox.NET\Samples\C#\SSLBlackbox\Client\SimpleSSLClient\Form1.cs:line 372
at SSLClientDemo.frmMain.toolBar_ButtonClick(Object sender, ToolBarButtonClickEventArgs e) in C:\Program Files\EldoS\SecureBlackbox.NET\Samples\C#\SSLBlackbox\Client\SimpleSSLClient\Form1.cs:line 578
at System.Windows.Forms.ToolBar.OnButtonClick(ToolBarButtonClickEventArgs e)
at System.Windows.Forms.ToolBar.WmReflectCommand(Message& m)
at System.Windows.Forms.ToolBar.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.Control.SendMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr hWnd, Message& m)
at System.Windows.Forms.Control.WmCommand(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
at System.Windows.Forms.Control.DefWndProc(Message& m)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolBar.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at SSLClientDemo.frmMain.Main() in C:\Program Files\EldoS\SecureBlackbox.NET\Samples\C#\SSLBlackbox\Client\SimpleSSLClient\Form1.cs:line 343
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
#5926
Posted: 04/18/2008 04:01:27
by Ken Ivanov (EldoS Corp.)

1) What exactly build of SecureBlackbox are you using? It's a good idea to install the latest build update and check if the issue occurs with it.

2) Please try to disable TLS 1.1 and check if the issue still occurs.

Reply

Statistics

Topic viewed 3276 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!