Unable to open Office documents on Edge

Bonin, Cecile 1 Reputation point
2021-12-02T09:05:52.35+00:00

Hello,

We have an intranet site containing a hierarchy of documents. Using the browser Edge, clicking on the link to open an Office document (for example a Word document)

154340-screenshot-1.png

it opens a new tab with a URL starting with https://view.officeapps.live.com/op/view.aspx?src=

and it displays an error stating "Word ran into a problem opening this document in a browser"

154388-screenshot-2.png

It happens with any file on this Intranet, and with Word or Excel.

I tried to Repair Office -> same issue

I tried to reset the settings in Edge -> same issue

I removed all extensions in Edge -> same issue

I cleared the cache in Edge -> same issue

I reinstalled Edge -> same issue

Then I tried to test with another site containing Office documents, I found this one https://file-examples.com/index.php/sample-documents-download/sample-doc-download/#google_vignette and clicked on one of the buttons to download a sample file.

It opened a new tab: https://view.officeapps.live.com/op/view.aspx?src=https%3A%2F%2Ffile-examples-com.github.io%2Fuploads%2F2017%2F02%2Ffile-sample_100kB.docx&wdOrigin=BROWSELINK

and this document works for me to display it.

I wonder why it works for the site above but doesn't for my intranet site.

The link seems to be constructed similarly: https://view.officeapps.live.com/op/view.aspx?src=https%3A%2F%2Fwfaueu.docushare.com%2Fdocushare%2Fdsweb%2FGet%2FDocument-1152%2FProcessSchema.docx&wdOrigin=BROWSELINK

I tried to use the Developer Tools I see that for the working site, the image of the document is displayed thanks to this URL: https://pnl1-word-view.officeapps.live.com/wv/ResReader.ashx?n=p1.img&WOPIsrc=http%3A%2F%2Fpnl1%2Dview%2Dwopi%2Ewopi%2Eonline%2Eoffice%2Enet%3A808%2Foh%2Fwopi%2Ffiles%2F%40%2FwFileId%3FwFileId%3Dhttps%253A%252F%252Ffile%252Dexamples%252Dcom%252Egithub%252Eio%253A443%252Fuploads%252F2017%252F02%252Ffile%252Dsample%255F100kB%252Edocx&access_token=1&access_token_ttl=0&z=332794745f5622beb843399e988a12b2d388c97c92ff1860f847b4aeadc5e0a0&v=00000000-0000-0000-0000-000000000802&usid=175ddc33-b800-48d3-abee-1dae5487ee3a&splashscreen=1&build=16.0.14723.41019&waccluster=PNL1

On the intranet site, the URL is: https://pnl1-word-view.officeapps.live.com/wv/ResReader.ashx?n=p1.img&WOPIsrc=http%3A%2F%2Fpnl1%2Dview%2Dwopi%2Ewopi%2Eonline%2Eoffice%2Enet%3A808%2Foh%2Fwopi%2Ffiles%2F%40%2FwFileId%3FwFileId%3Dhttps%253A%252F%252Fwfaueu%252Edocushare%252Ecom%253A443%252Fdocushare%252Fdsweb%252FGet%252FDocument%252D1152%252FProcessSchema%252Edocx&access_token=1&access_token_ttl=0&z=7f061ad1e2b7350a5d607d2a9642f936e42b61f72208a29e4b0bc579766799a8&v=00000000-0000-0000-0000-000000000802&usid=0045ebb5-7b24-40a5-ac61-5fd4340fd2fd&splashscreen=1&build=16.0.14723.41019&waccluster=PNL1

The result for this URL is an error 404 - File or directory not found

The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Could you help determine what is the root cause of this issue?

And is there a way to make it work?

Thanks,
Cecile

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,029 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Maarten van Laar 1 Reputation point
    2021-12-06T09:18:33.757+00:00

    I know this might not be what you are looking for, but switching the "Open Office files in the browser" setting off in edge://settings/downloads will prevent your browser from trying to open your document in the browser. Your document will start downloading instead, so you won't get the error.
    Offcourse, this doesn't answer your question how the document can be openened in Edge directly, but for the time beeing you can get rid of the error message.

    0 comments No comments

  2. Wouter 1 Reputation point
    2021-12-29T13:35:02.76+00:00

    We are also experiencing this error in Edge specifically. @XuDong Peng-MSFT is there more information about this issue?

    Our analyzes show that when Edge sees that it is an office file (Word, Excel etc) it forwards it to: view.officeapps.live.com.

    By looking at the logs on the web server, we see that the client makes a call to the file in question, which neatly receives an http code 200.
    The client then sees that it is an office file, and forwards this call to: view.officeapps.live.com. Here the call is executed again, but returns a 404.
    Somehow view.officeapps.live.com then tries again, but this time with the necessary cookies, but this also returns a 404.

    It seems that more suppliers are experiencing similar issues.

    0 comments No comments

  3. Robert Hayes 1 Reputation point
    2022-03-06T23:10:21.05+00:00

    We've had similar problems, with an HOA website. Studying the URLs, it's not opening Word, Edge is sending you to that OfficeApps.Live url and passing the url for the document. For some reason, OfficeApps doesn't like the indirection. My solution was to change that "Quickly Open Office Files" setting to download, so you can open it in the real Office apps on your PC.

    0 comments No comments