It looks like you are loading the document as a XOD file, has this method worked for you in the past? Can you confirm that you are loading a blob in the loadDocument API as suggested here?
You can also use our offline WebViewer sample project suggested here for reference: