Click here to Skip to main content
15,918,268 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I open a file? Pin
c.bartsch28-Apr-07 23:47
c.bartsch28-Apr-07 23:47 
GeneralRe: How do I open a file? Pin
Dave Kreskowiak29-Apr-07 2:19
mveDave Kreskowiak29-Apr-07 2:19 
GeneralRe: How do I open a file? Pin
c.bartsch29-Apr-07 8:41
c.bartsch29-Apr-07 8:41 
GeneralRe: How do I open a file? Pin
Dave Kreskowiak30-Apr-07 7:55
mveDave Kreskowiak30-Apr-07 7:55 
QuestionHow to improve Windows application performance? Pin
engsrini28-Apr-07 11:14
engsrini28-Apr-07 11:14 
AnswerRe: How to improve Windows application performance? Pin
kubben28-Apr-07 12:57
kubben28-Apr-07 12:57 
Questionnew Double Buffering Pin
HexaDeveloper28-Apr-07 10:58
HexaDeveloper28-Apr-07 10:58 
AnswerRe: new Double Buffering Pin
Christian Graus28-Apr-07 14:19
protectorChristian Graus28-Apr-07 14:19 
GeneralRe: new Double Buffering Pin
HexaDeveloper29-Apr-07 2:37
HexaDeveloper29-Apr-07 2:37 
GeneralRe: new Double Buffering Pin
HexaDeveloper29-Apr-07 5:06
HexaDeveloper29-Apr-07 5:06 
Questionhelp me-sth like a blog and commenting Pin
sanaziuse28-Apr-07 7:39
sanaziuse28-Apr-07 7:39 
AnswerRe: help me-sth like a blog and commenting Pin
Colin Angus Mackay28-Apr-07 8:56
Colin Angus Mackay28-Apr-07 8:56 
GeneralRe: help me-sth like a blog and commenting Pin
sanaziuse28-Apr-07 9:14
sanaziuse28-Apr-07 9:14 
GeneralRe: help me-sth like a blog and commenting Pin
Colin Angus Mackay28-Apr-07 9:39
Colin Angus Mackay28-Apr-07 9:39 
GeneralRe: help me-sth like a blog and commenting Pin
sanaziuse28-Apr-07 10:29
sanaziuse28-Apr-07 10:29 
GeneralRe: help me-sth like a blog and commenting Pin
Colin Angus Mackay28-Apr-07 11:07
Colin Angus Mackay28-Apr-07 11:07 
AnswerRe: help me-sth like a blog and commenting Pin
Christian Graus28-Apr-07 14:21
protectorChristian Graus28-Apr-07 14:21 
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!

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.