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

Free Support Forum - aspose.com

Error while opening word document in Aspose

Hi, I am trying to open Word document in Aspose Word and using this piece of code to open document.
Aspose.Words.Document doc = _fileWrapper.GetAsposeDocument(contractPath);

This is working fine with all documents except document having special character. I have added special character (&) into the document and when calling above line it is throwing error.

An error occurred while parsing EntityName. Line 2, position 58225.

Can you please let me know whether Aspose support special character or not , If yes please let me know how can I solve this error.

Thanks in advance!

@umesh8,

Please upgrade to the latest (21.8) version of Aspose.Words for .NET and see how it goes on your end? In case the problem still remains, then please ZIP and upload your source Word document that you are getting this problem with here for testing. We will then investigate the issue on our end and provide you more information.