Click here to Skip to main content
15,902,276 members
Home / Discussions / C#
   

C#

 
AnswerRe: Convert Pin
ZurdoDev29-Aug-16 9:12
professionalZurdoDev29-Aug-16 9:12 
QuestionHow to get Client Certificate using sslStream TCP Client/Server application? Pin
Jaimesh.241125-May-16 3:18
Jaimesh.241125-May-16 3:18 
QuestionTool licensing information Pin
partha14324-May-16 21:07
partha14324-May-16 21:07 
AnswerRe: Tool licensing information Pin
OriginalGriff24-May-16 21:30
mveOriginalGriff24-May-16 21:30 
QuestionHow to redraw the items in CheckedListBox control? Pin
Member 1247280923-May-16 21:16
Member 1247280923-May-16 21:16 
AnswerRe: How to redraw the items in CheckedListBox control? Pin
George Jonsson28-May-16 23:14
professionalGeorge Jonsson28-May-16 23:14 
QuestionProviding Passphrase for GPG encryption to the command prompt Pin
Kandepu Rajesh23-May-16 7:55
Kandepu Rajesh23-May-16 7:55 
AnswerRe: Providing Passphrase for GPG encryption to the command prompt Pin
Dave Kreskowiak23-May-16 8:30
mveDave Kreskowiak23-May-16 8:30 
AnswerRe: Providing Passphrase for GPG encryption to the command prompt Pin
Richard MacCutchan23-May-16 21:29
mveRichard MacCutchan23-May-16 21:29 
QuestionCash Drawer And C# Pin
Zeyad Jalil22-May-16 6:26
professionalZeyad Jalil22-May-16 6:26 
AnswerRe: Cash Drawer And C# Pin
OriginalGriff22-May-16 6:37
mveOriginalGriff22-May-16 6:37 
GeneralRe: Cash Drawer And C# Pin
Zeyad Jalil22-May-16 6:47
professionalZeyad Jalil22-May-16 6:47 
GeneralRe: Cash Drawer And C# Pin
OriginalGriff22-May-16 7:40
mveOriginalGriff22-May-16 7:40 
AnswerRe: Cash Drawer And C# Pin
jkirkerx22-May-16 11:00
professionaljkirkerx22-May-16 11:00 
QuestionCertificate in TCPListnear Pin
Jaimesh.241120-May-16 21:11
Jaimesh.241120-May-16 21:11 
AnswerRe: Certificate in TCPListnear Pin
Garth J Lancaster20-May-16 21:26
professionalGarth J Lancaster20-May-16 21:26 
GeneralRe: Certificate in TCPListnear Pin
Jaimesh.241120-May-16 21:38
Jaimesh.241120-May-16 21:38 
GeneralRe: Certificate in TCPListnear Pin
Garth J Lancaster20-May-16 21:47
professionalGarth J Lancaster20-May-16 21:47 
GeneralRe: Certificate in TCPListnear Pin
Jaimesh.241120-May-16 21:59
Jaimesh.241120-May-16 21:59 
GeneralRe: Certificate in TCPListnear Pin
Garth J Lancaster20-May-16 22:19
professionalGarth J Lancaster20-May-16 22:19 
AnswerRe: Certificate in TCPListnear Pin
Afzaal Ahmad Zeeshan20-May-16 22:28
professionalAfzaal Ahmad Zeeshan20-May-16 22:28 
Yes, the problem is with the certificate file that you are going to pass. If you read the code provided on that page,
C#
private static void DisplayUsage()
        { 
            Console.WriteLine("To start the server specify:");
            Console.WriteLine("serverSync certificateFile.cer");
            Environment.Exit(1);
        }

public static int Main(string[] args)
        {
            string certificate = null;
            if (args == null ||args.Length < 1 )
            {
                DisplayUsage();
            }
            certificate = args[0];
            SslTcpServer.RunServer (certificate);
            return 0;
        } 
In this code sample, you will see that the DisplayUsage function calls the Environment.Exit(1). This is the problem when you don't pass the certificate file as a command line argument. I would suggest that you read the remarks[^] on that document where the procedure is explained, why file is needed and how you should pass it, and read this, https://technet.microsoft.com/en-us/library/cc770735%28v=ws.11%29.aspx[^]
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

GeneralRe: Certificate in TCPListnear Pin
Jaimesh.241120-May-16 23:36
Jaimesh.241120-May-16 23:36 
GeneralRe: Certificate in TCPListnear Pin
Afzaal Ahmad Zeeshan21-May-16 1:22
professionalAfzaal Ahmad Zeeshan21-May-16 1:22 
GeneralRe: Certificate in TCPListnear Pin
Jaimesh.241122-May-16 21:11
Jaimesh.241122-May-16 21:11 
AnswerRe: Certificate in TCPListnear Pin
Afzaal Ahmad Zeeshan22-May-16 21:18
professionalAfzaal Ahmad Zeeshan22-May-16 21:18 

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.