Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4 > ASP.NET 4 General Discussion
|
ASP.NET 4 General Discussion For ASP.NET 4 discussions not relating to a specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 24th, 2012, 06:57 AM
Registered User
 
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Digital Signature Exceptions in IIS7

I have made web application using asp.net and vb.net for making digital signature in the pdf

i am using x509store for getting all certificates from the windows certificates root. but its not function afte deploy in iis 7.5. getting exception

" current Session interactive"
my function is given below for getting x509ceritificates

Public Function GetCertificate() As X509Certificate2
Dim st As New X509Store(StoreName.My, StoreLocation.LocalMachine)

st.Open(OpenFlags.[ReadOnly])
Dim col As X509Certificate2Collection = st.Certificates
Dim card As X509Certificate2 = Nothing


Dim fcollection As X509Certificate2Collection = col.Find(X509FindType.FindByTimeValid, DateTime.Now, False).Find(X509FindType.FindByKeyUsage, X509KeyUsageFlags.DigitalSignature, False)

Dim sel As X509Certificate2Collection = X509Certificate2UI.SelectFromCollection(fcollectio n, "Certificates", "Select one to sign", X509SelectionFlag.SingleSelection)
sel.Add(fcollection(0))



'Dim sel As X509Certificate2Collection = X509Certificate2UI.SelectFromCollection(col, "Certificates", "Select one to sign", X509SelectionFlag.SingleSelection)
sel.Add(col(0))
If sel.Count > 0 Then
Dim en As X509Certificate2Enumerator = sel.GetEnumerator()
en.MoveNext()
card = New X509Certificate2(en.Current.RawData)
card = en.Current
End If
st.Close()


Return card
End Function

plz resolve the problem

Thanx





Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Signature for SoapRequest fullingdale BOOK: Professional C# 4.0 and .NET 4 0 August 24th, 2011 10:33 AM
how to implement the digital signature kotaiah J2EE 0 May 11th, 2007 05:06 AM
How to create Digital Signature using certificate iron_ ASP.NET 1.0 and 1.1 Professional 0 September 5th, 2005 10:02 PM
Incorporate Signature thru Digital Pad ashu_gupta75 Classic ASP Basics 0 May 14th, 2004 01:24 AM
Digital signature verification using PHP. Hawk PHP How-To 0 July 16th, 2003 08:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.