Hi Tom_Moser,
I am using the SDK to protect MS-Word documents. Like in the sample included with the SDK. However, I cannot open these encrypted files in MS-Word afterwards (getting the error "The file is corrupt and cannot be opened."). When I protect a document with the Azure RMS client in MS-Word (i.e. by clicking the button), a series of bytes is prepended to the protected document before the publishing license. These bytes are not prepended by the SDK sample, could these missing bytes be the source of the error? If so, how can I prepend them from the SDK? What is the meaning of these bytes?
EDIT: Using the Azure RMS SDK sample from here: https://github.com/Azure-Samples/Azure-Information-Protection-Samples/tree/master/FormFileEncrypt, I can protect a document programatically and then open it in MS-Word with no problems.
Thanks for your help,
Pablo Lorenceau