Click here to Skip to main content
15,895,746 members
Home / Discussions / C#
   

C#

 
QuestionHow to terminate a login session if disconnected from internet Pin
fukchai200031-May-07 16:29
fukchai200031-May-07 16:29 
AnswerRe: How to terminate a login session if disconnected from internet Pin
Dave Kreskowiak31-May-07 17:26
mveDave Kreskowiak31-May-07 17:26 
GeneralRe: How to terminate a login session if disconnected from internet Pin
fukchai200031-May-07 21:42
fukchai200031-May-07 21:42 
GeneralRe: How to terminate a login session if disconnected from internet Pin
Dave Kreskowiak1-Jun-07 4:25
mveDave Kreskowiak1-Jun-07 4:25 
QuestionXML over serial port Pin
sklepikov31-May-07 13:40
sklepikov31-May-07 13:40 
AnswerRe: XML over serial port Pin
Christian Graus31-May-07 13:57
protectorChristian Graus31-May-07 13:57 
GeneralRe: XML over serial port Pin
sklepikov1-Jun-07 3:44
sklepikov1-Jun-07 3:44 
QuestionGive Access to Certificate in Store Pin
mikker_12331-May-07 13:02
mikker_12331-May-07 13:02 
I just want to add X509Certificate to store, and enable user to read it's private key. I snatched part of code from here but it won't work.

<br />
        private static void PlaceInStore(X509Certificate2 cert)<br />
        {<br />
            X509Store store = new X509Store(StoreName.My, StoreLocation.LocalMachine);<br />
<br />
            try<br />
            {<br />
                store.Open(OpenFlags.ReadWrite);<br />
<br />
                using (RSACryptoServiceProvider csp = cert.PrivateKey as RSACryptoServiceProvider)<br />
                {<br />
                    CspKeyContainerInfo kci = csp.CspKeyContainerInfo;<br />
                    CryptoKeySecurity cks = kci.CryptoKeySecurity;<br />
<br />
                    cks.SetAccessRule(new CryptoKeyAccessRule("ARCHITECT\\testuser",<br />
                        CryptoKeyRights.FullControl, AccessControlType.Allow));<br />
                }<br />
<br />
                if (!store.Certificates.Contains(cert))<br />
                    store.Add(cert);<br />
            }<br />
            finally<br />
            {<br />
                store.Close();<br />
            }<br />
        }<br />


Help anyone?
AnswerRe: Give Access to Certificate in Store Pin
blackjack215031-May-07 23:55
blackjack215031-May-07 23:55 
GeneralRe: Give Access to Certificate in Store PinPopular
mikker_1231-Jun-07 0:23
mikker_1231-Jun-07 0:23 
GeneralRe: Give Access to Certificate in Store Pin
DotNet_Naeem2-Sep-09 13:49
DotNet_Naeem2-Sep-09 13:49 
GeneralRe: Give Access to Certificate in Store Pin
SHUBHAM SHARMA6-May-18 19:51
SHUBHAM SHARMA6-May-18 19:51 
Questionhow to access protected-pass folder Pin
alex.almeida31-May-07 12:26
alex.almeida31-May-07 12:26 
AnswerRe: how to access protected-pass folder Pin
mikker_12331-May-07 13:12
mikker_12331-May-07 13:12 
GeneralRe: how to access protected-pass folder Pin
alex.almeida1-Jun-07 2:28
alex.almeida1-Jun-07 2:28 
AnswerRe: how to access protected-pass folder Pin
Dave Kreskowiak31-May-07 13:29
mveDave Kreskowiak31-May-07 13:29 
GeneralRe: how to access protected-pass folder Pin
Christian Graus31-May-07 13:30
protectorChristian Graus31-May-07 13:30 
GeneralRe: how to access protected-pass folder Pin
Dave Kreskowiak31-May-07 13:43
mveDave Kreskowiak31-May-07 13:43 
GeneralRe: how to access protected-pass folder Pin
mikker_12331-May-07 13:48
mikker_12331-May-07 13:48 
GeneralRe: how to access protected-pass folder Pin
Dave Kreskowiak31-May-07 17:25
mveDave Kreskowiak31-May-07 17:25 
GeneralRe: how to access protected-pass folder Pin
alex.almeida1-Jun-07 3:48
alex.almeida1-Jun-07 3:48 
GeneralRe: how to access protected-pass folder Pin
mikker_1231-Jun-07 7:59
mikker_1231-Jun-07 7:59 
GeneralRe: how to access protected-pass folder Pin
alex.almeida4-Jun-07 4:01
alex.almeida4-Jun-07 4:01 
QuestionHow to monitor an incoming TCP/IP connection in C#? Pin
adeeeljan31-May-07 11:14
adeeeljan31-May-07 11:14 
AnswerRe: How to monitor an incoming TCP/IP connection in C#? Pin
Dave Kreskowiak31-May-07 13:21
mveDave Kreskowiak31-May-07 13:21 

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.