Webdav Get Attachment - Not working for new emails RRS feed

  • Question


    I have written a .net console application to download email attachments from Exchange and save them to disk using WebDav.

    I have been testing the code with existing emails that are in my mailbox and it works fine. All the attachments I would expect successfully saved to disk.

    However today I have sent myself some new emails with attachments as part of testing my code, they have arrived successfully in my mailbox and I can see them in exchange webmail. But when I run my WebDav application and it comes to process these new emails it is freezing/stopping when it calls the GET to retrieve the attachment.

    If I paste the full URL for the attachment in IE I can open/save the attachment.

    Is there any reason why new attachment wouldn't be immediately accessible via WebDav? Are there any internal workings of exchange that need to update before this is possible?

    Any help appreciated.



    Monday, May 9, 2011 3:23 PM


  • Sorted, I was using a MSXML2.XMLHTTP40 object instead of a MSXML2.ServerXMLHTTP40 object to send my request.

    I have changed this now and it is working fine.

    • Marked as answer by suggy1982 Tuesday, May 10, 2011 10:20 AM
    Tuesday, May 10, 2011 10:20 AM