System.IO.FileNotFoundException: _5.cfs ---> System.IO.InvalidDataException: Block length does not match with its complement.

Feb 11, 2013 at 6:13 PM
Hi
I currently have an issue with searching Lucene.net and AzureDirectory which seems to be connected with compressing - doing the search against the file system doesnot throw this error. Below you find the stack trace conected to azuredirectory and lucene.net. Any idea why this happens?

Thanks,
Marc
System.IO.FileNotFoundException: _5.cfs ---> System.IO.InvalidDataException: Block length does not match with its complement.
at System.IO.Compression.Inflater.DecodeUncompressedBlock(Boolean& end_of_block)
at System.IO.Compression.Inflater.Decode()
at System.IO.Compression.Inflater.Inflate(Byte[] bytes, Int32 offset, Int32 length)
at System.IO.Compression.DeflateStream.Read(Byte[] array, Int32 offset, Int32 count)
at Lucene.Net.Store.Azure.AzureIndexInput..ctor(AzureDirectory azuredirectory, CloudBlob blob) in C:\Users\marc\Documents\Visual Studio 2010\Projects\JetfonCanvas\Lucene Blob Storage\AzureDirectory\AzureIndexInput.cs:line 116
at Lucene.Net.Store.Azure.AzureDirectory.OpenInput(String name) in C:\Users\marc\Documents\Visual Studio 2010\Projects\JetfonCanvas\Lucene Blob Storage\AzureDirectory\AzureDirectory.cs:line 267
at Lucene.Net.Index.SegmentInfos.FindSegmentsFile.Run(IndexCommit commit)
at Lucene.Net.Index.DirectoryReader.Open(Directory directory, IndexDeletionPolicy deletionPolicy, IndexCommit commit, Boolean readOnly, Int32 termInfosIndexDivisor)
at Lucene.Net.Index.IndexReader.Open(Directory directory, IndexDeletionPolicy deletionPolicy, IndexCommit commit, Boolean readOnly, Int32 termInfosIndexDivisor)
at Lucene.Net.Index.IndexReader.Open(Directory directory, Boolean readOnly)
at Lucene.Net.Search.IndexSearcher..ctor(Directory path, Boolean readOnly)