While uploading PST to ExchangeServer I am getting the following error and no item is saved:
Operation failed. Response Code : ErrorItemSavePropertyError
Message Text: Item Save Operation did not succeed
Below given is my code to Restore the PST to Exchange Server
string inputPst =pst_path; //Complete Path of PST file
PersonalStorage pst = PersonalStorage.FromFile(inputPst);
var settings = new RestoreSettings();
try
{
settings.Options = RestoreOptions.RemoveNonexistentItems;
}
catch(Exception ex)
{
MessageBox.Show("Error 1: " + ex.Message);
}
try
{
client.Restore(pst,settings); //Statement creating Error
}catch(Exception ex)
{
MessageBox.Show("Error 2: " + ex.Message); //Error Shown
}
Please suggest me what could be the error and how can I upload my PST to ExchangeServer