.NET 5.0.6 (X64)
Linux 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020
| Containerized | true |
| CPU cores | 8 |
| cgroup memory usage | 233218048 |
| Memory, current usage (bytes) | 126418944 |
| Memory, max available (bytes) | 9223372036854771712 |
| Host name | 3b8bce5ef2ff |
| Server IP address | 172.17.0.2 |
Hi Prakash,
I've been trying to get this to work for some time now. It works in the development environment, but when I publish to Azure I get the "blink files are missing" error - even though I have configured them to be copied to the output directory. The same happens with the "fully complete" example provided in your documentation.
Qt Binaries are no good because their standards support is horribly out of date, IE is worse. There has to be an easier way to do this: have you tried it using Azure .net worker service? The "cloud service" option doesn't seem to exist any more.
Rgds,
Ch
Hi,
I understand that it cannot be used directly in an Azure App Service, but the proposed solution to use Linux Docker is also not working for me. Please find attached a sample I prepared to illustrate this: again I have removed the Blink Binaries from the folder for reasons of space in the upload so you will need to replace them.
This application - based on the Syncfusion documentation - works perfectly in the development environment with Docker Desktop. On startup it lists on the home page all the files in the directory in which it's running, so you can see that the BlinkBinariesLinux files are included. Then you can click the convert button at the bottom and it renders a conversion of the Google home page.
When you deploy it to an Azure Linux Docker Container Instance (as per the instructions here: https://www.syncfusion.com/kb/11299/how-to-convert-html-to-pdf-using-blink-in-linux-docker) it runs OK, but when you click the 'Convert' button it shows the error:
{
"message": "Blink files are missing at /app/BlinkBinariesLinux",
"stackTrace": " at Syncfusion.HtmlConverter.BlinkConverter.Convert(String url)\n at Syncfusion.HtmlConverter.HtmlToPdfConverter.Convert(String url)\n at PDFConverter.Controllers.HomeController.ExportToPDF() in /src/PDFConverter/Controllers/HomeController.cs:line 77"
}.
Are you saying that the "Blink in Linux Docker" solution no longer works either? If it works, please can you demonstrate how?
Thank you,
Charles
Hi - many thanks: that was the problem with this one - although I cannot understand how because I repeatedly started again from scratch and took the files from the Linux version.
However one of the problems that made debugging this so difficult is that when deploying Linux docker images to Azure it often runs the previous version (or an earlier version) - not the one you just deployed. That might be worth highlighting in your documentation - in the end I had to completely delete and re-provision the app service every time to ensure it was running the right version.
BTW for reference (based on my researches):