Webservice not running

Hi Syncfusion,

i am struggling with loading a local pdf file into pdfviewer
I receive the message:" Web-service is not listening. PDF Viewer depends on web-service for all it's features. Please start the web service to continue."

I am using Visual Studio 2019 community Edition and asp.net.core 3.1 MVC

I tried all the example code but without any success.


BRGDS
Ernst



6 Replies 1 reply marked as answer

DM Dhivyabharathi Mohan Syncfusion Team January 27, 2021 06:59 AM UTC

Hi Ernst, 
  
Thank you for contacting Syncfusion support. 
  
We were unable to reproduce the reported issue with the provided details. We have shared a simple sample in which we have tried to reproduce the issue in the below link, 
  
  
Note: Kindly ensure to use both Script, CSS files, and packages of the same version in your project.  
  
Kindly try with the provided sample and revert with more details about your issue and the modified sample if you still have concerns. 
  
Regards, 
Dhivya 


Marked as answer

ES Ernst Schomburg January 27, 2021 10:23 AM UTC

Hi Syncfusion,

thanks for your reply,

Your provided code example is working.

In my Project the following code snippet was unknow.

 services.AddControllers().AddNewtonsoftJson(options =>
            {
                // Use the default property (Pascal) casing
                options.SerializerSettings.ContractResolver = new DefaultContractResolver();
            });         

I installed " Microsoft.AspNetCore.Mvc.NewtonsoftJson 3.0 via NuGet and everything is working fine now.

Thanks for your support.

BRGDS
Ernst


ES Ernst Schomburg January 27, 2021 11:24 AM UTC

Hi Syncfusion,

i was judging a little bit to soon.

My Project is working on localhost, but not after deploying  on my Windows Server 2019.

Here I still receive the Message: Web-service is not listening. PDF Viewer depends on web-service for all it's features. Please start the web service to continue."

On localhost everything is working fine.

BRGDS
Ernst


DM Dhivyabharathi Mohan Syncfusion Team January 28, 2021 11:48 AM UTC

Hi Ernst, 
    
We suspect that issue is due to the write access permission is denied in the environment so the reported issue may occur. We will create the pdfium.dll based on the operating system during the runtime of the control. So can you please try copying the below provided x64 and x86 folder and paste inside the folder(bin\Debug\netcoreapp2.1) in your environment to resolve the issue or enable the write permission for that folder?     
 
 
Note: 
·       Kindly use both the client and server-side of the same version in your project  
·       Ensure whether the Pdfium dll will be created in your project during runtime. Else we can also place the pdfium assemblies in any of the production environment locations and refer to the path by using the ReferencePath  API.  
 
 
For example:  
   
If the Pdfium assembly is available in this path C:\Pdfium\x64 or D:\Pdfium\x86, the reference path should be  PdfRenderer.ReferencePath = "C:/";  
   
The parent folder has to be provided as the path in the ReferencePath API.  
   
  
Note: Provide this path in the Load method of the PDFViewerController.cs  
  
PdfRenderer PdfRenderer = new PdfRenderer();  
 PdfRenderer.ReferencePath = @"C:/";  
  
 
Kindly try it and revert with the modified sample, if you still have concerns about this.  
 
Regards, 
Dhivya. 



ES Ernst Schomburg January 29, 2021 02:50 AM UTC

Hi Syncfusion,

I did that and it's working fine now!

Thank you very much!

BRGDS
Ernst 


DM Dhivyabharathi Mohan Syncfusion Team January 29, 2021 06:41 AM UTC

Hi Ernst, 

Thank you for your update. We are glad to know that the reported issue is resolved. 

Regards, 
Dhivya. 


Loader.
Up arrow icon