Free Support Forum - aspose.com

Aspose.Diagram codepage error only on .NET Core

We have purchased a licence (baesys) and are trying to use Aspose.Diagram to convert a Visio document to pdf in a .NET Core 2 class library. The same document converts successfully when running on .NET Framework 4.6 but when we set up a project like the one below on .NET Core the

var visioDiagram = new Aspose.Diagram(sourceDiagramPath);

instantiation always fails with

2018-06-08 10:12:20.933 +01:00 [Error] Error in element VisioDocument in \VisioDocument. Error in element DocumentProperties in \VisioDocument\DocumentProperties. No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.

These are all of the package references (the system versions are taken from the Aspose listed dependencies for Aspose.PDF)

TargetFramework:netcoreapp2.0

<PackageReference Include="Aspose.Diagram Version="18.5.0"
<PackageReference Include="System.Drawing.Common" Version="4.5.0-preview1-25914-04"
<PackageReference Include="System.Security.Permissions" Version="4.5.0" 
<PackageReference Include="System.Text.Encoding.CodePages" Version="4.5.0" 

<PackageReference Include="Aspose.PDF" Version="18.5.0" 
<PackageReference Include="Aspose.Words" Version="18.6.0" 
<PackageReference Include="iTextSharp-LGPL" Version="4.1.6" 
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.1.0"

Any ideas on this one? Is Aspose.Diagram supposed to work on .NET Core?

@baesys,

The .NET Core is not supported in Aspose.Diagram for .NET API. We have already logged a feature request under the ticket ID DIAGRAMNET-51457 in our issue tracking system. It has been resolved and included in the next version 18.6 of Aspose.Diagram for .NET API. We will notify you once the next version is published.

1 Like

OK, thanks.

You should update nuget to make this clear. There are no dependencies or supported frameworks listed for Aspose.Diagram whereas Aspose.Cells lists .NET Framework 4 and .NET Standard 2 (https://www.nuget.org/packages/Aspose.Cells/)

Aspose CAD lists 2, 3.5 and 4 explicitly (https://www.nuget.org/packages/Aspose.CAD/)

All seems a bit muddled to me

@baesys,

A task has been logged under the ticket ID DIAGRAMNET-51479 to update dependencies of Aspose.Diagram for .NET API on Nuget. We have linked your post to this ticket and will keep you informed regarding any available updates.

1 Like

The issues you have found earlier (filed as DIAGRAMNET-51457) have been fixed in Aspose.Diagram for .NET 18.6. This message was posted using BugNotificationTool from Downloads module by imran.rafique