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

Free Support Forum - aspose.com

Exception in Opening Word File: Apose.Words (BG2648)

Hi,

There is some issue in loading document through Aspose.Words API. Attahced is the word document file which get open normally through Windows Office but producing exception in Aspose.words API.

Code :

Document document = new Document(MetaData.FilePath);

Exception :

Aspose.Words.FileCorruptedException: The document appears to be corrupted and cannot be loaded. ---> System.InvalidOperationException: Cannot find resource 'Aspose.Resources.NoImage.png'.
at xf9a9481c3f63a419.xed747ca236d86aa0.FetchResourceStream(String fullResourceName)
at x6c95d9cf46ff5f25.x0d299f323d241756.GetNoImageStream()
at x6c95d9cf46ff5f25.x0d299f323d241756.GetNoImageBytes()
at x1a62aaf14e3c5909.x3fadcf0602460de6.x264f3cba2f0b02e2(xef8fbb0f103c0bb1 x5ca6b6e12a4d9043)
at x1a62aaf14e3c5909.x3fadcf0602460de6.x06b0e25aa6ad68a9(xa5a62ee5bc98c41e xa5ea04da0b735c3b, ShapeBase x5770cdefd8931aa9)
at x1a62aaf14e3c5909.x821732b125012c9e.x8d121d7518e387cf(xc6764e97e740ec5a xc802e69602e43547, ShapeBase x5770cdefd8931aa9)
at x1a62aaf14e3c5909.x821732b125012c9e.xac287a575a05d160(xc6764e97e740ec5a xc802e69602e43547)
at x1a62aaf14e3c5909.x821732b125012c9e.x8c713173570e8643(xddf6304144fd3863 x40bb35f2f56a1197)
at x1a62aaf14e3c5909.x7e738ecc9d58b06d.x8cc3d2ed777fa86c(x0c6eac1af67f9f81 xab62f568693e7899, x821732b125012c9e xb524ead8b206f534, Hashtable x1d7f342a22ddda41)
at x1a62aaf14e3c5909.x7e738ecc9d58b06d.x7899c771eca5746e(x5f3a67c2a92bcd0b x0df504b73b9fe8e0)
at x1a62aaf14e3c5909.x7e738ecc9d58b06d.x06b0e25aa6ad68a9(BinaryReader x8ac9765f43e4b683, Int32 x19a21d604769e75b, Int32 x9e4be1b404ab074b, BinaryReader x44008b73fc5f9672)
at x16f9a31f749b8bb1.x0f8a9a895bdf560e.x06b0e25aa6ad68a9()
at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
--- End of inner exception stack trace ---
at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
at Aspose.Words.Document..ctor(String fileName)

Thanks in advance.

Hi there,

Thanks for your inquiry.

I cannot reproduce the issue on my side using the latest version of Aspose.Words. You can download it from here.

Thanks,