Click here to Skip to main content
15,880,967 members
Home / Discussions / C#
   

C#

 
GeneralRe: Where to Place FullAddress Pin
Anubhava Dimri18-Apr-11 22:46
Anubhava Dimri18-Apr-11 22:46 
GeneralRe: Where to Place FullAddress Pin
Keith Barrow18-Apr-11 22:57
professionalKeith Barrow18-Apr-11 22:57 
GeneralRe: Where to Place FullAddress Pin
Anubhava Dimri18-Apr-11 23:22
Anubhava Dimri18-Apr-11 23:22 
GeneralRe: Where to Place FullAddress Pin
Dave Kreskowiak19-Apr-11 1:49
mveDave Kreskowiak19-Apr-11 1:49 
GeneralRe: Where to Place FullAddress Pin
Pete O'Hanlon19-Apr-11 2:30
mvePete O'Hanlon19-Apr-11 2:30 
AnswerRe: Where to Place FullAddress Pin
jschell19-Apr-11 8:56
jschell19-Apr-11 8:56 
AnswerRe: Where to Place FullAddress Pin
Prasanta_Prince19-Apr-11 22:52
Prasanta_Prince19-Apr-11 22:52 
Questionwindows service with digital certificate token Pin
piticcotoc18-Apr-11 3:52
piticcotoc18-Apr-11 3:52 
Hy,

I have the following application:
- server application that uses a digital certificate to login to a website; first time i run the app it requires the pin number from the token... certificate is stored on token); i use X509CertificateUI to select the certificate and it pops-up the token client to enter pin number;
- client application connects to my server app and send some data which the server passes to the website to get response and send back to the client.

Everything is working ok. BUT... i want to make it a windows service. (currently is form based). I have done the service part, i installed it, can start it from the service manager, but it doesn't show the certificate selection and the token client for the pin.

here is the server code to get the certificate;
var store = new X509Store("MY", StoreLocation.CurrentUser);
            store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);

            X509Certificate2Collection selection = X509Certificate2UI.SelectFromCollection(store.Certificates,
                                                                                           "Digital Certificates",
                                                                                           "Select a certificate from the following list:",
                                                                                           X509SelectionFlag.
                                                                                               SingleSelection);

After i select it and enter the token pin number it works ok, but haven't been able to do the same as a windows service. I have also exported the certificate into a file from the token and declared a x509cert from local file but it should also require the token pin number.
X509Certificate2 localCert = new X509Certificate2(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "\\my.cer");
            return localCert;


thanks
AnswerRe: windows service with digital certificate token Pin
#realJSOP18-Apr-11 5:32
mve#realJSOP18-Apr-11 5:32 
GeneralRe: windows service with digital certificate token Pin
piticcotoc18-Apr-11 23:00
piticcotoc18-Apr-11 23:00 
AnswerRe: windows service with digital certificate token Pin
BobJanova18-Apr-11 23:13
BobJanova18-Apr-11 23:13 
GeneralRe: windows service with digital certificate token Pin
piticcotoc18-Apr-11 23:15
piticcotoc18-Apr-11 23:15 
QuestionRe: windows service with digital certificate token Pin
#realJSOP19-Apr-11 3:36
mve#realJSOP19-Apr-11 3:36 
AnswerRe: windows service with digital certificate token Pin
#realJSOP19-Apr-11 3:40
mve#realJSOP19-Apr-11 3:40 
QuestionHow to paste clipboard contents to another app window? Pin
John-ph18-Apr-11 1:38
John-ph18-Apr-11 1:38 
AnswerRe: How to paste clipboard contents to another app window? Pin
Eddy Vluggen18-Apr-11 2:23
professionalEddy Vluggen18-Apr-11 2:23 
AnswerRe: How to paste clipboard contents to another app window? Pin
Luc Pattyn18-Apr-11 2:26
sitebuilderLuc Pattyn18-Apr-11 2:26 
QuestionHuge Xml Document(more than 10GB) import to Sql Server 2005 Pin
ntiin18-Apr-11 0:18
ntiin18-Apr-11 0:18 
AnswerRe: Huge Xml Document(more than 10GB) import to Sql Server 2005 PinPopular
Ravi Sant18-Apr-11 1:14
Ravi Sant18-Apr-11 1:14 
QuestionFxCop Performance Warning CA1822 Pin
Subin Mavunkal17-Apr-11 23:32
Subin Mavunkal17-Apr-11 23:32 
AnswerRe: FxCop Performance Warning CA1822 Pin
DaveyM6917-Apr-11 23:41
professionalDaveyM6917-Apr-11 23:41 
GeneralRe: FxCop Performance Warning CA1822 Pin
Subin Mavunkal17-Apr-11 23:49
Subin Mavunkal17-Apr-11 23:49 
AnswerRe: FxCop Performance Warning CA1822 Pin
Mirko198017-Apr-11 23:49
Mirko198017-Apr-11 23:49 
AnswerRe: FxCop Performance Warning CA1822 Pin
#realJSOP18-Apr-11 1:42
mve#realJSOP18-Apr-11 1:42 
GeneralRe: FxCop Performance Warning CA1822 Pin
SledgeHammer0118-Apr-11 7:54
SledgeHammer0118-Apr-11 7:54 

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.