Error in .net sdk

Hi engineers,

I’m using ZATCA .net SDK in my .net app

I face some errors in this signing function
IEInvoiceSigner invoiceSigner= new EInvoiceSigner();
SignResult signResult= invoiceSigner.SignDocument(xmlDoc, csrResult.Csr, csrResult.PrivateKey)

The main error is:
“[Error] Parsing EInvoice Certificate[Error] Populating Signed Signature Properties[Error] Generating EInvoice QR Code”

and when I check for the steps errors it come like these:

Step[3] Parse Certificate - Exception: “Cannot find the requested object”
Step[6] Populate Signed Signature Properties - Exception: “Object reference not set to an instance of an object”
Step[9] Generate EInvoice QR - Exception: “Invalid Certificate”;

Dear @muzzamilnagda

Thanks for reaching out, and welcome at our community.

Please note that the signing method takes 3 parameters XmlDoc, certificate, and private key that generated with the CSR.

Additionally, please find the signing docs that explain the signing process manually to understand the exact behavior of the signing method.

SigningProcessUpdated.pdf (927.7 KB)

For any further concerns, please do not hesitate to reach out to our support team via below email.

SP email: sp_support@zatca.gov.sa

Thanks,
Ibrahem Daoud.

did you solve it?
passing csrResult.Csr, csrResult.PrivateKey as is? or change something?