[MONO] FontFamily could not be found

Hello,

I have go a problem with aspose.cells under Mono.

I want to open up an .xls file and Import it to my Database but i get the following error:

Server Error in ‘/admin’ Application

The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]

Description: HTTP 500. Error processing request.

Stack Trace:

System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]

at System.Drawing.GDIPlus.CheckStatus (Status status) [0x001e7] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:249

at System.Drawing.FontFamily…ctor (GenericFontFamilies genericFamily) [0x0005d] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System.Drawing/System.Drawing/FontFamily.cs:93

at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor (System.Drawing.Text.GenericFontFamilies)

at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System.Drawing/System.Drawing/FontFamily.cs:122

at System.Drawing.Font.CreateFont (System.String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte charSet, Boolean isVertical) [0x0000d] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System.Drawing/System.Drawing/Font.cs:70

at System.Drawing.Font…ctor (System.String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont) [0x00011] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System.Drawing/System.Drawing/Font.cs:371

at System.Drawing.Font…ctor (System.String familyName, Single emSize) [0x00000] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System.Drawing/Assembly/AssemblyInfo.cs:1

at (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor (string,single)

at Aspose.Cells.Worksheets.xcb9fccf77c0619d7 () [0x00000]

at Aspose.Cells.Worksheets…ctor (Aspose.Cells.Workbook workbook, Aspose.Cells.Record.PaletteRecord palette) [0x00000]

at Aspose.Cells.Workbook…ctor () [0x00000]

at DeDeNet.DeDePPP.Data.Peers.ImportPeer.Excel (System.IO.Stream stream) [0x00000]

at DeDeNet.DeDePPP.Application.Peers.Peer2Manager.Fill (IAppContext context, System.IO.Stream stream) [0x00000]

at DeDeNet.DeDeAdmin.Web.Application.DeDeAdmin.PPP.ImportPeers.ImportData () [0x00000]

at DeDeNet.DeDeAdmin.Web.Application.DeDeAdmin.PPP.ImportPeers.radToolBar_ButtonClick (System.Object sender, Telerik.Web.UI.RadToolBarEventArgs e) [0x00000]

at Telerik.Web.UI.RadToolBar.RaiseEvent (System.Object eventKey, Telerik.Web.UI.RadToolBarEventArgs e) [0x00000]

at Telerik.Web.UI.RadToolBar.OnButtonClick (Telerik.Web.UI.RadToolBarEventArgs e) [0x00000]

at Telerik.Web.UI.RadToolBar.RaisePostBackEvent (System.String eventArgument) [0x00000]

at Telerik.Web.UI.RadToolBar.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent (System.String eventArgument) [0x00000]

at System.Web.UI.Page.RaisePostBackEvent (IPostBackEventHandler sourceControl, System.String eventArgument) [0x00000] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Page.cs:1767

at System.Web.UI.Page.RaisePostBackEvents () [0x000a5] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Page.cs:1750

at System.Web.UI.Page.ProcessRaiseEvents () [0x0005b] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Page.cs:1614

at System.Web.UI.Page.InternalProcessRequest () [0x001c5] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Page.cs:1535

at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x0005b] in /var/tmp/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI/Page.cs:1353

Version information: Mono Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433

Hi,

Which .NET compiled version you are using of the product,

When you install Aspose.Cells for .NET component using Aspose.Cells.msi installer on a machine, we provide two dlls in two different folders at your ${installation_Path} folder(s) for Aspose.Cells component, e.g “\Aspose\Aspose.Cells for .NET\Bin\Net1.0” and “\Aspose\Aspose.Cells for .NET\Bin\Net2.0”. It is to be noted here, the dll file (Aspose.Cells.dll) stored in Net1.0 folder is compiled on .NET framework 1.0, the second dll file stored in NET2.0 is compiled on .NET Framework 2.0, which should
work fine
if you are using the component in mono 2.x applications.

Please try the latest version v4.8.0 and use the Aspose.Cells.dll in Net2.0 folder. Kindly let us know if you still find the issue.

Thank you.

Works fine Thanks for your reply