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: SSL Socket example error
random0000

From: Las Vegas, NV USA
Posts: 4
Member Since: 06/27/03
posted June 27, 2003 2:53 PM

I just downloaded the eval for SSL Sockets and am getting an error on any example that offers security.

When I click on the Security button (i.e. from the Echo Server example), I get an "Object reference not set to an instance of an object" on the frm.ShowDialog line of code. The previous line Dim frm as new CertificateListForm seems to work fine.

Any ideas?

Thanks!
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted June 30, 2003 10:17 AM

Hi,
What type of OS is the Tool installed on?
Thanks,
-ken
random0000

From: Las Vegas, NV USA
Posts: 4
Member Since: 06/27/03
posted June 30, 2003 1:58 PM

Windows XP - I have narrowed down the bug to the follow line of code in the CertificateListForm.cs file:

private void CertificateListForm_Load(object sender, System.EventArgs e)
{
//Using a ListView so that TreeView Header will match ListView Header
lvwTreeView.Columns.Add("Certificate Stores", lvwTreeView.Width-4,HorizontalAlignment.Left);
treeView.BringToFront();
lblStatus.BringToFront();

//Create ListView Columns
listView.Columns.Add("Issued To", 150, HorizontalAlignment.Left);
listView.Columns.Add("Issued By", 150, HorizontalAlignment.Left);
listView.Columns.Add("Expires", 75, HorizontalAlignment.Left);
listView.Columns.Add("Friendly", 150, HorizontalAlignment.Left);
listView.Columns.Add("Serial #", 150, HorizontalAlignment.Left);
listView.Columns.Add("Usage", 200, HorizontalAlignment.Left);

BuildTree();

'THIS LINE CAUSES THE ERROR
//Select My CurrentUser
treeView.SelectedNode = treeView.TopNode.FirstNode;
}

It seems like there are no certificates installed except in the CA and Root so the code bombs when there is no node to select.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted July 1, 2003 10:06 AM

Hi,
Thanks for pointing this out.
This problem will no longer exist in the next release.
In the meantime, feel free to go ahead and modify the included Forms source yourself.
Thanks again,
-ken
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX