|
|
|
date: Mon, 10 Oct 2005 18:57:10 +0530,
group: microsoft.public.exchange2000.development
back
Exchange server is hanging when using Delete method
Hi All,
I had written a code in asp.net using webdav for deleting an email
from the inbox and it successully deletes, but the exchange server is
hanging each time the delete operation is perfomed. Please help me in
solving this issue.
Attached is the code for reference:
myHttpWebRequest = WebRequest.Create(myUri)
myNetworkCredentials = New NetworkCredential(userName, password, domainName)
myCredentialsCache = New CredentialCache
myCredentialsCache.Add(myUri, "BASIC", myNetworkCredentials)'
myHttpWebRequest.Credentials = myCredentialsCache
myHttpWebRequest.Timeout = 300000
' set the request method
myHttpWebRequest.Method = "DELETE"
myHttpWebRequest.Headers.Set("Depth", "infinity")
myHttpWebRequest.ContentType = "text/xml"
myHttpWebResponse = CType(myHttpWebRequest.GetResponse(),
System.Net.HttpWebResponse)
statusCode = myHttpWebResponse.StatusCode
Regards,
-Srinivas
date: Mon, 10 Oct 2005 18:57:10 +0530
author: srinivas
Re: Exchange server is hanging when using Delete method
Remove line:
myHttpWebRequest.Headers.Set("Depth", "infinity")
Michael
-------------------------------
If you need WebDAV API for Exchange server,
use our component WebDAV .NET for Exchange.
Check out http://www.independentsoft.com
"srinivas" wrote in message news:OsQpW3ZzFHA.3312@TK2MSFTNGP09.phx.gbl...
> Hi All,
> I had written a code in asp.net using webdav for deleting an email
> from the inbox and it successully deletes, but the exchange server is
> hanging each time the delete operation is perfomed. Please help me in
> solving this issue.
>
> Attached is the code for reference:
>
> myHttpWebRequest = WebRequest.Create(myUri)
> myNetworkCredentials = New NetworkCredential(userName, password, domainName)
> myCredentialsCache = New CredentialCache
> myCredentialsCache.Add(myUri, "BASIC", myNetworkCredentials)'
> myHttpWebRequest.Credentials = myCredentialsCache
> myHttpWebRequest.Timeout = 300000
> ' set the request method
> myHttpWebRequest.Method = "DELETE"
> myHttpWebRequest.Headers.Set("Depth", "infinity")
> myHttpWebRequest.ContentType = "text/xml"
> myHttpWebResponse = CType(myHttpWebRequest.GetResponse(),
> System.Net.HttpWebResponse)
> statusCode = myHttpWebResponse.StatusCode
>
> Regards,
> -Srinivas
>
>
date: Mon, 10 Oct 2005 16:57:02 +0200
author: Michael
|
|