Hello,
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
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.
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
We have shared the docker sample in the below Git-hub link,
https://github.com/SyncfusionExamples/PdfViewer-Server
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.
https://hub.docker.com/r/syncfusion/pdfviewer-server
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.