Office URI Scheme working for some installations of Office 2016, but not others

Brad Erickson 41 Reputation points
2022-07-01T18:50:24.067+00:00

We have a web application that uses the Office URI scheme to open documents in Word for the user from their browser. For example:
ms-word:ofe|u|file://NetworkServer/Share/DocumentToOpen.docx

In our development and testing, this solution has worked perfectly for us with Office 365, Office 2019 and Office 2016.

However, when we set up a web app for a client that uses Office 2016, they reported that Office was giving them an error when trying to open documents this way:
"This action couldn't be performed because Office doesn't recognize the command it was given"

We attempted repairing the Office installation (as we've seen suggested) with no success.

We were able to produce the same error message ourselves when using an old machine with an Office 2013 installation.

To try to remove browser and Windows configurations from the equation, we confirmed that running the Office protocolhandler.exe directly through command prompt like this also produces the same error message for the non-working installs:
"C:\Program Files\Microsoft Office\Root\Office16\protocolhandler.exe" "ms-word:ofe|u|file://NetworkServer/Share/DocumentToOpen.docx"

Running that same command (with appropriate paths) on our machines with Office 365, 2019 and 2016 all work as expected and the document opens in Word successfully.

A difference that we're seeing with our (working) installs of Office 2016 vs. the client's (non-working) install is the versioning:

Our working Office 2016 version:
Microsoft Word 2016 MSO (Version 2205 Build 16.0.15225.20028) 32-bit

Client's non-working Office 2016 version:
Microsoft Word 2016 (16.0.5317.1000) MSO (16.0.5278.1000) 64-bit

Does anyone have any thoughts on why the command would be functioning on one install of Office 2016, but not another?

Thanks!

Developer technologies | Visual Basic for Applications
{count} votes

1 answer

Sort by: Most helpful
  1. OASE Software GmbH 15 Reputation points
    2023-01-31T15:12:01.8866667+00:00

    We also ran in to this problem. We found out, that the ProtocolHandler.exe on the systems where this is working has a size of over 8MB whereas on the clients where it is not working the ProtocolHandler.exe hast a size of only ~947KB.

    We also found out, that on installations where Office XXXX Pro is installaed the requests are working but on Office XXXX Standard installations the call leads to the error.

    We now hope, that not only the PRO versions of Office supports this URI-Schema??

    2 people found this answer helpful.
    0 comments No comments

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.