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.
|