This is rather a Weird problem I encountered when deploying Office Web App for SharePoint 2013. (Not sure about SP2010).
After following MSDN technet of deploying/configuring OWA for SharePoint, Ran a Full Crawl and trying to preview Office Document.
One funny thing that happen to me was that I can preview Excel Document but not Word and PowerPoint document!
never ending load
Toggling Developer Tool to check the package and found
ResReader.ashx giving Status 404 error
The sample request is like below
https://[office web app url]/wv/ResReader.ashx?n=p1.img
The reason being is that i’ve selected F drive for the OWA Installation path (which is not C by default).
Due to some best practices, I always prevent from using C as the installation path. BUT SOMEHOW for Some reason, Office Web Apps needs to be installed in C DRIVE
It may or may not happen as the other environment that i setup was on F drive and it worked Fine. It took me 2 days to dig and the last resolution was to reinstall the OWA.
After installing to C drive. The OWA works as per normal
Got this error after configuring Office Web Apps for SharePoint.
Digging into the ULS for Office Web App [C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ULS\***] and found the following error messages when browsing a document via OWA
HttpRequestAsync, (WOPICheckFile,WACSERVER) no response [WebExceptionStatus:ConnectFailure, url: xxxxxxx
...syncResult asyncResult, Exception& exception)
WOPI CheckFile: Catch-All Failure [exception:Microsoft.Office.Web.Common.EnvironmentAdapters.UnexpectedErrorException:
HttpRequest failed ---> Microsoft.Office.Web.Apps.Common.HttpRequestAsyncException:
No Response in WebException ---> System.Net.WebException:
Unable to connect to the remote server ....
FileUnknownException while loading the app....
Checking Application Event Logs and got the following error
Exception type: ExcelWebRendererException Exception message:
We couldn't find the file you wanted.
Turned out that this is due to certain URL not being resolvable by Office Web App Servers.
Here is the catch, the SharePoint Web Application of mine is using multiple Zonez for authentication. The default zone was used for internal servers (not registered in DNS) while Intranet Zone was used for all users.
After the SPWOPI binding is done, the OWA takes in the Default Zone URL whenever user accessing office document via Intranet Zone. The Default Zone’s URL is never set in DNS and hence error thrown.
The workaround is to change the HOSTS file in OWA server (C:\Windows\System32\drivers\etc\hosts) to add in the IP of SharePoint Web Server with Default Zone’s URL.
Alternatively, if the Default URL is okay to be exposed to public. Please feel free to add in a DNS record.