The store is current store. The thing is its run perfectly from a windows
form but not from a web page?
The code look like.
X509CertificateStore store =
X509CertificateStore.CurrentUserStore(X509CertificateStore.MyStore);
store.OpenRead();
X509CertificateCollection certs =
store.FindCertificateByKeyIdentifier(Convert.FromBase64String(keyId));
store.Close();
return new X509SecurityToken(((X509Certificate)certs[0]));
> What is the store location? Is it Current User? Try putting the client
> certificate in either the ASP.NET users store or put it in the Machine store
[quoted text clipped - 10 lines]
> > be
> > appreciated. Need this for a project.
Jon - 13 Oct 2005 23:47 GMT
Thats because when its an App it runs from the logged in users Certificate
store, but when its a web page/service it uses the ASP.NET users web store
which is probably empty.
If you use the localmachine store then that is common between the two users
and just make sure they both have permissions to access the cert.
Jon
> The store is current store. The thing is its run perfectly from a windows
> form but not from a web page?
[quoted text clipped - 28 lines]
>> > be
>> > appreciated. Need this for a project.