Author: rendalf | Posted on: 6/22/2009 2:22:26 PM | Views : 924

Hello I am doing some test with CAPICOM sign in ASP.NET app. In VS2008, everything works fine, but after publishing application on IIS (5.1) it looks like it can not open store with certificates.
oStore.Open(CAPICOM_STORE_LOCATION.CAPICOM_LOCAL_MACHINE_STORE, "Root", CAPICOM_STORE_OPEN_MODE.CAPICOM_STORE_OPEN_READ_ONLY); SignedData SignData = new CAPICOM.SignedData(); CAPICOM.Settings setting = new Settings(); setting.EnablePromptForCertificateUI = true; SignData.Content = TextBoxMessage.Text; hash = SignData.Sign(null, false, CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_BASE64);  It stopes on SignData.Sign(null, false, CAPICOM_ENCODING_TYPE.CAPICOM_ENCODE_BASE64); with message "The certificate store does not contain any certificate.". The test certificate is stored in LOCAL_MACHINE_STORE. It looks like there is a problem with user, who is web app runnig. Any suggestions or advice? Thank you.
...

Go to the complete details ...