Unhandled System.IO.FileFormatException Message="Compression part has inconsistent data length" //note:- this is not the exact message but translated from chinese Source="WindowsBase" StackTrace: in MS.Internal.IO.Packaging.CompressStream.UpdateUncompressedDataLength(Int64 dataLength) in MS.Internal.IO.Packaging.CompressStream.Read(Byte[] buffer, Int32 offset, Int32 count) in MS.Internal.IO.Zip.Crc32Calculator.CalculateStreamCrc(Stream stream) in MS.Internal.IO.Zip.ProgressiveCrcCalculatingStream.CalculateCrc() in MS.Internal.IO.Zip.ZipIOLocalFileBlock.UpdateReferences(Boolean closingFlag) in MS.Internal.IO.Zip.ZipIOBlockManager.SaveContainer(Boolean closingFlag) in MS.Internal.IO.Zip.ZipIOBlockManager.SaveStream(ZipIOLocalFileBlock blockRequestingFlush, Boolean closingFlag) in MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Dispose(Boolean disposing) in System.IO.Stream.Close() in System.IO.Stream.Dispose() in DocumentFormat.OpenXml.OpenXmlPartRootElement.SaveToPart(OpenXmlPart openXmlPart) in DocumentFormat.OpenXml.OpenXmlPartRootElement.Save() this exception is not thrown for every docx file processed by my program, but is repeatedly produced on certain file (the cause is not clear). anyway, the processed docx file loads normally in Word. Someone knows the possible cause?
I recently updated the SDK to August 2009 CTP, might it be a bug of the new Autosave feature?