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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shwetamodi
    New Member
    • Oct 2006
    • 7

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

    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.InvalidO perationExcepti on: The current session is not interactive.

    Source Error:

    Line 53: // open store and show certificate picker
    Line 54: store.Open(Open Flags.ReadOnly) ;
    Line 55: X509Certificate 2Collection cert = X509Certificate 2UI.SelectFromC ollection(store .Certificates, "Trans Online System Private Limited", "Message", X509SelectionFl ag.SingleSelect ion);
    Line 56: ContentInfo plainContent = new ContentInfo(cip herbytes);
    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
    Last edited by shwetamodi; Apr 23 '08, 05:25 AM. Reason: Title is not clear
Working...