Skip to content

Office Online Server support ends 31 Dec 2026: 43 days left. Read the migration guide →

Office Render Engine

SharePoint document preview not working? A WOPI troubleshooting guide

Diagnose missing SharePoint previews: check browser DNS, discovery, WOPI bindings, zones, permissions and proof keys before changing your farm.

By Sergej Schwabauer

· Updated 28 October 2026 · 8 min read

If SharePoint document previews are not working, first identify the failing connection: browser to viewer, SharePoint to discovery, or viewer back to SharePoint. A working SharePoint page does not prove that the browser can reach the preview server. Check one known-good DOCX with an ordinary library user before rebuilding WOPI bindings.

This guide is for SharePoint Server Subscription Edition with Office Online Server or a replacement WOPI client. It does not diagnose SharePoint Online. Commands below inspect configuration; they do not remove bindings, disable HTTPS or restart services. Run SharePoint cmdlets in the SharePoint Management Shell with the appropriate farm permissions, and Windows network checks on the machine named in each step.

Author: Sergej Schwabauer leads SharePoint and WOPI integration at AURUM GmbH, which develops Office Render Engine. Example outputs are expected shapes, not captures from your farm.

Start with the symptom

What you seeFirst place to investigate
File downloads instead of opening in the browserLibrary opening settings and the extension's WOPI binding
Viewer hostname cannot be foundDNS on the affected user's computer
Blank frame or refused connectionBrowser console, certificate trust and framing policy
All formats fail for everyoneDiscovery, selected WOPI zone, service availability and callback access
Only one user failsPermissions, System Account and authentication route
Only search hover previews failPreview actions and search integration, not just the document view action
Only one file failsSupported format, encryption, size limits or a rendering defect

Record the time, affected URL, file extension, account type and exact error. Open a small DOCX that another ordinary user can view. If that works but one complex workbook fails, troubleshoot the file rather than changing the farm.

1. Check the viewer hostname from the affected computer

In browser developer tools, identify the viewer hostname from the failed request. Use only the hostname in the following Windows commands; do not copy access tokens into a support ticket.

Resolve-DnsName viewer.example.com -Type A -DnsOnly
Test-NetConnection viewer.example.com -Port 443

Expected: an address appropriate to your network and TcpTestSucceeded : True. A successful TCP test proves a connection to the port, not trusted TLS or a working preview. IPv6-only environments should also check the AAAA record instead of relying on this A-record example.

Open https://viewer.example.com/hosting/discovery in the affected browser. A certificate warning, sign-in loop or DNS error is a useful finding even when discovery works from the SharePoint server. Correct the specific DNS, routing or certificate-chain problem through your network team's normal process. Retest on the same client and network.

An internal incident: our server checks returned successful HTTPS responses while a Wi-Fi user's preview failed. The internal and router resolvers gave different answers, and a short SharePoint URL also differed from the viewer's permitted framing origin. The user later confirmed resolution after the client access configuration was corrected. This was a documented deployment incident, not proof that every blank preview has a DNS cause.

2. Check discovery from a SharePoint server

Microsoft describes the discovery endpoint and its XML response. From a SharePoint server, inspect the replacement's advertised zones and actions:

$discoveryUrl = 'https://viewer.example.com/hosting/discovery'
$response = Invoke-WebRequest -Uri $discoveryUrl -UseBasicParsing
$response.StatusCode
[xml]$discovery = $response.Content
$discovery.'wopi-discovery'.'net-zone' | Select-Object name

Expected: status 200, parseable XML with a wopi-discovery element, and at least one zone supported by your product. An HTML login page with status 200 is not a valid discovery response. A certificate failure must be fixed by correcting the name, validity or trust chain; skipping certificate validation hides the problem.

Inspect the discovery actions for the affected extension; replace docx in this read-only projection as needed:

$discovery.'wopi-discovery'.'net-zone' | ForEach-Object {
  $discoveryZone = $_.name
  $_.app.action | Where-Object { $_.ext -eq 'docx' } |
    Select-Object @{Name='Zone'; Expression={$discoveryZone}}, name, ext, urlsrc
}

Expected: rows with Zone, action name, ext and urlsrc for DOCX, including the required viewing action in the intended zone. Names and row counts depend on the product. No rows means this discovery document advertises no DOCX actions; it does not establish the farm's binding state. A product advertising DOCX viewing does not necessarily advertise editing, PDF or search preview actions. The urlsrc can contain placeholders: check its HTTPS origin here and use the actual launched browser request to test reachability.

3. Match the binding to the farm's WOPI zone

Run these read-only checks in the SharePoint Management Shell:

$zone = Get-SPWOPIZone
$zone
Get-SPWOPIBinding -Extension docx |
  Select-Object Application, Extension, Action, ServerName, Zone
Get-SPWOPIBinding -Extension docx -WOPIZone $zone |
  Select-Object Application, Extension, Action, ServerName, Zone

Expected: the intended server and required view action are present for DOCX in the selected zone. Exact binding counts depend on the product; there is no universal correct number. No result from the last command means no matching DOCX binding was returned for that zone. It does not identify why the binding is absent.

Compare this with Microsoft's binding reference and the vendor's installation instructions. The WOPI zone is farm-wide, and an unsupported zone prevents operation. internal-https is not automatically correct merely because the viewer is on an internal server.

If a binding or zone needs changing, export the existing state and plan the change and rollback. Use our WOPI migration guide. Do not run Remove-SPWOPIBinding -All as a diagnostic shortcut.

4. Check identity and the callback to SharePoint

User identity and permissions

Use an ordinary user with permission on the library. Microsoft specifically warns that System Account cannot test the OOS connection. An internal installation record also captured SharePoint rejecting that identity before calling the viewer. Changing the binding would not fix that failure.

For ordinary-user failures, compare document permissions and authentication routes with a working user.

Callback connectivity and server time

Correlate SharePoint ULS entries with the viewer's logs at the same time. A viewer callback redirected to a login page is different from a valid WOPI response; status 200 alone is insufficient.

The viewer must reach SharePoint's canonical HTTPS hostname and validate its certificate. Inspect clock status on the servers if logs indicate time-sensitive token or proof failures:

w32tm /query /status

Expected: status consistent with the organisation's approved time source. This command observes time; it does not correct it. Diagnose the recorded failure before changing authentication or time settings.

Proof-key failures

If logs identify a proof-key problem, confirm discovery and the vendor's key configuration. Microsoft's Update-SPWOPIProofKey refreshes stored keys after rotation. A TLS certificate renewal and a proof-key rotation are separate events. Refreshing keys does not repair DNS, permissions or an unsupported zone.

5. Separate browser opening from search previews

If documents open in the library but search hover previews do not, test both paths explicitly. Inspect the actions offered for the extension and whether the replacement supports the required search preview integration. Do not infer that a working view action establishes support for every preview action.

For a blank frame, read the browser's console. A frame-ancestors refusal usually identifies the permitted and actual origins; compare scheme, hostname and port. Use the canonical SharePoint URL and the vendor's documented framing configuration. Do not replace origin restrictions with a wildcard. Mixed-content and certificate errors require their own corrections.

If a file downloads, review the library's advanced document-opening setting and the site collection's Open Documents in Client Applications by Default feature alongside the WOPI binding. Test the ordinary file click and the explicit browser-open action separately. A deliberate desktop-opening policy is not necessarily a broken viewer.

Fix, then prove the same path works

Confirmed findingTargeted correctionRetest
Affected client cannot resolve the advertised viewer nameCorrect managed DNS/routing for that exact nameSame user, client and network; resolve, connect and open the DOCX
Browser rejects the certificateCorrect hostname, expiry or issuing-chain trustDiscovery and document open without a warning
System Account fails before viewer launchSign in as a permitted ordinary userSame library and document, with corresponding logs
Selected zone lacks the required bindingFollow a backed-up, vendor-supported binding/zone changeInspect bindings, then test all retained WOPI providers
Framing policy rejects the SharePoint originUse the canonical URL and an approved exact originSame embedded preview without a console refusal
One unsupported or encrypted file failsConfirm the documented limitation; use the supported workflowA supported sample and the original file, with separate outcomes

The DNS/client-access and System Account examples above have internal incident evidence. Other rows are diagnostic corrections to verify in your environment, not claims of fixes executed on your farm. If the issue persists, provide redacted correlation IDs, timestamps, product builds and reproduction steps to the responsible support team.

Frequently asked questions

Should I restart IIS to fix a missing SharePoint preview?

Not as a first diagnostic step. A restart does not correct a wrong DNS answer, missing binding, unsupported zone or insufficient permission. Follow the identified product-specific repair and its restart requirements.

Does Office Online Server retirement switch previews off automatically?

Microsoft says it will not actively block OOS after retirement. End of support and a broken connection are different issues. See the retirement guide for the support boundary.

Can I keep browser previews without browser editing?

Yes, with a replacement supporting your viewing and preview workflows. Office Render Engine is view-only today; validate your formats and authentication against its known limitations, then test in a separate farm or a pilot restricted to selected file extensions. For a pilot, both clients must support the farm-wide WOPI zone; the changed bindings affect every launch of those extensions in the farm.

Related articles