Opening documents by using OOS --> Error

%3CLINGO-SUB%20id%3D%22lingo-sub-1083304%22%20slang%3D%22en-US%22%3EOpening%20documents%20by%20using%20OOS%20--%26gt%3B%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1083304%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20color%3D%22%23006000%22%3EHi%20there%2C%3CBR%20%2F%3EDoes%20anyone%20have%20any%20idea%20on%20this%20issue%3F%3F%20Thanks.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23006000%22%3E%3CBR%20%2F%3EMy%20Environment%3A%3CBR%20%2F%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23006000%22%3EI%20create%20two%20SharePoint%20Server%20in%20the%20same%20farm.%20One%20is%20WFE%2C%20another%20one%20is%20Application.%20There%20are%20two%20SharePoint%20Sites%20inside.%3CBR%20%2F%3E1.)%20One%20is%20%3CSTRONG%3EPublishing%20Portal%20(http%3A%2F%2Fhostname%3A2975)%3C%2FSTRONG%3E%3CBR%20%2F%3E2.)%20Another%20is%20My%20site%20host%20(%3CSTRONG%3Ehttp%3A%2F%2Fhostname%3A29845%3C%2FSTRONG%3E).%20I%20also%20EXTENDED%20this%20site%20for%20extranet%20and%20there%20will%20be%20a%20record%20in%20AAM.%20the%20record%20will%20be%20%22%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fdoclib.xxx.xxx%3A443%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdoclib.xxx.xxx%3A443%3C%2FA%3E%3C%2FSTRONG%3E%22%20and%20personal%20site%20URL%20will%20be%20%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fdoclib.xxx.xxx%3A443%2Fpersonal%2Fdomain_username%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdoclib.xxx.xxx%3A443%2Fpersonal%2Fdomain_username%3C%2FA%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3EI%20alos%20create%20an%20OOS%20farm%20(TWO%20OOS%20Servers)%20by%20using%20the%20following%20commands%3A%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23006000%22%3E%3CBR%20%2F%3E%3CFONT%20color%3D%22%23006000%22%3E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%3C%2FFONT%3E%3CBR%20%2F%3EOWA%20Machine%3CBR%20%2F%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3CBR%20%2F%3E1.)%20Import-Module%20-Name%20OfficeWebApps%3CBR%20%2F%3E2.)%20New-OfficeWebAppsFarm%20-InternalURL%20%22%3CA%20href%3D%22http%3A%2F%2Fhostname.xxx.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttp%3A%2F%2Fhostname.xxx.com%3C%2FA%3E%22%20-ExternalUrl%20%22%3CA%20href%3D%22https%3A%2F%2Fdnsname.xxx.com%26quot%3B%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdnsname.xxx.com%22%26nbsp%3B%3C%2FA%3E%20-CertificateName%20%22OfficeWebApps%20Certificate%22%20-AllowHttp%20-EditingEnabled%20-OpenFromURLEnabled%3CBR%20%2F%3E3.)%20%3CA%20href%3D%22https%3A%2F%2Fdnsname.xxx.com%2Fhosting%2Fdiscovery%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdnsname.xxx.com%2Fhosting%2Fdiscovery%3C%2FA%3E%20-%26gt%3B%20work%20properly.%20everything%20works%20fine.%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3ESharePoint%20Side%3CBR%20%2F%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3CBR%20%2F%3E1.)%20New-SPWOPIBinding%20-ServerName%20%22%3CFONT%20color%3D%22%23006000%22%3Ehostname.xxx.com%3C%2FFONT%3E%22%20-AllowHttp%3CBR%20%2F%3E2.)%20Set-SPWOPIZone%20-Zone%20%22external-https%22%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%5E%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3ETESTING%3A%3A%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3E1.)%20CONNECT%20TO%20%3CSTRONG%3EPublishing%20Portal%20(http%3A%2F%2Fhostname%3A2975)%3C%2FSTRONG%3E%20and%20Open%20Document%20in%20any%20Document%20Libraries%20%3A%3A%20To%20open%20a%20document%20by%20using%20OOS%20%3A%3A%20OK%20-%26gt%3B%20Success%20-%26gt%3B%20NO%20any%20issues%3CBR%20%2F%3E2.)%20CONNECT%20TO%20%3CSTRONG%3Ehttp%3A%2F%2Fhostname%3A29845%3C%2FSTRONG%3E%20or%20%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fdoclib.xxx.xxx%3A443%2Fpersonal%2Fdomain_username%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdoclib.xxx.xxx%3A443%2Fpersonal%2Fdomain_username%3C%2FA%3E%3C%2FSTRONG%3E%20and%20Open%20Document%20in%20any%20Document%20Libraries%20%3A%3A%20To%20open%20a%20document%20by%20using%20OOS%20%3A%3A%20Error%20-%26gt%3B%20Failed.%26nbsp%3B%20the%20erroe%20is%20the%20shown%20below%3A%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20335px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163368iBDEF8412ECD7DE7C%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22IMG_9690.jpg%22%20title%3D%22IMG_9690.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CSTRONG%3E%3CFONT%20color%3D%22%23b09600%22%3ESharePoint%20Errors%3A%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23b09600%22%3E%3CBR%20%2F%3EClaims%20Windows%20Sign-In%3A%20Sending%20401%20for%20request%20'http%3A%2F%2Fvms3tstpssp02%3A11465%2Fpersonal%2Ftestcmmp_psadmin1%2F_layouts%2F15%2FWopiFrame2.aspx%3Fsourcedoc%3D%7B1F90A54B-5BC8-4AD8-85FB-BE06E4FE1D6F%7D%26amp%3Bfile%3Dtesting%20document.docx%26amp%3Baction%3Ddefault%26amp%3BCT%3D1577699145592%26amp%3BOR%3DDocLib'%20because%20the%20user%20is%20not%20authenticated%20and%20resource%20requires%20authentication.%3CBR%20%2F%3ESending%20HTTP%20response%20401%20-%20text%2Fplain%3A401%20UNAUTHORIZED.%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23b09600%22%3E%3CFONT%20color%3D%22%23006000%22%3E12%2F31%2F2019%2011%3A25%3A16.94%26nbsp%3Bw3wp.exe%20(0x159C)%26nbsp%3B0x0A18%26nbsp%3BSharePoint%20Foundation%26nbsp%3BDistributedCache%26nbsp%3Bair4a%26nbsp%3BMonitorable%26nbsp%3BToken%20Cache%3A%20Failed%20to%20get%20token%20from%20distributed%20cache.%20Key%3A%20'0).w%7Cs-1-5-21-1995047987-106792918-3988336842-100608'.(This%20is%20expected%20during%20the%20process%20warm%20up%20or%20if%20data%20cache%20Initialization%20is%20getting%20done%20by%20some%20other%20thread).%26nbsp%3B95c2269f-ca50-70d7-ef25-ca6c123e8d13%3CBR%20%2F%3E12%2F31%2F2019%2011%3A25%3A16.94%26nbsp%3Bw3wp.exe%20(0x159C)%26nbsp%3B0x0A18%26nbsp%3BSharePoint%20Foundation%26nbsp%3BDistributedCache%26nbsp%3Bair4b%26nbsp%3BMonitorable%26nbsp%3BToken%20Cache%3A%20Reverting%20to%20local%20cache%20to%20get%20the%20token.%20Key%3A%20'0).w%7Cs-1-5-21-1995047987-106792918-3988336842-100608'.%26nbsp%3B95c2269f-ca50-70d7-ef25-ca6c123e8d13%3CBR%20%2F%3E12%2F31%2F2019%2011%3A25%3A16.96%26nbsp%3Bw3wp.exe%20(0x159C)%26nbsp%3B0x0A18%26nbsp%3BSharePoint%20Foundation%26nbsp%3BWOPI%26nbsp%3Bbjupx%26nbsp%3BMonitorable%26nbsp%3BWopiFrame2%3A%20User%20does%20not%20have%20access%20to%20document.%20Mode%20is%20embed.%20Check%20for%20ClientRender%20Sign-in%26nbsp%3B95c2269f-ca50-70d7-ef25-ca6c123e8d13%3CBR%20%2F%3E12%2F31%2F2019%2011%3A25%3A16.96%26nbsp%3Bw3wp.exe%20(0x159C)%26nbsp%3B0x0A18%26nbsp%3BSharePoint%20Foundation%26nbsp%3BGeneral%26nbsp%3Bbjupw%26nbsp%3BMonitorable%26nbsp%3BClientRenderBasedContent%3A%20Last%20modified%20date%20provided%20with%20KillSwitchId%3A%2005%2F27%2F2016%2C%20Label%20provided%20with%20KillSwitchId%3A%20STS_SupportClientRenderWOPI%26nbsp%3B95c2269f-ca50-70d7-ef25-ca6c123e8d13%3CBR%20%2F%3E12%2F31%2F2019%2011%3A25%3A16.96%26nbsp%3Bw3wp.exe%20(0x159C)%26nbsp%3B0x0A18%26nbsp%3BSharePoint%20Foundation%26nbsp%3BGeneral%26nbsp%3Bbjupv%26nbsp%3BMonitorable%26nbsp%3BClientRenderBasedContent%3A%20DisableContents%20Render%26nbsp%3B95c2269f-ca50-70d7-ef25-ca6c123e8d13%3CBR%20%2F%3E12%2F31%2F2019%2011%3A25%3A16.99%26nbsp%3Bw3wp.exe%20(0x159C)%26nbsp%3B0x0A18%26nbsp%3BSharePoint%20Foundation%26nbsp%3BGeneral%26nbsp%3Bbxkxg%26nbsp%3BHigh%26nbsp%3BSPSiteSubscriptionSettings%3A%20ctor%3A%20UseCachedValues%20'UnAssigned'%20for%20tenant%20'00000000-0000-0000-0000-000000000000'%20-%20not%20using%20the%20cache%20in%20call-stack%20'%20%40%20GetStackTrace%20%40%20.ctor%20%40%20GetSettings%20%40%20IsIPAddressBlockAccessPolicyEnforcedOnTenant%20%40%20GetManager%20%40%20RequestRawLoopbackToken%20%40%20IssueLoopbackTokenString%20%40%20IssueLoopbackTokenString%20%40%20GetAccessToken%20%40%20GetAccessToken%20%40%20GetWOPITargetInternalForDocAspx%20%40%20GetWOPITargetInternalEx%20%40%20OnLoadHelper%20%40%20OnLoad%20%40%20OnLoad%20%40%20LoadRecursive%20%40%20ProcessRequestMain%20%40%20ProcessRequest%20%40%20ProcessRequest%20%40%20ProcessRequest%20%40%20System.Web.HttpApplication.IExecutionStep.Execute%20%40%20ExecuteStepImpl%20%40%20ExecuteStep%20%40%20ResumeSteps%20%40%20BeginProcessRequestNotification%20%40%20ProcessRequestNotificationPrivate%20%40%20ProcessRequestNotificationHelper%20%40%20ProcessRequestNotification%20%40%20MgdIndicateCompletion%20%40%20MgdIndicateCompletion%20%40%20ProcessRequestNotificationHelper%20%40%20ProcessRequestNotification'.%26nbsp%3B95c2269f-ca50-70d7-ef25-ca6c123e8d13%3CBR%20%2F%3E12%2F31%2F2019%2011%3A25%3A17.01%26nbsp%3Bw3wp.exe%20(0x159C)%26nbsp%3B0x0A18%26nbsp%3BSharePoint%20Foundation%26nbsp%3BApplication%20Authentication%26nbsp%3Baiv3e%26nbsp%3BHigh%26nbsp%3BSelf-issued%20token%20request%20for%20'wopi%2Fdoclib.test.cmmp.hksarg%40d6eb933a-94ee-4862-869f-d3e17836ad77'%20succeeded.%26nbsp%3B95c2269f-ca50-70d7-ef25-ca6c123e8d13%3CBR%20%2F%3E12%2F31%2F2019%2011%3A25%3A17.07%26nbsp%3Bw3wp.exe%20(0x159C)%26nbsp%3B0x0A18%26nbsp%3BSharePoint%20Foundation%26nbsp%3BDatabase%26nbsp%3Badhpr%26nbsp%3BHigh%26nbsp%3BLeaving%20Monitored%20Scope%3A%20(VqueryEngine)%20Execution%20Time%3D42.7944%3B%20CPU%20Milliseconds%3D29%3B%20SQL%20Query%20Count%3D3%3B%20Parent%3DSPRequest.GetListItemDataWithCallback2%26nbsp%3B95c2269f-ca50-70d7-ef25-ca6c123e8d13%3CBR%20%2F%3E12%2F31%2F2019%2011%3A25%3A17.07%26nbsp%3Bw3wp.exe%20(0x159C)%26nbsp%3B0x0A18%26nbsp%3BSharePoint%20Foundation%26nbsp%3BDatabase%26nbsp%3Badhpr%26nbsp%3BHigh%26nbsp%3B____SQL%20Query%20Count%3D3%26nbsp%3B95c2269f-ca50-70d7-ef25-ca6c123e8d13%3CBR%20%2F%3E12%2F31%2F2019%2011%3A25%3A17.07%26nbsp%3Bw3wp.exe%20(0x159C)%26nbsp%3B0x0A18%26nbsp%3BSharePoint%20Foundation%26nbsp%3BGeneral%26nbsp%3Bf6l7%26nbsp%3BHigh%26nbsp%3BLeaving%20Monitored%20Scope%3A%20(SPRequest.GetListItemDataWithCallback2)%20Execution%20Time%3D51.4125%3B%20CPU%20Milliseconds%3D34%3B%20SQL%20Query%20Count%3D4%3B%20Parent%3DEnsureListItemsData%26nbsp%3B95c2269f-ca50-70d7-ef25-ca6c123e8d13%3CBR%20%2F%3E12%2F31%2F2019%2011%3A25%3A17.07%26nbsp%3Bw3wp.exe%20(0x159C)%26nbsp%3B0x0A18%26nbsp%3BSharePoint%20Foundation%26nbsp%3BMonitoring%26nbsp%3Bb4ly%26nbsp%3BHigh%26nbsp%3BLeaving%20Monitored%20Scope%3A%20(EnsureListItemsData)%20Execution%20Time%3D51.8612%3B%20CPU%20Milliseconds%3D35%3B%20SQL%20Query%20Count%3D4%3B%20Parent%3DRequest%20(GET%3Ahttp%3A%2F%2Fvms3tstpssp02%3A11465%2Fpersonal%2Ftestcmmp_psadmin1%2F_layouts%2F15%2FWopiFrame2.aspx%3Fsourcedoc%3D%7BC1AABD1B-68D6-41E9-BA3D-94F42ADECA67%7D%26amp%3Bfile%3DDocument.docx%26amp%3Baction%3Ddefault%26amp%3BCT%3D1577762715128%26amp%3BOR%3DDocLib)%26nbsp%3B95c2269f-ca50-70d7-ef25-ca6c123e8d13%3CBR%20%2F%3E12%2F31%2F2019%2011%3A25%3A17.11%26nbsp%3Bw3wp.exe%20(0x159C)%26nbsp%3B0x0A18%26nbsp%3BSharePoint%20Foundation%26nbsp%3BGeneral%26nbsp%3Bagxkz%26nbsp%3BHigh%26nbsp%3Bcalling%20GetCurrentGenericSetupPath%20for%20a%20versioned%20path%3A%20TEMPLATE%5CLAYOUTS%26nbsp%3B95c2269f-ca50-70d7-ef25-ca6c123e8d13%3CBR%20%2F%3E%3C%2FFONT%3E%3CBR%20%2F%3E%3CSTRONG%3EOOS%20Errors%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CFONT%20color%3D%22%23006000%22%3E12%2F31%2F2019%2011%3A20%3A34.82%26nbsp%3Bw3wp.exe%20(0x25B0)%26nbsp%3B0x2798%26nbsp%3BOffice%20Online%26nbsp%3BCollab%20Sandboxing%26nbsp%3Baoogc%26nbsp%3BUnexpected%26nbsp%3BHttpRequestAsync%2C%20(Wopi%2CCheckFile%2CWACSERVER)%20no%20response%20%5BWebExceptionStatus%3ASendFailure%2C%20url%3AUREDACTED_(wf8xVbqDC7awHtcf3zqMnC4pjLFirfIAo8j6EibRD1A%3D)%5D%26nbsp%3B4bc2269f-da31-70d7-ef25-c57d92ca0f79%3CBR%20%2F%3E12%2F31%2F2019%2011%3A20%3A34.82%26nbsp%3Bw3wp.exe%20(0x25B0)%26nbsp%3B0x27B4%26nbsp%3BOffice%20Online%26nbsp%3BCollab%20Sandboxing%26nbsp%3Bbuqbb%26nbsp%3BMonitorable%26nbsp%3B%7B%22WacRequestId%22%3A%22a2262c82-8102-4420-9a9a-e28ba2ae2f80%22%2C%22httpStatusCode%22%3A%22Unused%22%2C%22logPrefix%22%3A%22Wopi%2CCheckFile%2CWACSERVER%22%2C%22requestDurationMs%22%3A%2220%22%2C%22bytesRead%22%3A%220%22%2C%22bytesWritten%22%3A%220%22%7D%26nbsp%3B4bc2269f-da31-70d7-ef25-c57d92ca0f79%3CBR%20%2F%3E12%2F31%2F2019%2011%3A20%3A34.82%26nbsp%3Bw3wp.exe%20(0x25B0)%26nbsp%3B0x27B4%26nbsp%3BOffice%20Online%26nbsp%3BCollab%20Sandboxing%26nbsp%3Badhsk%26nbsp%3BUnexpected%26nbsp%3BWOPI%20CheckFile%3A%20Catch-All%20Failure%20%5Bexception%3AMicrosoft.Office.Web.Common.EnvironmentAdapters.UnexpectedErrorException%3A%20HttpRequest%20failed.%20---%26gt%3B%20Microsoft.Office.Web.Common.HttpRequestAsyncException%3A%20No%20Response%20in%20WebException%20---%26gt%3B%20System.Net.WebException%3A%20The%20underlying%20connection%20was%20closed%3A%20An%20unexpected%20error%20occurred%20on%20a%20send.%20---%26gt%3B%20System.IO.IOException%3A%20Unable%20to%20read%20data%20from%20the%20transport%20connection%3A%20An%20existing%20connection%20was%20forcibly%20closed%20by%20the%20remote%20host.%20---%26gt%3B%20System.Net.Sockets.SocketException%3A%20An%20existing%20connection%20was%20forcibly%20closed%20by%20the%20remote%20host%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20System.Net.Sockets.Socket.EndReceive(IAsyncResult%20asyncResult)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20System.Net.Sockets.NetworkStream.EndRead(IAsyncResult%20asyncResult)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20---%20End%20of%20inner%20exception%20stack%20trace%20---%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20System.Net.TlsStream.EndWrite(IAsyncResult%20asyncResult)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult%20ar)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20---%20End%20of%20inner%20exception%20stack%20trace%20---%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20System.Net.HttpWebRequest.EndGetResponse(IAsyncResult%20asyncResult)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Microsoft.Office.Web.Common.HttpRequestAsync.GetResponseCallback(IAsyncResult%20asyncResult)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20---%20End%20of%20inner%20exception%20stack%20trace%20---%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20---%20End%20of%20inner%20exception%20stack%20trace%20---%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Microsoft.Office.Web.Apps.Common.WopiTalky.AddHostResponseDataAndThrow(Exception%20exception%2C%20HttpRequestAsyncResult%20result)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Microsoft.Office.Web.Apps.Common.WopiTalky.LogAndThrowWireException(HttpRequestAsyncResult%20result%2C%20HttpRequestAsyncException%20delayedException)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Microsoft.Office.Web.Apps.Common.WopiDocument.LogAndThrowWireException(HttpRequestAsyncResult%20result%2C%20HttpRequestAsyncException%20delayedException)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Microsoft.Office.Web.Common.HttpRequestAsync.End()%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Microsoft.Office.Web.Apps.Common.WopiDocument.CheckWopiFile()%5D%26nbsp%3B4bc2269f-da31-70d7-ef25-c57d92ca0f79%3CBR%20%2F%3E12%2F31%2F2019%2011%3A20%3A34.82%26nbsp%3Bw3wp.exe%20(0x25B0)%26nbsp%3B0x27B4%26nbsp%3BServices%20Infrastructure%26nbsp%3BServices%20Infrastructure%20Br%20Err%26nbsp%3Bb66ra%26nbsp%3BUnexpected%26nbsp%3BFileUnknownException%20with%20InnerException%20from%20CheckBaseDocument%2C%20InnerException%3A%20Microsoft.Office.Web.Common.EnvironmentAdapters.UnexpectedErrorException%3A%20HttpRequest%20failed.%20---%26gt%3B%20Microsoft.Office.Web.Common.HttpRequestAsyncException%3A%20No%20Response%20in%20WebException%20---%26gt%3B%20System.Net.WebException%3A%20The%20underlying%20connection%20was%20closed%3A%20An%20unexpected%20error%20occurred%20on%20a%20send.%20---%26gt%3B%20System.IO.IOException%3A%20Unable%20to%20read%20data%20from%20the%20transport%20connection%3A%20An%20existing%20connection%20was%20forcibly%20closed%20by%20the%20remote%20host.%20---%26gt%3B%20System.Net.Sockets.SocketException%3A%20An%20existing%20connection%20was%20forcibly%20closed%20by%20the%20remote%20host%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20System.Net.Sockets.Socket.EndReceive(IAsyncResult%20asyncResult)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20System.Net.Sockets.NetworkStream.EndRead(IAsyncResult%20asyncResult)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20---%20End%20of%20inner%20exception%20stack%20trace%20---%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20System.Net.TlsStream.EndWrite(IAsyncResult%20asyncResult)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult%20ar)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20---%20End%20of%20inner%20exception%20stack%20trace%20---%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20System.Net.HttpWebRequest.EndGetResponse(IAsyncResult%20asyncResult)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Microsoft.Office.Web.Common.HttpRequestAsync.GetResponseCallback(IAsyncResult%20asyncResult)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20---%20End%20of%20inner%20exception%20stack%20trace%20---%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20---%20End%20of%20inner%20exception%20stack%20trace%20---%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Microsoft.Office.Web.Apps.Common.WopiTalky.AddHostResponseDataAndThrow(Exception%20exception%2C%20HttpRequestAsyncResult%20result)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Microsoft.Office.Web.Apps.Common.WopiTalky.LogAndThrowWireException(HttpRequestAsyncResult%20result%2C%20HttpRequestAsyncException%20delayedException)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Microsoft.Office.Web.Apps.Common.WopiDocument.LogAndThrowWireException(HttpRequestAsyncResult%20result%2C%20HttpRequestAsyncException%20delayedException)%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Microsoft.Office.Web.Common.HttpRequestAsync.End()%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20at%20Microsoft.Office.Web.Apps.Common.WopiDocument.CheckWopiFile()%26nbsp%3B4bc2269f-da31-70d7-ef25-c57d92ca0f79%3CBR%20%2F%3E12%2F31%2F2019%2011%3A20%3A34.82%26nbsp%3Bw3wp.exe%20(0x25B0)%26nbsp%3B0x27B4%26nbsp%3BServices%20Infrastructure%26nbsp%3BServices%20Infrastructure%20Br%20Err%26nbsp%3Bby88d%26nbsp%3BUnexpected%26nbsp%3BFileUnknownException%20while%20loading%20the%20app.%20%5BFileSourceId%3A%20-1088102096%5D%20%5BClusterId%3A%200%5D%20%5BExtraErrorInfo%3A%20%5D%26nbsp%3B4bc2269f-da31-70d7-ef25-c57d92ca0f79%3CBR%20%2F%3E12%2F31%2F2019%2011%3A20%3A34.84%26nbsp%3Bw3wp.exe%20(0x25B0)%26nbsp%3B0x27B4%26nbsp%3BServices%20Infrastructure%26nbsp%3BServices%20Infrastructure%20Br%20Err%26nbsp%3Bcmgyy%26nbsp%3BMonitorable%26nbsp%3BUnable%20to%20retrieve%20file%20name%20from.%26nbsp%3B4bc2269f-da31-70d7-ef25-c57d92ca0f79%3CBR%20%2F%3E12%2F31%2F2019%2011%3A20%3A34.84%26nbsp%3Bw3wp.exe%20(0x25B0)%26nbsp%3B0x27B4%26nbsp%3BOffice%20Online%26nbsp%3BOffice%20Online%20Resume%20Assistant%26nbsp%3Bcq2gj%26nbsp%3BMonitorable%26nbsp%3BDocChat%20Disabled%3AbaseDoc%20null%26nbsp%3B4bc2269f-da31-70d7-ef25-c57d92ca0f79%3CBR%20%2F%3E%3C%2FFONT%3E%3CFONT%20color%3D%22%23b09600%22%3E%3CBR%20%2F%3E%3C%2FFONT%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1083304%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1095262%22%20slang%3D%22en-US%22%3ERe%3A%20Opening%20documents%20by%20using%20OOS%20--%26gt%3B%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1095262%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F180999%22%20target%3D%22_blank%22%3E%40Will%20%23%20_________%20H%3C%2FA%3E%26nbsp%3B%20From%20the%20script%20you%20posted%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EOWA%20Machine%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E1.)%20Import-Module%20-Name%20OfficeWebApps%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2.)%20New-OfficeWebAppsFarm%20-InternalURL%20%22%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Fhostname.xxx.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttp%3A%2F%2Fhostname.xxx.com%3C%2FA%3E%3CSPAN%3E%22%20-ExternalUrl%20%22%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdnsname.xxx.com%2522%2520%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdnsname.xxx.com%22%26nbsp%3B%3C%2FA%3E%3CSPAN%3E%26nbsp%3B-CertificateName%20%22OfficeWebApps%20Certificate%22%20-AllowHttp%20-EditingEnabled%20-OpenFromURLEnabled%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E3.)%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdnsname.xxx.com%2Fhosting%2Fdiscovery%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdnsname.xxx.com%2Fhosting%2Fdiscovery%3C%2FA%3E%3CSPAN%3E%26nbsp%3B-%26gt%3B%20work%20properly.%20everything%20works%20fine.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ESharePoint%20Side%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E1.)%20New-SPWOPIBinding%20-ServerName%20%22%3C%2FSPAN%3E%3CFONT%20color%3D%22%23006000%22%3Ehostname.xxx.com%3C%2FFONT%3E%3CSPAN%3E%22%20-AllowHttp%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E2.)%20Set-SPWOPIZone%20-Zone%20%22external-https%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EOn%20the%20SP%20side%20you%20are%20using%20the%20OOS%20internal%20URL%20but%20setting%20the%20WOPIZone%20to%20External%2C%20I%20think%20that%20is%20where%20you%20issue%20is.%26nbsp%3B%20Also%20if%20you%20are%20using%20HTTPS%2C%20like%20you%20should%2C%20you%20can%20leave%20out%20the%20-AllowHTTP.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1095921%22%20slang%3D%22en-US%22%3ERe%3A%20Opening%20documents%20by%20using%20OOS%20--%26gt%3B%20Error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1095921%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20JoshMcClanahan%2C%3CBR%20%2F%3EI%20solved%20the%20issue%20yesterday%20and%20found%20out%20the%20main%20cause.%20normally%20the%20script%20came%20from%20another%20TechNet%20forum%20and%20microsoft.%20I%20do%20a%20test%20this%20script%20on%20my%20labs%20(2%20environments)%20and%20it%20work%20properly%20regardless%20of%20HTTP%20or%20HTTPS.%20It%20is%20weird%20when%20my%20site%20host%20comes%20along%20with%20HTTPS%2C%20cannot%20work.%20I%20looked%20into%20the%20issue%2C%20finally%20the%20SharePoint%20AAM%20is%20the%20big%20problem.%20so%20I%20change%20the%20configuration%20from%20AAM%2C%20and%20work%20fine.%3CBR%20%2F%3Eanyway%20thanks%20for%20your%20reply.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Hi there,
Does anyone have any idea on this issue?? Thanks.


My Environment:

I create two SharePoint Server in the same farm. One is WFE, another one is Application. There are two SharePoint Sites inside.
1.) One is Publishing Portal (http://hostname:2975)
2.) Another is My site host (http://hostname:29845). I also EXTENDED this site for extranet and there will be a record in AAM. the record will be "https://doclib.xxx.xxx:443" and personal site URL will be https://doclib.xxx.xxx:443/personal/domain_username
 
I alos create an OOS farm (TWO OOS Servers) by using the following commands:


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OWA Machine
===============
1.) Import-Module -Name OfficeWebApps
2.) New-OfficeWebAppsFarm -InternalURL "http://hostname.xxx.com" -ExternalUrl "https://dnsname.xxx.com"  -CertificateName "OfficeWebApps Certificate" -AllowHttp -EditingEnabled -OpenFromURLEnabled
3.) https://dnsname.xxx.com/hosting/discovery -> work properly. everything works fine.
 
SharePoint Side
================
1.) New-SPWOPIBinding -ServerName "hostname.xxx.com" -AllowHttp
2.) Set-SPWOPIZone -Zone "external-https"
 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
TESTING::
 
1.) CONNECT TO Publishing Portal (http://hostname:2975) and Open Document in any Document Libraries :: To open a document by using OOS :: OK -> Success -> NO any issues
2.) CONNECT TO http://hostname:29845 or https://doclib.xxx.xxx:443/personal/domain_username and Open Document in any Document Libraries :: To open a document by using OOS :: Error -> Failed.  the erroe is the shown below:

 

IMG_9690.jpg

 

SharePoint Errors:

Claims Windows Sign-In: Sending 401 for request 'http://vms3tstpssp02:11465/personal/testcmmp_psadmin1/_layouts/15/WopiFrame2.aspx?sourcedoc={1F90A54B-5BC8-4AD8-85FB-BE06E4FE1D6F}&file=testing document.docx&action=default&CT=1577699145592&OR=DocLib' because the user is not authenticated and resource requires authentication.
Sending HTTP response 401 - text/plain:401 UNAUTHORIZED.
 
12/31/2019 11:25:16.94 w3wp.exe (0x159C) 0x0A18 SharePoint Foundation DistributedCache air4a Monitorable Token Cache: Failed to get token from distributed cache. Key: '0).w|s-1-5-21-1995047987-106792918-3988336842-100608'.(This is expected during the process warm up or if data cache Initialization is getting done by some other thread). 95c2269f-ca50-70d7-ef25-ca6c123e8d13
12/31/2019 11:25:16.94 w3wp.exe (0x159C) 0x0A18 SharePoint Foundation DistributedCache air4b Monitorable Token Cache: Reverting to local cache to get the token. Key: '0).w|s-1-5-21-1995047987-106792918-3988336842-100608'. 95c2269f-ca50-70d7-ef25-ca6c123e8d13
12/31/2019 11:25:16.96 w3wp.exe (0x159C) 0x0A18 SharePoint Foundation WOPI bjupx Monitorable WopiFrame2: User does not have access to document. Mode is embed. Check for ClientRender Sign-in 95c2269f-ca50-70d7-ef25-ca6c123e8d13
12/31/2019 11:25:16.96 w3wp.exe (0x159C) 0x0A18 SharePoint Foundation General bjupw Monitorable ClientRenderBasedContent: Last modified date provided with KillSwitchId: 05/27/2016, Label provided with KillSwitchId: STS_SupportClientRenderWOPI 95c2269f-ca50-70d7-ef25-ca6c123e8d13
12/31/2019 11:25:16.96 w3wp.exe (0x159C) 0x0A18 SharePoint Foundation General bjupv Monitorable ClientRenderBasedContent: DisableContents Render 95c2269f-ca50-70d7-ef25-ca6c123e8d13
12/31/2019 11:25:16.99 w3wp.exe (0x159C) 0x0A18 SharePoint Foundation General bxkxg High SPSiteSubscriptionSettings: ctor: UseCachedValues 'UnAssigned' for tenant '00000000-0000-0000-0000-000000000000' - not using the cache in call-stack ' @ GetStackTrace @ .ctor @ GetSettings @ IsIPAddressBlockAccessPolicyEnforcedOnTenant @ GetManager @ RequestRawLoopbackToken @ IssueLoopbackTokenString @ IssueLoopbackTokenString @ GetAccessToken @ GetAccessToken @ GetWOPITargetInternalForDocAspx @ GetWOPITargetInternalEx @ OnLoadHelper @ OnLoad @ OnLoad @ LoadRecursive @ ProcessRequestMain @ ProcessRequest @ ProcessRequest @ ProcessRequest @ System.Web.HttpApplication.IExecutionStep.Execute @ ExecuteStepImpl @ ExecuteStep @ ResumeSteps @ BeginProcessRequestNotification @ ProcessRequestNotificationPrivate @ ProcessRequestNotificationHelper @ ProcessRequestNotification @ MgdIndicateCompletion @ MgdIndicateCompletion @ ProcessRequestNotificationHelper @ ProcessRequestNotification'. 95c2269f-ca50-70d7-ef25-ca6c123e8d13
12/31/2019 11:25:17.01 w3wp.exe (0x159C) 0x0A18 SharePoint Foundation Application Authentication aiv3e High Self-issued token request for 'wopi/doclib.test.cmmp.hksarg@d6eb933a-94ee-4862-869f-d3e17836ad77' succeeded. 95c2269f-ca50-70d7-ef25-ca6c123e8d13
12/31/2019 11:25:17.07 w3wp.exe (0x159C) 0x0A18 SharePoint Foundation Database adhpr High Leaving Monitored Scope: (VqueryEngine) Execution Time=42.7944; CPU Milliseconds=29; SQL Query Count=3; Parent=SPRequest.GetListItemDataWithCallback2 95c2269f-ca50-70d7-ef25-ca6c123e8d13
12/31/2019 11:25:17.07 w3wp.exe (0x159C) 0x0A18 SharePoint Foundation Database adhpr High ____SQL Query Count=3 95c2269f-ca50-70d7-ef25-ca6c123e8d13
12/31/2019 11:25:17.07 w3wp.exe (0x159C) 0x0A18 SharePoint Foundation General f6l7 High Leaving Monitored Scope: (SPRequest.GetListItemDataWithCallback2) Execution Time=51.4125; CPU Milliseconds=34; SQL Query Count=4; Parent=EnsureListItemsData 95c2269f-ca50-70d7-ef25-ca6c123e8d13
12/31/2019 11:25:17.07 w3wp.exe (0x159C) 0x0A18 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope: (EnsureListItemsData) Execution Time=51.8612; CPU Milliseconds=35; SQL Query Count=4; Parent=Request (GET:http://vms3tstpssp02:11465/personal/testcmmp_psadmin1/_layouts/15/WopiFrame2.aspx?sourcedoc={C1AABD1B-68D6-41E9-BA3D-94F42ADECA67}&file=Document.docx&action=default&CT=1577762715128&OR=DocLib) 95c2269f-ca50-70d7-ef25-ca6c123e8d13
12/31/2019 11:25:17.11 w3wp.exe (0x159C) 0x0A18 SharePoint Foundation General agxkz High calling GetCurrentGenericSetupPath for a versioned path: TEMPLATE\LAYOUTS 95c2269f-ca50-70d7-ef25-ca6c123e8d13

OOS Errors:
 
12/31/2019 11:20:34.82 w3wp.exe (0x25B0) 0x2798 Office Online Collab Sandboxing aoogc Unexpected HttpRequestAsync, (Wopi,CheckFile,WACSERVER) no response [WebExceptionStatus:SendFailure, url:UREDACTED_(wf8xVbqDC7awHtcf3zqMnC4pjLFirfIAo8j6EibRD1A=)] 4bc2269f-da31-70d7-ef25-c57d92ca0f79
12/31/2019 11:20:34.82 w3wp.exe (0x25B0) 0x27B4 Office Online Collab Sandboxing buqbb Monitorable {"WacRequestId":"a2262c82-8102-4420-9a9a-e28ba2ae2f80","httpStatusCode":"Unused","logPrefix":"Wopi,CheckFile,WACSERVER","requestDurationMs":"20","bytesRead":"0","bytesWritten":"0"} 4bc2269f-da31-70d7-ef25-c57d92ca0f79
12/31/2019 11:20:34.82 w3wp.exe (0x25B0) 0x27B4 Office Online Collab Sandboxing adhsk Unexpected WOPI CheckFile: Catch-All Failure [exception:Microsoft.Office.Web.Common.EnvironmentAdapters.UnexpectedErrorException: HttpRequest failed. ---> Microsoft.Office.Web.Common.HttpRequestAsyncException: No Response in WebException ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host     at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)     at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)     --- End of inner exception stack trace ---     at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)     at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)     --- End of inner exception stack trace ---     at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)     at Microsoft.Office.Web.Common.HttpRequestAsync.GetResponseCallback(IAsyncResult asyncResult)     --- End of inner exception stack trace ---     --- End of inner exception stack trace ---     at Microsoft.Office.Web.Apps.Common.WopiTalky.AddHostResponseDataAndThrow(Exception exception, HttpRequestAsyncResult result)     at Microsoft.Office.Web.Apps.Common.WopiTalky.LogAndThrowWireException(HttpRequestAsyncResult result, HttpRequestAsyncException delayedException)     at Microsoft.Office.Web.Apps.Common.WopiDocument.LogAndThrowWireException(HttpRequestAsyncResult result, HttpRequestAsyncException delayedException)     at Microsoft.Office.Web.Common.HttpRequestAsync.End()     at Microsoft.Office.Web.Apps.Common.WopiDocument.CheckWopiFile()] 4bc2269f-da31-70d7-ef25-c57d92ca0f79
12/31/2019 11:20:34.82 w3wp.exe (0x25B0) 0x27B4 Services Infrastructure Services Infrastructure Br Err b66ra Unexpected FileUnknownException with InnerException from CheckBaseDocument, InnerException: Microsoft.Office.Web.Common.EnvironmentAdapters.UnexpectedErrorException: HttpRequest failed. ---> Microsoft.Office.Web.Common.HttpRequestAsyncException: No Response in WebException ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host     at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)     at System.Net.Sockets.NetworkStream.EndRead(IAsyncResult asyncResult)     --- End of inner exception stack trace ---     at System.Net.TlsStream.EndWrite(IAsyncResult asyncResult)     at System.Net.ConnectStream.WriteHeadersCallback(IAsyncResult ar)     --- End of inner exception stack trace ---     at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)     at Microsoft.Office.Web.Common.HttpRequestAsync.GetResponseCallback(IAsyncResult asyncResult)     --- End of inner exception stack trace ---     --- End of inner exception stack trace ---     at Microsoft.Office.Web.Apps.Common.WopiTalky.AddHostResponseDataAndThrow(Exception exception, HttpRequestAsyncResult result)     at Microsoft.Office.Web.Apps.Common.WopiTalky.LogAndThrowWireException(HttpRequestAsyncResult result, HttpRequestAsyncException delayedException)     at Microsoft.Office.Web.Apps.Common.WopiDocument.LogAndThrowWireException(HttpRequestAsyncResult result, HttpRequestAsyncException delayedException)     at Microsoft.Office.Web.Common.HttpRequestAsync.End()     at Microsoft.Office.Web.Apps.Common.WopiDocument.CheckWopiFile() 4bc2269f-da31-70d7-ef25-c57d92ca0f79
12/31/2019 11:20:34.82 w3wp.exe (0x25B0) 0x27B4 Services Infrastructure Services Infrastructure Br Err by88d Unexpected FileUnknownException while loading the app. [FileSourceId: -1088102096] [ClusterId: 0] [ExtraErrorInfo: ] 4bc2269f-da31-70d7-ef25-c57d92ca0f79
12/31/2019 11:20:34.84 w3wp.exe (0x25B0) 0x27B4 Services Infrastructure Services Infrastructure Br Err cmgyy Monitorable Unable to retrieve file name from. 4bc2269f-da31-70d7-ef25-c57d92ca0f79
12/31/2019 11:20:34.84 w3wp.exe (0x25B0) 0x27B4 Office Online Office Online Resume Assistant cq2gj Monitorable DocChat Disabled:baseDoc null 4bc2269f-da31-70d7-ef25-c57d92ca0f79

2 Replies

@Will # _________ H  From the script you posted:

 

OWA Machine
===============
1.) Import-Module -Name OfficeWebApps
2.) New-OfficeWebAppsFarm -InternalURL "http://hostname.xxx.com" -ExternalUrl "https://dnsname.xxx.com"  -CertificateName "OfficeWebApps Certificate" -AllowHttp -EditingEnabled -OpenFromURLEnabled
3.) https://dnsname.xxx.com/hosting/discovery -> work properly. everything works fine.
 
SharePoint Side
================
1.) New-SPWOPIBinding -ServerName "hostname.xxx.com" -AllowHttp
2.) Set-SPWOPIZone -Zone "external-https"

 

On the SP side you are using the OOS internal URL but setting the WOPIZone to External, I think that is where you issue is.  Also if you are using HTTPS, like you should, you can leave out the -AllowHTTP.

Hi JoshMcClanahan,
I solved the issue yesterday and found out the main cause. normally the script came from another TechNet forum and microsoft. I do a test this script on my labs (2 environments) and it work properly regardless of HTTP or HTTPS. It is weird when my site host comes along with HTTPS, cannot work. I looked into the issue, finally the SharePoint AAM is the big problem. so I change the configuration from AAM, and work fine.
anyway thanks for your reply.