title: Unable to open docx from SharePoint document library in browser after applying confidential encrypted sensitivity label to it using MIP SDK
body: <p>I've created a C# console application that downloads a document e.g. in .doc format from SharePoint Online. It then converts the document to .docx format before ascertaining the sensitivity label to be applied and then sets the label using the Microsoft Information Protection SDK v1.10.97. Then it uploads the document to SharePoint.</p>
  <p>There are no errors when the sensitivity label is applied by the program and both restricted and confidential labels are applied. The problem is I am unable to open the documents with confidential (encrypted) labels in the browser afterwards. This works for the restricted (unencrypted) documents, however.</p>
  <p>The error pops up:
  &quot;Sorry, Word can't open this document in a browser because it's protected by Information Rights Management (IRM).  To view this document, please open it in the desktop version of Microsoft Word.&quot;</p>
  <p>Opening the document in the desktop application is undesirable because the customer wants to open it in the browser.</p>
  <p>Using the same user account that the program was running as I can log in and create a new document in the browser, add the confidential (encrypted) sensitivity label to it, save and exit the document and then re-open the document again successfully in the browser.</p>
  <p>Is this a limitation of the MIP SDK or am I doing something wrong here when I apply the label? Or does the sensitivity label itself need to be set up in a particular way? Any advice greatly appreciated.</p>