Re: ADODB Connection has Exception



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.


.



Relevant Pages


Loading