Hi all,
Windows 7, FF 21.0.
I want to use the CAPICOM ActiveX (installed upfront on the PC) with Mozilla. This control is used for digital signatures etc.
I wrote some code using the example from the Wiki and I also enabled logging.
I create the objects HTML, giving the first one some size, the other objects are hidden.
I get this error: Error: Error calling method on NPObject!
When I load the Webpage I get this log:
AxHost.NPP_New: debug level set to 5
AxHost.verifyClsID: verified successfully
AxHost.setClsID: CLSID {94AFFFCC-6C05-4814-B123-A941105AA77F} set
AxHost.verifyClsID: verified successfully
AxHost.setClsIDFromProgID: PROGID CAPICOM.SignedData resolved and set
AxHost.CreateControl: control created successfully
AxHost.UpdateRect: failed to attach control
AxHost.TestAuthorization: returning True
AxHost.verifyClsID: verified successfully
AxHost.setClsID: CLSID {54BA1E8F-818D-407F-949D-BAE1692C5C18} set
AxHost.verifyClsID: verified successfully
AxHost.setClsIDFromProgID: PROGID CAPICOM.Attribute resolved and set
AxHost.CreateControl: control created successfully
AxHost.UpdateRect: failed to attach control
AxHost.TestAuthorization: returning True
AxHost.verifyClsID: verified successfully
AxHost.setClsID: CLSID {91D221C4-0CD4-461C-A728-01D509321556} set
AxHost.verifyClsID: verified successfully
AxHost.setClsIDFromProgID: PROGID CAPICOM.Store resolved and set
AxHost.CreateControl: control created successfully
AxHost.UpdateRect: failed to attach control
AxHost.TestAuthorization: returning True
AxHost.verifyClsID: verified successfully
AxHost.setClsID: CLSID {60A9863A-11FD-4080-850E-A8E184FC3A3C} set
AxHost.verifyClsID: verified successfully
AxHost.setClsIDFromProgID: PROGID CAPICOM.Signer resolved and set
AxHost.CreateControl: control created successfully
AxHost.UpdateRect: failed to attach control
Then I click the SIGN button to digitally sign some text and get Error: Error calling method on NPObject!.
I have attached both my code files
How can I fix this problem?
Thanks,