Hi team,
I am getting below error when converting Word to html. This is happening for only few files having more than 2 page in word documents. I am using .net core.
The type initializer for ' ’ threw an exception.
Aspose code :-
Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense("Aspose.Total.lic");
// Console.WriteLine("Word to html conversion Ends for " + file);
Aspose.Words.Document docHtml = new Aspose.Words.Document(fileStream);
Aspose.Words.Saving.HtmlSaveOptions opts = new
Aspose.Words.Saving.HtmlSaveOptions(SaveFormat.Html);
opts.CssStyleSheetType = CssStyleSheetType.Embedded;
opts.TableWidthOutputMode = HtmlElementSizeOutputMode.All;
opts.ExportHeadersFootersMode = ExportHeadersFootersMode.None;
docHtml.Save(Path.ChangeExtension(fileName, ".html"), opts);