VB.NET WEBDAV Error - URI hostname could not be resolved ????

VB.NET WEBDAV Error - URI hostname could not be resolved ????

Post by Aidan Hutc » Wed, 19 Jan 2005 23:53:47

Im using exch server 2003 on server 2003..

my app is written in VB.NET (VS 2003, fw 1.1) and gets users calendar
details from the exchange server using WEBDAV over http.

It works fine from a remote server connecting to this 2003 server's
exchange, but if i run the app from the exchnage server itself i get
the following error......

'System.UriFormatException: Invalid URI: The hostname could not be

im logging onto the server in WEBDAV using a account that has full
mailbox rights and WEBDAV security is setup correctly according to the
msdn article on WEBDAV Security. Im also using the machine's name not
'LocalHost' in the xml request as seen below.

The URI i suspect is the one thats used in the WEBDAV Sql/xml string eg


if i run the app from a different server it works ok and gets the users
calendar details but not on the 2003 server with exchange 2003 ?

The second error i get is if i do the following to try to resolve the
first error by doing this...

if i change the server name in the URI path to 'LocalHost' i get this

'error 409 conflict' ???? shared resources perhaps?

id be greatful if anyone could suggest a workaround for the initial
error ? or solution?
TeleWare PLC