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: Strange warning/error in .Net |
blevan From: elgin, IL USA Posts: 6 Member Since: 03/12/03 |
posted March 20, 2003 3:55 PM My task list show this one build error, the program compiles and runs fine. Code generation for property 'Stream' failed. Error was: 'Cannot use Stream with a closed socket' Here is the code I am using: Tcp1.Stream = New SegmentedStream(New SslStream(New TcpStream(Tcp1))) ' Load Client Certificate If Certificate Is Nothing Then GetTUNAClientCertificate() Tcp1.Certificate = Certificate ' Connect to a secure server. Tcp1.SecureProtocol = SecureProtocol.SSL3 fsResult = "(pre)Connection to TransUnion Server Failed.." Tcp1.Connect("test.transunionnetaccess.com", 3018) ' Send secure data If Tcp1.Connected Then fsResult = "Failed to Send Data to TransUnion Server.." Tcp1.Stream.Write(sPostData) ' Receive secure data fsResult = "Failed to Receive Response from TransUnion Server.." While Tcp1.Connected sTmpStream = Tcp1.Stream.Read() sDataStream += sTmpStream End While ' Close the connection Tcp1.Close() I have tried moving the stream statement to after I open the connection but the message remains. Any ideas?? |
blevan From: elgin, IL USA Posts: 6 Member Since: 03/12/03 |
posted March 20, 2003 4:05 PM Even stranger.... When I checked the form into Visual Source Safe and then checked it out again, the waring went away! Bug in .Net or bug in the control? |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted March 21, 2003 11:05 AM Hi, This was a warning, and not a build error, correct? It should not affect your project. I believe this has been taken care of, and should no longer occur after our next release. -ken |
blevan From: elgin, IL USA Posts: 6 Member Since: 03/12/03 |
posted March 24, 2003 8:50 AM Yes, I was a warning and the program worked as designed. I just wanted to be sure that I wasn't going loopy! |
Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
![]() |