Skip to content

Commit ac24e35

Browse files
Merge pull request #2047 from Syncfusion-Content/hotfix/hotfix-v25.1.35
DOCINFRA-2341_merged_using_automation
2 parents 2e6674c + f000d7e commit ac24e35

File tree

7 files changed

+40
-0
lines changed

7 files changed

+40
-0
lines changed

File-Formats-toc.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,12 @@
945945
<li><a href="/file-formats/pdf-to-image/Converting-PDF-pages-into-Images-in-WPF">WPF</a></li>
946946
</ul>
947947
</li>
948+
<li>
949+
How to
950+
<ul>
951+
<li><a href="/file-formats/pdf-to-image/How-to/Run-NET80-Linux-application-in-azure-app-service">Run NET8.0 Linux application on Azure app service</a></li>
952+
</ul>
953+
</li>
948954
</ul>
949955
</li>
950956
<li>
58 KB
Loading
98.9 KB
Loading
74.5 KB
Loading
81.4 KB
Loading
68.8 KB
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: Run NET80 Linux application in azure app service| Syncfusion
3+
description: Learn about the steps to run the .NET80 linux application in Azure app service with the PdfToImageConverter control.
4+
platform: file-formats
5+
control: PDF to image
6+
documentation: UG
7+
---
8+
9+
# Run .NET80 PdfToImageConverter Linux application in Azure app service
10+
11+
To run a .NET 8.0 Linux application with PdfToImageConverter on an Azure App Service, you need the libdl.so file to access the pdfium assembly. However, in Azure App Service, the file is named libdl.so.2 instead of libdl.so. Therefore, to ensure compatibility and functionality, you must manually move and rename libdl.so.2 to libdl.so in the Azure App Service environment for the .NET 8.0 applications. This adjustment allows your .NET 8.0 application to function properly with PdfToImage conversion capabilities.
12+
13+
N> While running the .NET 8.0 PdfToImageConverter Linux application on a Azure app service, you will get the `TypeInitializationException: Type initializer for "Syncfusion.PdfToImageConverter.PdfiumNative" threw an exception`.
14+
15+
## Steps to run the .NET80 PdfToImageConverter Linux application in Azure app service
16+
17+
Step 1: Open the SSH command window which will be present under your Azure app service in [Azure portal](https://portal.azure.com/).
18+
![Open SSH command Window](Azure_Linux_Net80_Images/Azure_Linux_Step1.png)
19+
20+
Step 2: Now, navigate back to the home location and then navigate to the usr/lib/x86_64-linux-gnu location in the SSH.
21+
![Navigation to the libdl assembly location](Azure_Linux_Net80_Images/Azure_Linux_Step2.png)
22+
23+
Step 3: List the assemblies present in this location using the `ls` command. You can find the libdl.so.2 assembly in that location instead of libdl.so assembly file.
24+
![Locate the libdl assembly](Azure_Linux_Net80_Images/Azure_Linux_Step3.png)
25+
26+
Step 4: Copy the libdl.so.2 file from this location to the `home\site\wwwroot` folder and rename it to libdl.so using the command `cp libdl.so.2 /home/site/wwwroot/libdl.so`.
27+
![Copy and rename the libdl assembly](Azure_Linux_Net80_Images/Azure_Linux_Step4.png)
28+
29+
Step 5: Then navigate back to the `home\site\wwwroot` folder and ensure whether the copied assembly present in the desired location.
30+
![Ensuring the copied assembly](Azure_Linux_Net80_Images/Azure_Linux_Step5.png)
31+
32+
Step 6: Finally, refresh the service page URL and then the application will be work as expected.
33+
34+
N> If still the service is not working properly, stop and start the service again in the Azure portal. The `TypeInitializationException` will no longer be thrown.

0 commit comments

Comments
 (0)