When I running project on localhost and opening file in document viewer its working as expected, but when I hosted application on IIS its throwing this error "Cannot create decoder for "{Network Path}\PDF2.pdf" file."
I am using this code to initialize document viewer
Code: Select all
// create the document viewer settings
var docViewerSettings = new Vintasoft.Imaging.DocumentViewer.WebDocumentViewerSettingsJS("documentViewerContainer", { annotations: true });
// initialize main menu of document viewer
__initMenu(docViewerSettings);
// initialize side panel of document viewer
__initSidePanel(docViewerSettings);
// initialize image viewer panel of document viewer
__initImageViewerPanel(docViewerSettings);
// create the document viewer
_docViewer = new Vintasoft.Imaging.DocumentViewer.WebDocumentViewerJS(docViewerSettings);
Code: Select all
_docViewer.openFile(filePath);
Thanks,
John