By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,850 Members | 967 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,850 IT Pros & Developers. It's quick & easy.

Digital Signature -How to access certificate stored in IIS in asp.net .

P: 7
Hello everyone,
I am working on an ASP.Net Project and i have used digital signature in my project and it is working perfectly fine in my system but when i run it on IIS server then my certificate is not opening and i am getting error like


"The current session is not interactive.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The current session is not interactive.

Source Error:

Line 53: // open store and show certificate picker
Line 54: store.Open(OpenFlags.ReadOnly);
Line 55: X509Certificate2Collection cert = X509Certificate2UI.SelectFromCollection(store.Cert ificates, "Trans Online System Private Limited", "Message", X509SelectionFlag.SingleSelection);
Line 56: ContentInfo plainContent = new ContentInfo(cipherbytes);
Line 57: store.Close();


============"
Is anyone worked on digital signature before and help me out wht exactly is this error as i have worked a lot over IIS setting .
Waiting for replies
And thanks in advance
Apr 23 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.