In this example, we are trying to convert an MSG payload to an EML file, but it throws null exception with no indication of the problem or what is being null at all. The msg might be corrupted for some reason, but I cannot know why unless we know the reason behind the Null reference. Attached the sample project commented with more details.