A "Sorry, there was a problem and we can't open this document." Error Occurs When Viewing a Microsoft Office Document Within Web Client 10.2.1 Update 2 With the Office Web Apps Server Option.

October 18, 2017 | KB: 1013901
Web Client 10.2.1

Summary

When using the Office Web Apps Server option to view a Microsoft Office Document from within web client 10.2.1 Update 2, you may receive the following error message:

    Sorry, there was a problem and we can't open this document. If this happens again, try opening the document in Microsoft Word.

Cause

The web client 10.2.1 update 2 installation includes configuration information for a Microsoft Office Web Apps Server feature that is not yet fully supported.

Workaround

Modify the following pair of web client web.config files to remove incompatible configuration information:

  • C:\Program Files\Laserfiche\Web Access\Web Files\web.config
  • C:\Program Files\Laserfiche\Web Access\Web Files\wopi\Web.config

To modify C:\Program Files\Laserfiche\Web Access\Web Files\Web.config

  1. Using a text editor, open C:\Program Files\Laserfiche\Web Access\Web Files\web.config.
  2. Scroll down to around line 243 and remove these 2 lines:

    <!-- WOPI protocol -->
    <add name="WopiHandler.ashx" verb="GET,POST" path="WopiHandler.ashx" type="Laserfiche.WebAccess.Common.Wopi.WopiHandler, WebAccessCommon" />

  3. Scroll down to around line 285 and remove the following lines:

    <!-- WOPI protocol -->
    <!-- Version resources -->
    <!-- Version resources -->
    <!-- Version resources -->
    <rule name="WopiContents">
       <match url="^wopi/files/r_(.+)_([0-9]+)_(.+)/contents" />
       <action type="Rewrite" url="wopi/WopiHandler.ashx?r={R:1}&id={R:2}&v={R:3}&a=contents" />
    </rule>
    <rule name="WopiInfo">
       <match url="^wopi/files/r_(.+)_([0-9]+)_(.+)" />
       <action type="Rewrite" url="wopi/WopiHandler.ashx?r={R:1}&id={R:2}&v={R:3}" />
    </rule>
    <rule name="WopiContents upload">
       <match url="^wopi/files/u_(.+)_[^\?]+/contents" />
       <action type="Rewrite" url="wopi/WopiHandler.ashx?r={R:1}&a=contents" />
    </rule>
    <rule name="WopiInfo upload">
       <match url="^wopi/files/u_(.+)_[^\?]+" />
       <action type="Rewrite" url="wopi/WopiHandler.ashx?r={R:1}" />
    </rule>

  4. Save your changes.

To modify C:\Program Files\Laserfiche\Web Access\Web Files\wopi\Web.config

  1. Using a text editor, open C:\Program Files\Laserfiche\Web Access\Web Files\wopi\Web.config.
  2. Under </system.web>, add the following block:

    <system.webServer>
       <handlers>
         <!-- WOPI protocol -->
         <add name="WopiHandler.ashx" verb="GET,POST" path="*/wopi/files/*" type="Laserfiche.WebAccess.Common.Wopi.WopiHandler, WebAccessCommon" />
       </handlers>
    </system.webServer>

  3. Save your changes.

Related Links

1013894 List of changes for Laserfiche 10.2.1 Update 2.