We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Could not load type 'System.Drawing.KnownColor' from assembly

Exception occurs when performing a mail merge with a data table.
Platform netcore 2.0.

The type initializer for ‘ົ.ྚ’ threw an exception.

Could not load type ‘System.Drawing.KnownColor’ from assembly ‘System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’.

at ົ.ྚ.ྞ(Int32 ԁ)
at ົ.ྎ.ྑ(Color ࣝ, Boolean ྒ, Boolean ྒྷ)
at ົ.㝶.㞗(Int32 ֎, Object ԁ)
at ົ.㝭.৻(ShapeBase ൨, Boolean 㝮, ᫵ ԭ, 㕫 ಾ)
at 㔡.㔠.㕅(Shape ൨)
at 㔡.㔠.VisitShapeStart(Shape shape)
at Aspose.Words.Drawing.Shape.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.Զ(DocumentVisitor Է)
at Aspose.Words.Drawing.GroupShape.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.Զ(DocumentVisitor Է)
at Aspose.Words.Drawing.GroupShape.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.Զ(DocumentVisitor Է)
at Aspose.Words.Paragraph.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.Զ(DocumentVisitor Է)
at Aspose.Words.Body.Accept(DocumentVisitor visitor)
at 㔡.㝡.৻(㔠 ৼ)
at 㔡.㔠.㕀()
at Aspose.Words.Document.Save(String fileName, SaveFormat fileFormat)

@rhyswilliams

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.