Hi Babar Raza,
i made correction i.e using (pst) still having problem .my requirement is that using aspose.email.outlook .pst i read all folder, subfolder,iterate through all message when it comes to check message entry id look at this snippet(for testing purpose )
MessageInfoCollection messageInfoCollection = folderInfo.GetContents();
foreach (MessageInfo messageInfo in messageInfoCollection)
{
Response.Write("Subject: " + messageInfo.Subject);
[//Response.Write](https://response.write/)("Sender: " + messageInfo.SenderRepresentativeName);
[//Response.Write](https://response.write/)(“Recipients: " + messageInfo.DisplayTo);
Response.Write(“EnryID: " + messageInfo.EntryIdString);
Response.Write(”------------------------------”);
if (messageInfo.EntryIdString.Equals(“AAAAAPi8BgLjGitHmY3d/sTJboTkDCAA”) == true)
{
// // delete this item
folderInfo.DeleteChildItem(messageInfo.EntryId);
Response.Write(“Deleted this message”);
}
it delete the item ,thing is that when i open pst file in outlook it show"
Cannot display the folder. Microsoft Outlook cannot access the specified folder location. The operation cannot be performed because the object has been deleted."
Thanks &Regards,
Sarfaraj