Open password protected project over FileStream

Hi,

is it possible to open password protected project using FileStream?
Using simple code:

public void OpenProject()

{

System.IO.FileStream fs = new System.IO.FileStream("PassOpen.mpp", System.IO.FileMode.Open);

try


{


Project doc = new Project(fs, “open”);


if (doc != null)

{

Console.WriteLine("Pass OK");

}

}

catch (Exception ex)

{

Console.WriteLine(ex.Message);

}

fs = null;

}

I am getting: "Project reading exception".

Sample project is attached.

Btw. I tried also to use String pass instead of "open" but same problem.

Hi Oliver,


Thank you for contacting Aspose support team.

This scenario is tested by opening a password protected file using Aspose.Tasks for .NET 8.8.1. It is observed that it raises exception and is logged under Id:TASKS-34243 for further investigation by the product team. I shall write here as soon as some feedback is received in this regard.