Bug Report (v4.2.6.0) : InvalidCastException

Find attached a file that has given us a InvalidCastException when trying to load the document. I have reported Invalid Cast Exceptions before I believe this to be different though.

{System.InvalidCastException}
[System.InvalidCastException]: {System.InvalidCastException}
HelpLink: Nothing
InnerException: Nothing
Message: "Specified cast is not valid."
Source: "Aspose.Words"
StackTrace: " at x1a62aaf14e3c5909.xfbb3f4be330f4086.x707eda0bf8f1735b(BinaryReader x44008b73fc5f9672)
at x1a62aaf14e3c5909.xc2d70347f7484382.x92293779605aaa59(BinaryReader x44008b73fc5f9672)
at x1a62aaf14e3c5909.x57b6730bb29ba4a9.x92293779605aaa59(BinaryReader x44008b73fc5f9672)
at x1a62aaf14e3c5909.x7e738ecc9d58b06d.x06b0e25aa6ad68a9(BinaryReader x8ac9765f43e4b683, Int32 x19a21d604769e75b, Int32 x9e4be1b404ab074b, BinaryReader x44008b73fc5f9672)
at x16f9a31f749b8bb1.x0f8a9a895bdf560e.x06b0e25aa6ad68a9()
at Aspose.Words.Document.xd93192da484a2b72(Stream xcf18e5243f8d5fd3, String xe8e4b5871d71a79a)
at Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadFormat xdef7b99b7fc67519, String xe8e4b5871d71a79a)
at Aspose.Words.Document…ctor(String fileName, LoadFormat loadFormat, String password)
at Aspose.Words.Document…ctor(String fileName)
at NonWordDoc.Form1.Button1_Click(Object sender, EventArgs e) in D:\Projects\Generis\UsefulTestApplications\AsposeDocumentTest\Form1.vb:line 82"
TargetSite: {System.Reflection.RuntimeMethodInfo}

Hi

Thanks for your report. I have logged this problem to our defect base as issue # 3481. We will try to fix it in our next release, which will be published in a couple of weeks. A notification will be posted here in this thread as soon as it will be done.

Best regards.

3481 turned out to be a duplicate of the problem I already fixed for this client (not released yet). Will release very soon.

We process thousands of cv files a week (and Aspose has been very useful and stable than the word api) however between releases of Aspose it is often the case the same bug appears more than once on diffrent files.

When it is a particular error e.g. “Unknown complex shape property id:1792 with data.” I know not to report it twice but when we get generic error like an InvalidCastException is there an easy way to work out if it is the same as a previous reported bug? At the moment I just look at he first line of the stack trace and if it is the same I do not re-report it.

Thank you

Yes, your way of evading duplicate bug postings seems completely ok. It is no big deal if the same bug get posted twice in some cases. It can occur sometimes and does not present any substantial difficulties to the developers.
Best regards,

We will fix all of the issues you reported in the upcoming hotfix. It will be in just a few days.