Re: ADODB Connection has Exception
- From: "Glen Scales [MVP]" <gscales@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 12 Jul 2006 12:58:21 +1000
Where are you trying to run this if its locally on the Exchange server then
you will be using Exoledb. Exoledb doesn't support supplying the
authentication details it will always use the security context of the
calling process have a look at
http://support.microsoft.com/default.aspx?scid=kb;en-us;260771
Cheers
Glen
"piero" <piero@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FEDC26C1-BE53-4C9D-BAE5-27217EB34BB6@xxxxxxxxxxxxxxxx
HI, help me please!
I wan't to access the exchange mailstore to get some infomation.
I use the method open of ADODB Connection ,it's success on Exchange
Server2003
,but on Exchange Server2000 it has an
exception:System.Runtime.InteropServices.COMException
(0x80040E4D): Authentication failed.
the c# code is below:
--------------------------------------------------------------------------------
ADODB.Connection cnn = new ADODB.ConnectionClass();
string bstrURLItem = "http://localhost/Exchange/administrator/calendar";
cnn.Open(bstrURLItem,"administrator","123", 0); // here throw exception
------------------------------------------------------------------------------------
I can ensure that the username,password and URL are
correct.Because I can access the exchange mailstore by weboutlook.
.
- Prev by Date: Re: How to copy a .eml file to exchange store from a UNC path using webDav
- Next by Date: Re: Creating new Contacts on Exchange Server
- Previous by thread: Re: WebDAV don't connect with Exchange2k3
- Next by thread: Re: Creating new Contacts on Exchange Server
- Index(es):
Relevant Pages
|
Loading