News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
SocketController disposed?  
by Alberto
posted on 2005/10/20

Hello,
I'm new to the Security Library, trying to use it for a SSL client VBnet project.
As soon as I connect my socket and try to Send some data, I get this exception:

ObjectDisposedException: Cannot access a disposed object named "Org.Mentalis.Security.Ssl.Shared.SocketController".
Object name: "Org.Mentalis.Security.Ssl.Shared.SocketController".

but cannot understand why: can somebody help?
Partial code:

Dim opt As New SecurityOptions(SecureProtocol.Tls1, Nothing, ConnectionEnd.Client)
Dim soc As New SecureSocket(ipe.AddressFamily, SocketType.Stream, ProtocolType.Tcp, opt)
soc.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.SendTimeout, 10000) soc.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReceiveTimeout, 10000)
soc.Connect(ipe)
soc.Send(mybytes)

here I get the exception. Strange thing is sometimes I also get a SocketException stating it cannot access some file... uh?

thanks for any help.

by Alberto
posted on 2005/10/20

Off course I found the "faq" as the first message here, sorry for asking again

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.