Font not found exception

Hello,

We’re getting the following exception when deploying a web application:

Font ‘Calibri#1’ not found. Please make sure the customer font file is correctly set.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ApplicationException: Font ‘Calibri#1’ not found. Please make sure the customer font file is correctly set.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ApplicationException: Font ‘Calibri#1’ not found. Please make sure the customer font file is correctly set.]
..€( , String , String , Boolean ) +806
..‚( , String , String , Int32 , Boolean , Boolean , String , Boolean ) +3163
..€( , String , String , Int32 , Boolean , Boolean , String , Boolean ) +996

[ApplicationException: The Font ‘Calibri’ is not found. This font is not supported.]
..€( , String , String , Int32 , Boolean , Boolean , String , Boolean ) +1277
..€(String , String , Int32 , Boolean , Boolean , String , Boolean ) +1017
..€(Text , Pdf , ) +553
..(Pdf , Section , Table , Row , Cell , Text , , ƒ , Boolean ) +154
..€(Pdf , Section , HeaderFooter , Table , Row , Cell , Text , , ƒ , Boolean ) +466
.‚.€(Pdf , Section , Table , Row , Cell , , ƒ ) +788
..€(Pdf , Section , Table , Row , , ƒ ) +238
..€(Pdf doc, Section currentPart, HeaderFooter hf, Table table, assignInfo, ƒ useType, Boolean isFirst, & breakTableNextPart) +342
..€(Pdf , Section , ) +828
..€(Pdf ) +1213
..€( , Pdf ) +942
Aspose.Pdf.Pdf.Save(String fileName, SaveType saveType, HttpResponse response) +362

The application works fine locally, and on a test server. But it won’t work on the production server, even after installing all the required fonts. The production server is running a different OS, so perhaps that has something to do with it. It’s running on Windows 2003 R2 Standard Edition, SP2.

Tried it with both Aspose.Pdf 5.1 and 5.4 to no avail.

Regards,
Patrick

Hello Patrick,

Thanks for using our products.

Can you please share the code snippet/sample project so that we can test the scenario at our end. We apologize for your inconvenience.