Hi
I’m well and truly stumped!
We’ve build an enormously powerful reporting engine on ASPOSE, which have been running smoothly for over 2 years now.
One of the Reporting Sections use Aspose.Words.DocumentBuilder.InsertImage() to add an image on the Cover Page. This is pretty old functionality which never gave any problems as far as I can remember.
However, last week, two of our users started getting an error on their machines which no one else seems to get. I’ve never seen this error message before myself…ever!
System.ArgumentOutOfRangeException: Stream length must be non-negative and less than 2^31 - 1 - origin.
at System.IO.MemoryStream.Seek(Int64 offset, SeekOrigin loc)
at x38a89dee67fc7a16.xdd1b8f14cc8ba86d.x5d8883ce13fdc89f(Stream xcf18e5243f8d5fd3)
at x38a89dee67fc7a16.xdd1b8f14cc8ba86d.x16a7fb03c627ebfb(Stream xc8f3f690897a858e, xfe2ff3c162b47c70 x0182a6dae298f8a4)
at x011d489fb9df7027.x8e500baeffc6e539.get_x8d0c72c5b2891cbc()
at Aspose.Words.DocumentBuilder.InsertImage(Byte[] imageBytes, RelativeHorizontalPosition horzPos, Double left, RelativeVerticalPosition vertPos, Double top, Double width, Double height, WrapType wrapType)
at Aspose.Words.DocumentBuilder.InsertImage(Stream stream, RelativeHorizontalPosition horzPos, Double left, RelativeVerticalPosition vertPos, Double top, Double width, Double height, WrapType wrapType)
at Aspose.Words.DocumentBuilder.InsertImage(Image image, RelativeHorizontalPosition horzPos, Double left, RelativeVerticalPosition vertPos, Double top, Double width, Double height, WrapType wrapType)
The image file is about 900000 characters long, so it is definitely not larger than 2^31. It also cannot be that they’re not getting the image at all, as they’re connecting to the same database as everybody else.
I would appreciate any clues which you might be able to provide to track down the cause of this problem.