We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Error on Ubuntu


I'm using Angular PdfViewer with local controller.

This works fine on Windows but I ran my project on Ubuntu and got this error message

 "Web-service is not listening. .... . Please start the web-service to continue".

 Could you please guide me, how can I solve this.

best regards

Mohammad Abbasi

3 Replies

VV Visvesvar Venkatesan Syncfusion Team March 9, 2023 02:37 PM UTC

Kindly follow the below documentation to resolve the issue in Ubuntu environment.

Documentation: https://blazor.syncfusion.com/documentation/pdfviewer/getting-started/wsl-application

In the documentation:

Step 3: Install the dotnet framework for running the WSL (Windows Subsystem for Linux) in the project by running the following code one by one. 

wget https://packages.microsoft.com/config/ubuntu/22.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb rm packages-microsoft-prod.deb sudo apt-get update && \ sudo apt-get install -y dotnet-sdk-6.0

Open the Ubuntu comment window and type the following comments.

sudo cp -u /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libdl.so 

Blazor PDF Viewer uses libdl.so. It has a different name in different WSL Linux versions. To ensure its presence, check the following \wsl.localhost\Ubuntu\usr\lib\x86_64-linux-gnu location.

If it is in a different name like libdl.so.4, then change the comment as follows.

sudo cp -u /lib/x86_64-linux-gnu/libdl.so.4 /lib/x86_64-linux-gnu/libdl.so 

Then, in the Ubuntu command window, run the following commands one by one to install all necessary Blazor PDF Viewer dependencies for a Linux run.

sudo apt-get install libfontconfig1 sudo apt-get update && apt-get install -y --allow-unauthenticated libgdiplus libc6-dev libx11-dev sudo apt-get update sudo apt install libgdiplus 

NOTE: Kindly install the Linux package and remove the windows package while hosting the web service.

MA Mohammad Abbasi replied to Visvesvar Venkatesan March 16, 2023 07:54 AM UTC

Hi ,

 thanks for the answer.

Actually I want to run my project in Docker container as ubuntu with WSL.

 I installed Linux Package instead of Windowos Package but that doesn't work.

 Interesting is that ,  that works perfectly with Windows image but in Docker as ubuntu image not. 

Would you perhaps have a solution for this.

best regards

Mohammad Abbasi

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team March 17, 2023 05:13 PM UTC

We have shared the docker sample in the below Git-hub link,


How to run the docker image:

Also, we already have the prebuild docker image. We have shared the details for this in the below link. You can try this also.


Try this and revert to us with the following details, if you have any concerns on this. This will be helpful for us to analyze further and provide the details.

  • Docker version
  • .NET framework version.
  • Console and network tab error details.

Live Chat Icon For mobile
Up arrow icon