Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: Certificate in TCPListnear Pin
Jaimesh.241122-May-16 21:21
Jaimesh.241122-May-16 21:21 
GeneralRe: Certificate in TCPListnear Pin
Afzaal Ahmad Zeeshan22-May-16 21:35
professionalAfzaal Ahmad Zeeshan22-May-16 21:35 
QuestionHow to read XML with directory structure Pin
Member 244330620-May-16 11:28
Member 244330620-May-16 11:28 
AnswerRe: How to read XML with directory structure Pin
Karthik_Mahalingam21-May-16 22:46
professionalKarthik_Mahalingam21-May-16 22:46 
GeneralRe: How to read XML with directory structure Pin
Member 244330622-May-16 9:12
Member 244330622-May-16 9:12 
GeneralRe: How to read XML with directory structure Pin
Member 244330622-May-16 12:53
Member 244330622-May-16 12:53 
SuggestionRe: How to read XML with directory structure Pin
Richard Deeming23-May-16 1:44
mveRichard Deeming23-May-16 1:44 
GeneralRe: How to read XML with directory structure Pin
Member 244330623-May-16 13:46
Member 244330623-May-16 13:46 
QuestionIs there a source code download for this article? Pin
Member 1253641620-May-16 10:59
Member 1253641620-May-16 10:59 
AnswerRe: Is there a source code download for this article? Pin
Pete O'Hanlon20-May-16 11:21
mvePete O'Hanlon20-May-16 11:21 
GeneralRe: Is there a source code download for this article? Pin
Richard Deeming20-May-16 11:28
mveRichard Deeming20-May-16 11:28 
GeneralRe: Is there a source code download for this article? Pin
Member 1253641620-May-16 11:32
Member 1253641620-May-16 11:32 
AnswerRe: Is there a source code download for this article? Pin
Richard Deeming20-May-16 11:33
mveRichard Deeming20-May-16 11:33 

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.