I recently worked on a issue where the customer was programmatically creating mailboxes on an Exchange server with CDOEM and ADSI, and were having some issues trying to access these newly created mailboxes with their WebDAV code.
This is a known issue that occurs because the mailbox is not available to WebDAV until a client logs on to that mailbox. Additionally this problem is documented in the following article:
839422 When you try to log on to an Exchange 2000 or an Exchange 2003 mailbox by using a WebDAV program, you receive a 401 status code in Internet Explorer http://support.microsoft.com/default.aspx?scid=kb;EN-US;839422
For this issue the following options are different approaches that can be used to workaround this issue. I wanted to get them combined and noted here for reference, since it didn't seem like there was a lot of information available to specifically address this issue:
Related information:
A special thanks to Dan Bagley who blogs at http://blogs.msdn.com/webdav_101/ and has some good information on WebDAV and messaging development.
Knowledge base articles:
195662 How to log on to Exchange with the ProfileInfo parameter http://support.microsoft.com/default.aspx?scid=kb;EN-US;195662 180597 How To Get the Name of the Profile you Logged On With http://support.microsoft.com/default.aspx?scid=kb;EN-US;180597
MSDN references:
CDO 1.21 Session logon method: http://msdn2.microsoft.com/en-us/library/ms526377.aspx CDO 1.21 GetDefaultFolder method: http://msdn2.microsoft.com/en-us/library/ms526181.aspx MAPILogonEx documentation: http://msdn2.microsoft.com/en-us/library/ms529409.aspx
-Jeff