C# MsgReader - Modified time must be zero for streams
I've been searching all over the internet for a solution; hope someone can help. I am using MsgReader to extract information from .MSG files. Recently, I have been getting an error
Modified time must be zero for streams
I have had no luck getting an explanation or solution to the problem.
The code fails on the objMessage line (last line):
System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
using (FileStream inputStream = File.Open(Path.Combine(sProcessPath, sInputFile), FileMode.Open, FileAccess.Read))
{
using (Storage.Message.Message objMessage = new Storage.Message(inputStream, FileAccess.Read))
{
// some code
}
}