Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: Re: CDO logon problem


Message #1 by "Benny Olsson" <Benny.Olsson@D...> on Wed, 4 Apr 2001 14:09:47
Don't know why it's doing this way, but I might know a solution to your 

problem.. Have you tried putting the working VB code in a Com object and 

then call the function in the Com? 



You wrote that the code ran under a user with access to all mailboxes.. 

a.k.a a superuser.. Could you perhaps help me to create a superuser in 

Exchange 5.5? 





//Benny Olsson



Benny.Olsson@D...



> Hi!

> 

> im runnning a Win2K Server.

> I want to logon with cdo to an exchange 5.5 server

> 

> the following dlls are registered:

> 

> cdo.dll, version 1.2, file version 5.5.2650.12

> mapi32.dll, version 1.0, file version 1.0.2518.0

> mapi.dll, version 5.5, file version 5.5.2175.0

> 

> I wrote an vb.exe and an asp page, both containing exactly th same code:

> 

> vb:

>   Set MyMapiSession = CreateObject("MAPI.Session")

>   vProfileinfo = vServername + vbLf + txt_alias.Text

>   Call MyMapiSession.Logon("", "", False, True, 0, True, vProfileinfo)

> 

> asp:

>   Set objSession = Server.CreateObject ("MAPI.Session")

>   strProfileInfo = vServer + vbLf + LCase(vUID)

>   Call objSession.Logon ("", "", False, True, 0, True, strProfileInfo)

> 

> both, web page and exe are running under the context of an user who has 

> access to all mailboxes

> 

> the exe runs properly, 

> if i run the asp code a msgbox comes up asking for a standard mail 

client,

> altough outlook was defined as standard mail client

> 

> after klicking ok, the following error occurs

> 

> Collaboration Data Objects (0x43ED)

> [ - [(80004005)]]

> 

> 

> any ideas?

> 

> Robert Szuka


  Return to Index