Trying to load PdfViewer fails on server

I have a piece of code that loads a PDF Viewer which fails with this error:
2018-09-17 17:44:34,498 [9f3d5f4d] ERROR JobBusinessLogic.JobController [(null)] - Method not found: 'Void Syncfusion.Windows.Forms.PdfViewer.PdfDocumentView.Load(Syncfusion.Pdf.Parsing.PdfLoadedDocument)'.
System.MissingMethodException: Method not found: 'Void Syncfusion.Windows.Forms.PdfViewer.PdfDocumentView.Load(Syncfusion.Pdf.Parsing.PdfLoadedDocument)'.

when calling into the method where this line is located:
pdfViewer.Load(pdfLoadDoc);

This works fine on my Windows 10 machine in Visual Studio 2017, but when built and put on the server (Windows 2012 R2) as a Windows Service I get the above error. This is version 13.3.0.7 of SyncFusion. I have the SyncFusion components installed on this server as well (it's also the build server). Other SyncFusion calls work, it's just this method that it says is missing.



1 Reply

KK Karthik Krishnaraj Syncfusion Team September 19, 2018 02:47 PM UTC

Hi Hakan, 

Greetings from Syncfusion, 

We were unable to reproduce the reported issue from our side. You can find the sample which we tried from below. Here we ran the windows service application in Windows server 2012 R2 and it works as expected. Can you please modify the provided sample to replicate the issue, so that it will be helpful for us to analyze further and provide better solution. 
Sample Link: 

Regards, 
Karthik. 


Loader.
Up arrow icon