System.Runtime.InteropServices.COMException (0x800A175C): The context cannot be modified.

dkarthik363 25 Reputation points
2024-03-22T07:02:43.36+00:00

Hi All,

After moving from AIP to built-in labeling , we are getting this exception while launching the word.

ERROR KEYBINDING 698 failed for macro: Variable

System.Runtime.InteropServices.COMException (0x800A175C): The context cannot be modified.

   at Microsoft.Office.Interop.Word.KeyBindings.Add(WdKeyCategory KeyCategory, String Command, Int32 KeyCode, Object& KeyCode2, Object& CommandParameter)

   at .myapp.Bind()

EXCEPTION SOURCE: Microsoft Word

 

This happens only with after enabling the built-in labeling and disabling the AIP. if we move back to AIP, its working fine, but as from April 1 2024, AIP is being removed, so we have moved to built-in labeling. Does this requires any policies modifications to microsoft account, could you guide us on this.

Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Word | For business | Windows
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.