| Dart Home | PowerTCP Sockets for .NET | Custom Development | Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
| Author | Forum: PowerTCP Sockets for .NET (Secure and Standard) Topic: No tools in the toolbox |
| adobe From: Jacksonvill, TN USA Posts: 6 Member Since: 06/22/09 |
posted June 25, 2009 1:25 PM I have added reference to the Dart.PowerTCP.sslSockets.Forms.Trial. In the toolbox I see PowerTCP(Trial) but I don't see any tools. I also tried Add/remove controls and browsed to the forms.dll but get a message indicating there are no components that can be placed on the toolbox. When I open the TCPClient Sample program there are no tools on there as well but looks like a control TCP was dragged and dropped on the form. Am I missing something? I have tried creating the control dynamically and it works fine but my tcp1_CertificateRequested event doesn't fire when I do a tcp1.connect. I get an exception error that says: "Remote Certificate failed to validate. Developer's Note: To override this security check, set the UseAuthentication property to false (for testing purposes), or accept the certificate in the CertificateReceived event handler." I have the CertificateReceived Event out there so why isn't it seeing it? That is when I tried to just drag and drop the control on the form like the example. Here is my code: Public WithEvents tcp1 As Dart.PowerTCP.SslSockets.Tcp Private Sub menuSessionConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles menuSessionConnect.Click Dim tcp1 As New Dart.PowerTCP.SslSockets.Tcp tcp1.SecureProtocol = SecureProtocol.Auto tcp1.UseAuthentication = True Try tcp1.Connect(IP, Port) Catch ex As Exception ShowError(ex.Message.ToString()) End Try End Sub Private Sub tcp1_CertificateReceived(ByVal sender As System.Object, ByVal e As Dart.PowerTCP.SslSockets.CertificateReceivedEventArgs) Handles tcp1.CertificateReceived Dim msg As String msg = "The server could not be validated for the following reason(s):" e.Accept = True .... End sub |
| adobe From: Jacksonvill, TN USA Posts: 6 Member Since: 06/22/09 |
posted June 25, 2009 1:44 PM I figured this out. I went to my PowerTCP tab and did an Add Remove My controls were actually located right in the .Net directory. Selected it and it worked. |
| Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|