Invalid header signature; read 1688935826934608- expected 16220472316735377360

Hi,

I am developging .net application using aspose tools,

System.IO.FileStream fiscnt1 = new System.IO.FileStream(MapPath(".") + "\\PowerPoint\\Content1.ppt", System.IO.FileMode.Open, System.IO.FileAccess.Read);

Presentation prescnt = new Presentation(fiscnt1);

fiscnt1.Close();

from the above code i initialized the presentation class object with filename, now when i changed the file name from Content1.ppt to Content2.ppt, it was showing error - "Invalid header signature; read 1688935826934608, expected 16220472316735377360". Can anybody help in this regarding.

Regards

Raghu Veer Gupta

Dear Ragu,

Such an exception usually occurs, when you read ppt presentation with pptx constructor and vice versa. Can you please attach content1.ppt so that we could look into this problem?