Serving WebViewer via ASP.NET - "Corrupted Reserved Bit" Warning

19 views
Skip to first unread message

Correy Lim

unread,
Mar 12, 2021, 6:27:54 PM3/12/21
to PDFTron WebViewer
Q:

WebViewer is stuck showing an infinitely loading spinner, and in the console there is an exception similar to:

Uncaught TypeError: ua is not a function
at Object.e [as decompressFunction] (CoreControls.js:571)
at n (CoreControls.js:569)
at XMLHttpRequest.r.onload (CoreControls.js:570)

And a warning is being printed to the console:

Corrupted reserved bit

How do I resolve this?

A:

Please ensure that the server serving the WebViewer files to the client have their MIME-Types properly defined, per this guide:

https://www.pdftron.com/documentation/web/faq/mime-types/

If you are serving WebViewer from an ASP.NET Server, see:

https://www.pdftron.com/documentation/web/faq/blazor-integration-issues/#aspnet-server

Once this has been added to your server, ensure that your browser is not retrieving the requisite WebViewer files from disk cache (i.e. try loading WebViewer again in an Incognito/Private, or clear your browser's cache)
Reply all
Reply to author
Forward
0 new messages