Hi everyone, I’m facing a strange issue after upgrading the ZATCA E-Invoicing SDK from v3.4.2 (which worked perfectly) to v3.4.5 in my .NET 8 application.
The new EInvoiceSigner() object initialises without any errors. However, when I call the SignDocument() method, the method returns a result object, but all the internal Steps (like ‘Generate EInvoice Hash’) show a failure status.
When I inspect the exception in the first failed step, the root cause is a TypeInitializationException with the following detailed inner exception. System.UnauthorizedAccessException: Access to the path ‘D:\Recovery’ is denied. It seems a component of the SDK is being initialised for the first time during the SignDocument call, and it’s trying to access a system folder (D:\Recovery), which fails.:
Has anyone else encountered this specific “Access Denied” error with the .NET SDK (v3.4.5) after calling SignDocument? If you did, how did you manage to resolve it or correctly configure the SDK’s working directory? Any help would be greatly appreciated. Thank you!