Skip to content

Commit fccc2ae

Browse files
committed
880912 UG documentation about running .NET8 application in Azure Linux environment
1 parent a21201d commit fccc2ae

File tree

7 files changed

+39
-0
lines changed

7 files changed

+39
-0
lines changed

File-Formats-toc.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,11 @@
945945
<li><a href="/file-formats/pdf-to-image/Converting-PDF-pages-into-Images-in-WPF">WPF</a></li>
946946
</ul>
947947
</li>
948+
How to
949+
<ul>
950+
<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>
951+
</ul>
952+
</li>
948953
</ul>
949954
</li>
950955
<li>
58 KB
Loading
144 KB
Loading
231 KB
Loading
116 KB
Loading
101 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 running .NET80 linux application in Azure app service.
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 applictions. 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 asseblies 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)