Fixing Office Web Apps Network Connectivity has been lost error

If you’re getting “Network connectivity has been lost. Check your network connection or try again later.” error while viewing Word or PowerPoint files in browser and you are sure that there is no network issue, it can be solved by increasing the permission level of service applications. You can run the following PowerShell script to apply this changes. You have to do an “IISRESET” after running this script to make changes become effective.

Remove-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue
Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue

Write-Host -ForegroundColor White "--------------------------------------------------------------"
Write-Host -Foregroundcolor green "Fixing Word Viewing Service Application"
$e = Get-SPServiceApplication | where {$_.TypeName.Equals("Word Viewing Service Application")}
$e.WordServerIsSandboxed = $false
Write-Host -Foregroundcolor green "Word Viewing Service Application is fixed"
Write-Host -ForegroundColor White "--------------------------------------------------------------"
Write-Host -Foregroundcolor green "Fixing PowerPoint Service Application"
Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -EnableSandboxedViewing $false
Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -EnableSandboxedEditing $false
Write-Host -Foregroundcolor green "PowerPoint Service Application is fixed"
Write-Host -ForegroundColor White "--------------------------------------------------------------"

[stextbox id=”warning” caption=”Note”]
Office Web Apps must be installed on a farm which uses a domain controller. For standalone installations this fix will not work. Before running this script please check the name of “Word Viewing Service Application“, it may differ in your system. You can check it either from central administration site or by running “Get-SPServiceApplication” command.
[/stextbox]

Leave a comment

Your email address will not be published. Required fields are marked *

%d bloggers like this: