We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Bad code example - ConvertOSTtoPST

The example show the following:
// ExStart:ConvertOSTToPST
string dataDir = RunExamples.GetDataDir_Outlook();

        // Load the Outlook file
        string path = dataDir + "PersonalStorage.pst";

        // Get the Display Name of the file
        using (PersonalStorage ost = PersonalStorage.FromFile(path))
            ost.SaveAs(dataDir + "ConvertOSTToPST_out.pst", FileFormat.Pst);
        // ExEnd:ConvertOSTToPST

You converting pst to pst instead of ost to pst.
So I used my ost file and tested it. It did output a pst but it was my ost with extension of pst
and it gave an exception (Message: “The method or operation is not implemented.”)

I am trying to convert my ost to pst and nothing is working


Please refer to this documentation link for your kind reference.

I used the referenced code and it does not work. I get the following exception
Exception thrown: ‘System.NotImplementedException’ in Aspose.Email.dll
The method or operation is not implemented.
This is my code
If File.Exists(OutFilename) Then File.Delete(OutFilename)

		Using ost As PersonalStorage = PersonalStorage.FromFile(Infilename)
			ost.SaveAs(OutFilename, FileFormat.Pst)
		End Using
	Catch ex As Exception
	End Try


Please share the source OST file reproducing the issue on your end so that we may investigate that further on our end to help you out.

I am sorry I can not supply the ost, it has company data in it.
The only other thing I can tell you about it is that it is pass-worded
and I did export it using Outlook with no problems


We need the source file that we may need to verify and reproduce the issue on our end.

I know it can be done with Outlook.
The problem as originally stated is that the example states to use ost.saveas and it does not work when you use ost file as input (not a .pst)

If you find an incorrect code example in our documentation, please share the link.