Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us