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: Wed, 1 Mar 2006 06:17:56 -0600,    group: microsoft.public.exchange2000.development        back       


Can't access IMailbox properties   
I'm trying this:

Dim oPrsn As New CDO.Person
oPrsn.DataSource.Open("mailto:myuserid@mydomain.com")
Dim iMbx As CDO.IMailbox = oPrsn.GetInterface("IMailbox")

When accessing any of the mailbox object properties a "<error: an exception 
of type: {System.IO.DirectoryNotFoundException} occurred>" exception is 
thrown. This happened with any mailbox I tested. Any ideas?

TIA
date: Wed, 1 Mar 2006 06:17:56 -0600   author:   Yoav Ben-Yosef

Re: Can't access IMailbox properties   
Have you tried using the Ldap distinguished name instead does this make a 
difference. Where are you running the code from generally CDOEX is only 
supported locally on a Exchange server with the IMailbox interface because 
this uses Exoledb this in the case.

Cheers
Glen


"Yoav Ben-Yosef"  wrote in message 
news:976c4aa86c054da18c0a490d97d40c79@ureader.com...
> I'm trying this:
>
> Dim oPrsn As New CDO.Person
> oPrsn.DataSource.Open("mailto:myuserid@mydomain.com")
> Dim iMbx As CDO.IMailbox = oPrsn.GetInterface("IMailbox")
>
> When accessing any of the mailbox object properties a "<error: an 
> exception
> of type: {System.IO.DirectoryNotFoundException} occurred>" exception is
> thrown. This happened with any mailbox I tested. Any ideas?
>
> TIA
date: Fri, 3 Mar 2006 09:30:13 +1100   author:   Glen Scales [MVP]

Re: Can't access IMailbox properties   
Tried LDAP dn, same result.
date: 7 Mar 2006 04:57:49 -0800   author:   unknown

Re: Can't access IMailbox properties   
wrote in message 
news:1141736269.312768.249100@p10g2000cwp.googlegroups.com...
> Tried LDAP dn, same result.
>

In a private message I asked yoav:
Okay, what LDAP dn did you try? Does it match the reverse LDAP path in AD 
User's Computers? Did you actually connect to the LDAP DC first? Did you 
connect to the GC first?


His answer was:
I used this:

LDAP://NET/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il

which is the full adsPath of the user object in AD.  I'm not sure I 
understand your question about connecting to the LDAP DC and GC.

First, does "NET" have a fully qualified domain name?  If so, use it and let 
me know what happens.
If not, then proceed to the following.

The GC is the Global Catalog server.  You can initially bind to it and then 
get a server from it to run your LDAP query against.  Like:

Dim LDAPProvider As ActiveDs.IADs
Dim DSObject As ActiveDs.IADsOpenDSObject
Dim User As ActiveDs.IADsUser

If User Is Nothing Then

LDAPProvider = GetObject("GC://<the domain name>/RootDSE")
DomainName = LDAPProvider.Get("defaultnamingcontext")
DomainServer = LDAPProvider.Get("ServerName")
DomainServer = Mid(DomainServer, 4, InStr(DomainServer, ",") - 4)
DomainServer = DomainServer & ".<your domain name>"

DSObject = GetObject("LDAP:")
DomainServer = "LDAP://" & DomainServer & "/CN=" & UserName & ",OU=<your 
OU>,OU=<your OU>,OU=<your OU>," & DomainName
User = DSObject.OpenDSObject(DomainServer, LoginName, LoginPasswd, 
ADS_SECURE_AUTHENTICATION + ADS_SERVER_BIND)

.. . .
date: Wed, 29 Mar 2006 10:04:29 -0600   author:   microsoft

Re: Can't access IMailbox properties   
Hi Andrew,

Using the fully qualified domain name
(LDAP://NET.IEC.CO.IL/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il)
didn't solve the problem.

I tried your code and got a dn which looks like this:

LDAP://ServerName.net.iec.co.il/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il

but I still receive the same error from mailbox properties.

Thanks
date: 29 Mar 2006 23:23:10 -0800   author:   unknown

Re: Can't access IMailbox properties   
What was the error again?


 wrote in message 
news:1143703390.536663.208520@u72g2000cwu.googlegroups.com...
> Hi Andrew,
>
> Using the fully qualified domain name
> (LDAP://NET.IEC.CO.IL/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il)
> didn't solve the problem.
>
> I tried your code and got a dn which looks like this:
>
> LDAP://ServerName.net.iec.co.il/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il
>
> but I still receive the same error from mailbox properties.
>
> Thanks
>
date: Thu, 30 Mar 2006 10:01:28 -0600   author:   microsoft

Re: Can't access IMailbox properties   
Oh, never mind.  It was something to do with a file not found.

I now doubt that the problem is related to the LDAP.

Have you looked to manually to see if the mailbox is there (through Exchange 
System Manager)?

If the mailbox is there then your program is trying to access a file 
(probably a reference dll or configuration file or something) and can't find 
it.




 wrote in message 
news:1143703390.536663.208520@u72g2000cwu.googlegroups.com...
> Hi Andrew,
>
> Using the fully qualified domain name
> (LDAP://NET.IEC.CO.IL/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il)
> didn't solve the problem.
>
> I tried your code and got a dn which looks like this:
>
> LDAP://ServerName.net.iec.co.il/CN=myuserid,OU=Developers,OU=Clients,OU=North,DC=net,DC=iec,DC=co,DC=il
>
> but I still receive the same error from mailbox properties.
>
> Thanks
>
date: Thu, 30 Mar 2006 10:13:46 -0600   author:   microsoft

Re: Can't access IMailbox properties   
This is the error I'm getting:

error: an exception of type: {System.IO.DirectoryNotFoundException}
occurred

> Have you looked to manually to see if the mailbox is there (through Exchange
System Manager)? 

It's my own mailbox ;)
date: 31 Mar 2006 01:04:47 -0800   author:   unknown

Google
 
Web ureader.com


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