Symptoms
Users getting the below error when trying to save a PDF.
Diagnoses
The PDF could not be saved.
• Type:
SourceCode.SmartObjects.Client.SmartObjectException
• Message:
• Could not load file or assembly 'ephtmltopdf.dll' or one of its dependencies. Access is denied.
• Source:
SourceCode.Forms.Controls.Web
• Method Base
o Member Type:
Method
o Name:
ExecuteSaveAsPDFMethod
o Module
Scope Name:
SourceCode.Forms.Controls.Web.dll
o Declaring Type
Full Name:
SourceCode.Forms.Controls.Web.SaveAsPDFRequest
• Stack Trace:
at SourceCode.Forms.Controls.Web.SaveAsPDFRequest.ExecuteSaveAsPDFMethod(SaveAsPDFRequest request)
at SourceCode.Forms.Controls.Web.SaveAsPDFHandler.ProcessRequest(HttpContext context)
Resolution
Issue was resolved by granting necessary rights to the K2 folder.
USERS group did not have
Read and Execute
List folder contents
Read
Rights.
Granting these rights resolved the issue. (Granted to top level folder of K2 and where the 'ephtmltopdf.dll is stored)