对于doc文档可以预览
对于xlsx、pptx文档也可以预览
但对于docx文档,一打开就会报word web app错
我在office web apps server这台服务器上看了一下日志文件:
04/14/2017 16:32:12.93 w3wp.exe (0x12F0) 0x4E38 Office Web Apps WAC Hosting Interaction adhq7 Medium HttpRequestAsync (WOPIExecuteCobalt,WACSERVER) Starting [mode: POST, url: http://192.8.124.181/api2/wopi/files/c5c893c11d1f6243c34bafc6535edfca602817e6?access_token=REDACTED_32&access_token_ttl=1492160533000] ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.93 w3wp.exe (0x12F0) 0x4E38 Office Web Apps WAC Hosting Interaction adhro Medium HttpRequestAsync (WOPIExecuteCobalt,WACSERVER) End Called ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x1AB8 Office Web Apps WAC Hosting Interaction adhrj Monitorable HttpRequestAsync (WOPIExecuteCobalt,WACSERVER), request failure [HttpResponseCode:Unauthorized, HttpResponseCodeDescription:UNAUTHORIZED, url:http://192.8.124.181/api2/wopi/files/c5c893c11d1f6243c34bafc6535edfca602817e6?access_token=REDACTED_32&access_token_ttl=1492160533000] ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x1AB8 Office Web Apps WAC Hosting Interaction adhrr Medium HttpRequestAsync (WOPIExecuteCobalt,WACSERVER) Setting Completion [Time in ms: 23, Bytes Read: 0] ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x1AB8 Office Web Apps WAC Hosting Interaction ajdv9 Medium HttpRequestAsync (WOPIExecuteCobalt,WACSERVER) SetCompletion Track start | setting trackers | WebRequest.Create() | Create() returned | _req.ContentLength 798 | setting request headers | setting user agent | setting keep alive | setting timeout callback | Start calling StartRequestProcessing | StartRequestProcessing._req.BeginGetRequestStream() | BeginGetRequestStream() returned | StartRequestProcessing RETURNS | Start RETURNS | End.AsyncWaitHandle.WaitOne() | GetRequestStreamCallback sync:False | _req.EndGetRequestStream() | EndGetRequestStream() returned | GetRequestStreamCallback - DoWriteLoopFinished | in DoWriteLoopFinished | in DoWriteLoop WHILE | _cbThisWrite: 798 | _requestStream.Read() | Read() -> 798 | _putStream.BeginWrite() | BeginWrite() -> sync: False | DoWriteLoopFinished RE… ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96* w3wp.exe (0x12F0) 0x1AB8 Office Web Apps WAC Hosting Interaction ajdv9 Medium …TURNS False | GetRequestStreamCallback - DoWriteLoopFinished -> FALSE | GetRequestStreamCallback RETURNS | WriteCallback.FProcessWriteReturn() | FProcessWriteReturn._putStream.EndWrite() | EndWrite() returned | FProcessWriteReturn RETURNS true (_bytesToWrite: 0 _cbThisWrite:798) | FProcessWriteReturn() -> TRUE | WriteCallback.DoWriteLoopFinished() | in DoWriteLoopFinished | DoWriteLoopFinished RETURNS True | DoWriteLoopFinished() -> TRUE | _putStream.Close() | WriteCallback.StartResponseProcessing() | StartResponseProcessing._req.BeginGetResponse() | BeginGetResponse() returned | StartResponseProcessing RETURNS | StartResponseProcessing() returned | WriteCallback RETURNS | GetResponseCallback isSync:False | _req.EndGetResponse() | GetResponseCallback WebException | RecordWebException | Rec… ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96* w3wp.exe (0x12F0) 0x1AB8 Office Web Apps WAC Hosting Interaction ajdv9 Medium …ordResponse Unauthorized | SetCompletion False | ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x4E38 Office Web Apps WAC Hosting Interaction ag7m6 Medium WOPI Http Request Completed [host machine name:, version:, host correlation:] ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x4E38 Office Web Apps WAC Hosting Interaction adhr1 Medium WOPIExecuteCobalt,WACSERVER Unauthorized [url:http://192.8.124.181/api2/wopi/files/c5c893c11d1f6243c34bafc6535edfca602817e6?access_token=REDACTED_32&access_token_ttl=1492160533000, host correlation:] ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x4E38 Office Web Apps Office Web Apps Cell Storage air2x Medium Delaying IStorageException: WOPI 401 ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x4E38 Office Web Apps Office Web Apps Cell Storage ag0mo Unexpected Highlevel exception FileUnknownException during request processing. Message: WOPI 401, Stack: 在 Microsoft.Office.Web.Apps.Common.WopiDocument.LogAndThrowWireException(HttpRequestAsyncResult result, HttpRequestAsyncException delayedException) 在 Microsoft.Office.Web.Apps.Common.HttpRequestAsync.End() 在 Microsoft.Office.Web.CellStorage.CobaltExecutionHelper.ExecuteCobaltRequest(BaseDocument doc, String relativePath, Stream requestStream, String& newDocumentFileRep) 在 Microsoft.Office.Web.CellStorage.CellStorageRoundtrip.OnExecuteRoundtrip() 在 Cobalt.Roundtrip.Execute(), TargetSite: Void LogAndThrowWireException(Microsoft.Office.Web.Apps.Common.HttpRequestAsyncResult, Microsoft.Office.Web.Apps.Common.HttpRequestAsyncException) ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x4E38 Office Web Apps Office Web Apps Cell Storage aazup Medium Cobalt request execution complete. ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x4E38 Office Web Apps Office Web Apps Cell Storage air2z Unexpected Re-Throwing [Delayed Exception: FileUnknownException: WOPI 401] [Original Callstack: 在 Microsoft.Office.Web.Apps.Common.WopiDocument.LogAndThrowWireException(HttpRequestAsyncResult result, HttpRequestAsyncException delayedException) 在 Microsoft.Office.Web.Apps.Common.HttpRequestAsync.End() 在 Microsoft.Office.Web.CellStorage.CobaltExecutionHelper.ExecuteCobaltRequest(BaseDocument doc, String relativePath, Stream requestStream, String& newDocumentFileRep) 在 Microsoft.Office.Web.CellStorage.CellStorageRoundtrip.OnExecuteRoundtrip() 在 Cobalt.Roundtrip.Execute()] the original callstack will be lost upon being re-thrown. ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x4E38 Office Web Apps Office Web Apps Cell Storage ahq91 Medium Executed 1 Cobalt Requests ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x4E38 Office Web Apps Office Web Apps Cell Storage aazuv Medium A file not found or file unknown exception was thrown while processing a request batch; file id is invalid, failing all requests in this batch (file id = http%3A%2F%2F192.8.124.181%2Fapi2%2Fwopi%2Ffiles%2Fc5c893c11d1f6243c34bafc6535edfca602817e6, containing folder = (not provided), relative path = (not provided) ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x4E38 Office Web Apps Word Web App File Open ainrd Medium GetStorageManifestAndPictureRevisions: Request failed [CellStorageError: InternalError.FileNotFound] ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x4E38 Office Web Apps Word Web App File Open ah2ng Monitorable GetCells: GetRootById failed. [Status:InvalidFileID] ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x4E38 Office Web Apps OneNote Web App Storage ifj9 Medium Response: Mode:[Word] [Elapsed Time: 29ms] 1:[GetCells Status=InvalidFileID] ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:12.96 w3wp.exe (0x12F0) 0x4E38 Office Web Apps Office Web Apps common af46w Medium WACServer HttpModule: Completed request with status code [200] ce1ebb59-d0eb-43c9-8560-8b771414d9e9
04/14/2017 16:32:13.61 w3wp.exe (0x1438) 0x18F8 ULS Logging Logging Correlation Data xmnv Medium Name=Task: SessionManager.PerformOngoingRequestDepartures 6b6b4445-0d73-0002-8f3e-24fb8e28f1df
04/14/2017 16:32:13.64 w3wp.exe (0x1438) 0x19F8 ULS Logging Logging Correlation Data xmnv Medium Name=Task: HealthPerfCounter 633d7a5d-05ea-0002-8e72-e7b4653d7ee7
04/14/2017 16:32:14.62 w3wp.exe (0x1438) 0x18F8 ULS Logging Logging Correlation Data xmnv Medium Name=Task: SessionManager.PerformOngoingRequestDepartures 6b6b4445-0d73-0002-8f3e-24fb8e28f1df
04/14/2017 16:32:15.63 w3wp.exe (0x1438) 0x18F8 ULS Logging Logging Correlation Data xmnv Medium Name=Task: SessionManager.PerformOngoingRequestDepartures 6b6b4445-0d73-0002-8f3e-24fb8e28f1df