Aug 29 2019 11:23 PM
Hi,
I am using RMS client 2.1 SDK to apply protection on PDF file.
Client has provided us with template ID.
But when I try to use the function "IpcCreateLicenseFromTemplateId" I get error
“The System cannot find the file specified. HRESULT: 0x80070002”.
****************************************************************************************
string viewAndPrint = "xxxxx-xxxx-xxx-xxxx-xxxxxxxx";
//Error in thisline
SafeInformationProtectionLicenseHandle handle = SafeNativeMethods.IpcCreateLicenseFromTemplateId(viewAndPrint);
SafeNativeMethods.IpcSetLicenseUserRightsList(handle, userRights);
SafeNativeMethods.IpcSetLicenseValidityTime(handle, term);
string encryptedFilePath = SafeFileApiNativeMethods.IpcfEncryptFile(
filePath,
handle,
SafeFileApiNativeMethods.EncryptFlags.IPCF_EF_FLAG_KEY_NO_PERSIST,
true,false,true,null,symmetricKeyCred);
****************************************************************************************
Please help me solve this error.