Office Web Apps Previews Not Working in SharePoint 2013?
During a SharePoint 2013 deployment, I integrated Office Web Apps 2013 with SharePoint 2013 with my implementation guide How to Install and Configure Office Web Apps 2013 for SharePoint 2013? Everything went well until we received all the Office Web Apps services failing errors in SharePoint 2013.
Word Web Apps gave an error:
“Sorry, there was a problem, and we can’t open this document. If this happens again, try opening the document in Microsoft Word.”
Excel and PowerPoint Web Apps also failed. “Excel Web App – Sorry, we’re having a problem showing this workbook.”
On PowerPoint web application: “Microsoft PowerPoint Web App – Sorry, we couldn’t open this presentation because we ran into a problem. Please try again.”
Analyzed event logs of SharePoint and OWA servers and found nothing useful. Logged in to the Office Web Apps server and analyzed the latest logfile from “C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ULS” location.
While scanning LOG files, I found these lines: “WOPICheckFile,WACSERVER FileNotFound [url:https://sharepoint.crescent.com/_vti_bin/wopi.ashx/files/7529f29d45234898b81a46a14a74203b?access_token=REDACTED_1072&access_token_ttl=1418077932722”
Root Cause and Solution:
Well, the Office web apps server must be able to resolve and communicate with SharePoint 2013 sites to render office documents in SharePoint sites. In my case, It couldn’t do that because of a WRONG IP placed in the HOST file of the Office Web Apps server! I just fixed it by clearing HOST file entries and creating a global DNS record for SharePoint sites! You can also try placing a HOST file entry in the Office web Apps server, pointing to SharePoint sites, if DNS change isn’t possible.
So, make sure the Office Web Apps server is able to contact SharePoint sites to get rid of these issues.