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

C#

 
GeneralRe: Default program of file. Pin
Rahul.RK7-Aug-07 18:31
Rahul.RK7-Aug-07 18:31 
QuestionError while assigning value to a cell in a DataTable Pin
Vishnu Govind7-Aug-07 0:00
Vishnu Govind7-Aug-07 0:00 
AnswerRe: Error while assigning value to a cell in a DataTable Pin
Elayaraja Sambasivam7-Aug-07 0:11
Elayaraja Sambasivam7-Aug-07 0:11 
GeneralRe: Error while assigning value to a cell in a DataTable Pin
Vishnu Govind7-Aug-07 1:38
Vishnu Govind7-Aug-07 1:38 
GeneralRe: Error while assigning value to a cell in a DataTable Pin
Vishnu Govind7-Aug-07 2:04
Vishnu Govind7-Aug-07 2:04 
Questiondetail section of crystal report. Pin
monuSaini6-Aug-07 23:28
monuSaini6-Aug-07 23:28 
AnswerRe: detail section of crystal report. Pin
Elayaraja Sambasivam7-Aug-07 0:16
Elayaraja Sambasivam7-Aug-07 0:16 
QuestionCRL Checking Pin
Nitin Khubani6-Aug-07 23:17
Nitin Khubani6-Aug-07 23:17 
Dear all,
I have made one application to check digital certificate against Revocation.
but it is throughing an error like : "The revocation function was unable to check revocation because the revocation server was offline.\r\n"
This is the code i have made up,
X509Store store = new X509Store("MY", StoreLocation.CurrentUser);
store.Open(OpenFlags.OpenExistingOnly | OpenFlags.ReadWrite);
//Output store information.
Console.WriteLine("Store Information");
Console.WriteLine("Number of certificates in the store: {0}", store.Certificates.Count);
Console.WriteLine("Store location: {0}", store.Location);
Console.WriteLine("Store name: {0} {1}", store.Name, Environment.NewLine);

//Put certificates from the store into a collection so user can select one.
X509Certificate2Collection fcollection = (X509Certificate2Collection)store.Certificates;
X509Certificate2Collection collection = X509Certificate2UI.SelectFromCollection(fcollection, "Select an X509 Certificate", "Choose a certificate to examine.", X509SelectionFlag.SingleSelection);
X509Certificate2 certificate = collection[0];
//X509Certificate2UI.DisplayCertificate(certificate);

//Output chain information of the selected certificate.
X509Chain chain = new X509Chain();

Oid oid = new Oid("2.5.29.31");
chain.ChainPolicy.ApplicationPolicy.Add(oid);
chain.ChainPolicy.CertificatePolicy.Add(oid);

chain.ChainPolicy.RevocationFlag = X509RevocationFlag.ExcludeRoot;
chain.ChainPolicy.RevocationMode = X509RevocationMode.Offline;
chain.ChainPolicy.UrlRetrievalTimeout = new TimeSpan(1000);
chain.ChainPolicy.VerificationFlags = X509VerificationFlags.AllFlags;


chain.Build(certificate);

if (chain.ChainStatus.Length != 0)

Console.WriteLine(chain.ChainStatus[0].Status);


Console.Read();
store.Close();
Please Help me if any one know its solution

Thanks and Regards,
Nitin Khubani


AnswerRe: CRL Checking Pin
Pete O'Hanlon6-Aug-07 23:40
mvePete O'Hanlon6-Aug-07 23:40 
QuestionTransparencyKey in MDI child form Pin
mcaos6-Aug-07 23:05
professionalmcaos6-Aug-07 23:05 
AnswerRe: TransparencyKey in MDI child form Pin
Martin#6-Aug-07 23:32
Martin#6-Aug-07 23:32 
GeneralRe: TransparencyKey in MDI child form Pin
mcaos6-Aug-07 23:39
professionalmcaos6-Aug-07 23:39 
QuestionDropDownLIst(c# window forms)-control the The Repetetions Pin
Vik Kommineni6-Aug-07 22:50
Vik Kommineni6-Aug-07 22:50 
QuestionHow to change the keyboard layout? Pin
Mic Mathi6-Aug-07 22:47
Mic Mathi6-Aug-07 22:47 
AnswerRe: How to change the keyboard layout? Pin
Hessam Jalali6-Aug-07 23:04
Hessam Jalali6-Aug-07 23:04 
GeneralRe: How to change the keyboard layout? Pin
Mic Mathi6-Aug-07 23:48
Mic Mathi6-Aug-07 23:48 
GeneralRe: How to change the keyboard layout? Pin
Hessam Jalali7-Aug-07 0:32
Hessam Jalali7-Aug-07 0:32 
GeneralRe: How to change the keyboard layout? Pin
Elayaraja Sambasivam7-Aug-07 0:51
Elayaraja Sambasivam7-Aug-07 0:51 
QuestionWhy load application so slow during the startup of the system Pin
remex_1980_junyongwu6-Aug-07 22:23
remex_1980_junyongwu6-Aug-07 22:23 
AnswerRe: Why load application so slow during the startup of the system Pin
il_masacratore6-Aug-07 22:29
il_masacratore6-Aug-07 22:29 
GeneralRe: Why load application so slow during the startup of the system Pin
Elayaraja Sambasivam7-Aug-07 0:55
Elayaraja Sambasivam7-Aug-07 0:55 
QuestionRegex : 2nd attempt Pin
Malcolm Smart6-Aug-07 22:01
Malcolm Smart6-Aug-07 22:01 
AnswerRe: Regex : 2nd attempt - Done. Pin
Malcolm Smart6-Aug-07 22:33
Malcolm Smart6-Aug-07 22:33 
QuestionHelp me !!!!!!!!! Pin
nasaa6-Aug-07 21:53
nasaa6-Aug-07 21:53 
AnswerRe: Help me !!!!!!!!! Pin
Vasudevan Deepak Kumar7-Aug-07 0:51
Vasudevan Deepak Kumar7-Aug-07 0:51 

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.