The given path's format is not supported. RRS feed

  • Question

  • Foreach(Item item in FindItemResults)
    byte[] ContentBytes;
    MimeContent mc;
    item.Load(new PropertySet(ItemSchema.MimeContent));
    mc = item.MimeContent;
    ContentBytes = mc.Content;
    FileStream objfileStream = new FileStream(vFilePath + item.Subject + ".eml", FileMode.OpenOrCreate, FileAccess.ReadWrite);
    objfileStream.Write(ContentBytes, 0, ContentBytes.Length);

    SaveFileDialog objSaveFile = new SaveFileDialog();
    objSaveFile.Filter = "All files (*.*)|*.*";
    if (objSaveFile.ShowDialog() == DialogResult.OK)
    {vFilePath = objSaveFile.FileName;}

    I will get the value for vFilePath using save dialogbox.Now the Problem is MailItems

     in the RootFolders like Inbox,SentItems are not getting download in the specified path.

    They Show Error:"The given path's format is not supported"...

    Whereas the mail items in the rootfolder like inbox,sentitems that have attachments

     are getting download.
    Tuesday, March 19, 2013 12:12 PM