I am using WebDav query to search e-mails and public folders from Exchange Server 2003. The code is based on the Visual Basic .NET sample http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_exch2k_searching_folders_http.asp
However when I started to test the code with impersonation, I ve got a problem.The scenario was the following
I am using client on workstation running IE6 that login to ASP.NET web server using Windows Authentication with impersonation. The server ASP.NET page uses WebDav to access Exchange Server 2003.
The WebDav request failed with "The remote server returned an error: (401) Unauthorized".
If the client is running IE browser on the Web Server , WebDav queries are succeded.
I've changed Web Server to "trust this computer to delegate", but the error was the same.
The solution is to use "Negotiate" (or "Kerberos") instead of NTLM when calling MyCredentialCache.Add