Skip to content
Amal Hashim
All posts
Article

SharePoint: Word Web App cannot open this document for viewing because of an unexpected error

Fix Office Web Apps in SharePoint 2010 failing to open any document by checking the viewing service, its proxy and the proxy group.

2 min read#Office#SharePoint 2010

Office Web Apps can stop opening documents. Clicking any document link shows this error:

Word Web App error message saying it cannot open the document for viewing

The ULS log contains this exception:

text
System.AccessViolationException: Attempted to read or write protected memory.
This is often an indication that other memory is corrupt.

Fix

The steps below use Word as the example. The same applies to the other viewing services.

  1. Make sure the Word Viewing Service is started.
    • Central Admin > System Settings > Manage services on server > Word Viewing Service
    • Manage services on server showing Word Viewing Service
  2. Stop the Word Viewing Service and start it again.
  3. Make sure the Word Viewing Service proxy exists.
    • Central Admin > Application Management > Manage service applications
    • Look for the proxy in the list.
    • Manage service applications list showing the Word Viewing Service proxy
  4. Make sure the proxy is in the web application's proxy group.
    • Central Admin > Application Management > Manage web applications
    • Select the web application, then click Service Connections on the ribbon.
    • Service Connections dialog with the Word Viewing Service proxy ticked

After this, Office documents open in Office Web Apps again.