Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: .Net open source content management platform like Sharepoint? Pin
George_George15-Jan-09 20:49
George_George15-Jan-09 20:49 
GeneralRe: .Net open source content management platform like Sharepoint? Pin
Hamid_RT15-Jan-09 21:15
Hamid_RT15-Jan-09 21:15 
QuestionRotation Algorithm Pin
Richard Blythe14-Jan-09 15:21
Richard Blythe14-Jan-09 15:21 
AnswerRe: Rotation Algorithm [modified] Pin
Luc Pattyn14-Jan-09 15:41
sitebuilderLuc Pattyn14-Jan-09 15:41 
GeneralRe: Rotation Algorithm Pin
Richard Blythe14-Jan-09 16:07
Richard Blythe14-Jan-09 16:07 
AnswerRe: Rotation Algorithm Pin
Guffa14-Jan-09 16:36
Guffa14-Jan-09 16:36 
GeneralRe: Rotation Algorithm Pin
Richard Blythe14-Jan-09 16:55
Richard Blythe14-Jan-09 16:55 
QuestionIOException when calling AuthenticateAsClient Pin
KRM14-Jan-09 13:14
KRM14-Jan-09 13:14 
I have an connected, open Socket with ProtocolType = IP. Before doing any sending/receiving, I try to use that Socket to Authenticate the client (in a LAN setting). I get this IOException, "Unable to read data from the transport connection: The connection was closed." When I check the Socket, Connected = True.

The code looks like this:

if (Authenticate)
 {
     NetworkStream clientStream = new NetworkStream(webSocket,false);
     NegotiateStream authStream = new NegotiateStream(clientStream);

     try
     {
         authStream.AuthenticateAsClient((NetworkCredential)CredentialCache.DefaultNetworkCredentials,
             "",
             ProtectionLevel.None,
             TokenImpersonationLevel.Impersonation);

         if (!authStream.IsAuthenticated)
         {
             Console.WriteLine("Authentication failed");
             ErrorText = "Authentication using default credentials failed";
             return (HttpStatusCode)(-1);
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         ErrorText = ex.Message;
         return (HttpStatusCode)(-1);
     }
 }

Any ideas?
QuestionC# and logitech Momo wheel Pin
Member 260151314-Jan-09 12:50
Member 260151314-Jan-09 12:50 
AnswerRe: C# and logitech Momo wheel Pin
Mark Churchill14-Jan-09 12:58
Mark Churchill14-Jan-09 12:58 
QuestionHow to get actual IP address of the computer? Pin
MAP Tiger14-Jan-09 12:45
MAP Tiger14-Jan-09 12:45 
AnswerRe: How to get actual IP address of the computer? Pin
S. Senthil Kumar14-Jan-09 22:18
S. Senthil Kumar14-Jan-09 22:18 
GeneralRe: How to get actual IP address of the computer? Pin
MAP Tiger15-Jan-09 6:56
MAP Tiger15-Jan-09 6:56 
QuestionCollecting values from datagridview.selectedrows[0].cells Pin
Lodeclaw14-Jan-09 11:21
Lodeclaw14-Jan-09 11:21 
AnswerRe: Collecting values from datagridview.selectedrows[0].cells Pin
Cassandra Ross14-Jan-09 11:33
Cassandra Ross14-Jan-09 11:33 
GeneralRe: Collecting values from datagridview.selectedrows[0].cells Pin
Lodeclaw14-Jan-09 11:45
Lodeclaw14-Jan-09 11:45 
GeneralRe: Collecting values from datagridview.selectedrows[0].cells Pin
Cassandra Ross14-Jan-09 12:07
Cassandra Ross14-Jan-09 12:07 
GeneralRe: Collecting values from datagridview.selectedrows[0].cells Pin
Lodeclaw14-Jan-09 12:19
Lodeclaw14-Jan-09 12:19 
QuestionGetting ToolStrip button's CheckState to reflect RichTextBox content Pin
Member 263050314-Jan-09 10:32
Member 263050314-Jan-09 10:32 
AnswerRe: Getting ToolStrip button's CheckState to reflect RichTextBox content Pin
Cassandra Ross14-Jan-09 11:43
Cassandra Ross14-Jan-09 11:43 
AnswerRe: Getting ToolStrip button's CheckState to reflect RichTextBox content Pin
Member 263050315-Jan-09 4:50
Member 263050315-Jan-09 4:50 
QuestionBindng and display problem Pin
wi5nia14-Jan-09 9:52
wi5nia14-Jan-09 9:52 
AnswerRe: Bindng and display problem Pin
Wendelius14-Jan-09 11:14
mentorWendelius14-Jan-09 11:14 
QuestionRe: Bindng and display problem Pin
wi5nia14-Jan-09 11:22
wi5nia14-Jan-09 11:22 
AnswerRe: Bindng and display problem Pin
Wendelius14-Jan-09 11:28
mentorWendelius14-Jan-09 11:28 

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.