Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
QuestionDataGridView Combobox Column Pin
Mohammed Elkholy28-Apr-07 6:53
Mohammed Elkholy28-Apr-07 6:53 
QuestionPrinting Alignment Pin
Richard Blythe28-Apr-07 6:36
Richard Blythe28-Apr-07 6:36 
QuestionC# RichTextBox DragDrop Pin
User 208927228-Apr-07 6:08
User 208927228-Apr-07 6:08 
QuestionTime Pin
Anka_Ame28-Apr-07 4:43
Anka_Ame28-Apr-07 4:43 
AnswerRe: Time Pin
Stefan Troschuetz28-Apr-07 5:08
Stefan Troschuetz28-Apr-07 5:08 
Questionask you to answer my question as understand it [modified] Pin
mahmoud wafy28-Apr-07 4:39
mahmoud wafy28-Apr-07 4:39 
AnswerRe: ask you to answer my question as understand it Pin
Christian Graus28-Apr-07 13:04
protectorChristian Graus28-Apr-07 13:04 
Question.NET2 SSL connection. Unexpected error Pin
rulllesss28-Apr-07 3:38
rulllesss28-Apr-07 3:38 
Hello!
I'm trying to use SslStream to connect to server trough SSL. I have take example from Microsoft, modify it for my needs, but I can't use this code.
IOException (Received an unexpected EOF or 0 bytes from the transport stream.) are thrown in function AuthenticateAsClient
See code below


<br />
string Certificate = @"D:\ca.cer ";<br />
<br />
<br />
            // Load the certificate into an X509Certificate object.<br />
            X509Certificate cert = new X509Certificate(Certificate);<br />
            X509CertificateCollection certc = new X509CertificateCollection();<br />
            certc.Add(cert);<br />
<br />
            <br />
            TcpClient client = new TcpClient("dev.com", 443);<br />
            SslStream ssl = new SslStream(client.GetStream());<br />
            ssl.AuthenticateAsClient("dev.com", certc, SslProtocols.Ssl3, true);	<br />
<br />


What is incorrect in this code and what is meaning this exception.
This is not AuthenticationException, then authentication success or not?


Thanks for answers!
AnswerRe: Shell unzipping - Anyone had any problems with this? Pin
kubben28-Apr-07 5:12
kubben28-Apr-07 5:12 
GeneralRe: Shell unzipping - Anyone had any problems with this? Pin
Christian Graus28-Apr-07 13:05
protectorChristian Graus28-Apr-07 13:05 
GeneralRe: Shell unzipping - Anyone had any problems with this? Pin
kubben28-Apr-07 5:22
kubben28-Apr-07 5:22 
GeneralRe: Shell unzipping - Anyone had any problems with this? Pin
kubben28-Apr-07 14:06
kubben28-Apr-07 14:06 
GeneralRe: Shell unzipping - Anyone had any problems with this? Pin
Wayne Phipps28-Apr-07 6:36
Wayne Phipps28-Apr-07 6:36 
GeneralRe: Shell unzipping - Anyone had any problems with this? Pin
Luc Pattyn28-Apr-07 22:46
sitebuilderLuc Pattyn28-Apr-07 22:46 
QuestionCross-thread operation not valid ?? Pin
Amr Abdel-Mohsen28-Apr-07 3:11
Amr Abdel-Mohsen28-Apr-07 3:11 
AnswerRe: Cross-thread operation not valid ?? Pin
Jimmanuel28-Apr-07 3:30
Jimmanuel28-Apr-07 3:30 
AnswerRe: Cross-thread operation not valid ?? Pin
zsavas28-Apr-07 13:22
zsavas28-Apr-07 13:22 
QuestionInternetDial please urgent Pin
myousufq28-Apr-07 2:45
myousufq28-Apr-07 2:45 
QuestionNeed code for shell scripting project...urgent Pin
swapnik28-Apr-07 2:18
swapnik28-Apr-07 2:18 
AnswerRe: Need code for shell scripting project...urgent Pin
DavidNohejl28-Apr-07 3:06
DavidNohejl28-Apr-07 3:06 
AnswerRe: Need code for shell scripting project...urgent Pin
zsavas28-Apr-07 13:33
zsavas28-Apr-07 13:33 
QuestionTreeView: when selecting a node, the imageindex becomes 0 Pin
c.bartsch28-Apr-07 2:17
c.bartsch28-Apr-07 2:17 
AnswerRe: TreeView: when selecting a node, the imageindex becomes 0 Pin
Abisodun28-Apr-07 3:37
Abisodun28-Apr-07 3:37 
AnswerRe: TreeView: when selecting a node, the imageindex becomes 0 Pin
c.bartsch28-Apr-07 5:43
c.bartsch28-Apr-07 5:43 
QuestionNeed Article for writing Custom Control. Pin
hdv21228-Apr-07 1:36
hdv21228-Apr-07 1:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.