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: Thu, 30 Jun 2005 00:23:44 -0500,    group: microsoft.public.exchange2000.development        back       


IMailBox returning nothing   
Hello World,

Currently I'm writing a .Net application that uses the IMailBox interface 
via IPerson to iterate his/her contacts list; but I'm having trouble getting 
any values out of the IMailBox interface. Luckily, I'm having the same 
problem with a vbscript I pulled from MSDN:

---------------------
Set Person = CreateObject("CDO.Person")
strURL = "mailto:" & "me@myemailaddress.org"
Person.DataSource.Open strURL
Set Mailbox = Person.GetInterface("IMailbox")
WScript.Echo "URL to inbox for " & "me@myemailaddress.org" & " is: " & 
Mailbox.Inbox
---------------------
Output:
URL to inbox for me@myemailaddress.org is:
---------------------

Crawling through these interfaces via .Net results in the same thing: 
nothing for Mailbox.Inbox (which ought to be the URL for the Inbox folder). 
Basically I get nothing to return on the properties for this interface. I 
thought at first that it may be a permissions issue, but after having a 
system admin follow steps pointed to from this help doc: 
http://support.microsoft.com/default.aspx?scid=kb;en-us;821897, the results 
are the same. I'm sure that the email adress is correct (I obviously used a 
fake one for the sample above) as, in my .Net code, changing the email 
address purposefully to a bad one results in an exception.

Any thoughts?
-- 
Ben Rush
http://www.littlebigendian.com
date: Thu, 30 Jun 2005 00:23:44 -0500   author:   Ben Rush

Re: IMailBox returning nothing   
the CDO.Person class that implements IMailboxStore interface is
provided by a DLL known as CDOEX.dll, which is only present *on* an
actual exchange server. (Not the management tools.)  You do have a
version of CDO.Person on your host as provided by the CDOSYS.dll, but
it doesn't have the IMailboxStore interface.
 Copying the DLL from the exchange server to your localhost, and
registering it with regsrv32.exe will *not* work.  If you run that same
code on the exchange server itself it should work out nicely for you.
date: 5 Jul 2005 10:44:15 -0700   author:   aldousd666

Re: IMailBox returning nothing   
Thanks, but I have narrowed it down to a permissions issue on the server. If 
I try to retrieve my mailbox, for example, and log onto the Exchange server 
as myself, I am able to get values from IMailBox. However, if I'm logged in 
as Administrator, I cannot. I have tried following the instructions laid out 
here: http://support.microsoft.com/default.aspx?scid=kb;en-us;821897, but so 
far with no success.

Any other thoughts would be appreciated, thanks,

-- 
Ben Rush
http://www.littlebigendian.com



"aldousd666"  wrote in message 
news:1120585455.409433.13530@g44g2000cwa.googlegroups.com...
> the CDO.Person class that implements IMailboxStore interface is
> provided by a DLL known as CDOEX.dll, which is only present *on* an
> actual exchange server. (Not the management tools.)  You do have a
> version of CDO.Person on your host as provided by the CDOSYS.dll, but
> it doesn't have the IMailboxStore interface.
> Copying the DLL from the exchange server to your localhost, and
> registering it with regsrv32.exe will *not* work.  If you run that same
> code on the exchange server itself it should work out nicely for you.
>
date: Tue, 5 Jul 2005 14:36:42 -0500   author:   Ben Rush

Re: IMailBox returning nothing   
I solved my own problem shortly after posting this. The Administrator was a 
member of another account that had priviledges explicitly denied for reading 
the mailboxes. After tweaking said settings everything snapped together 
nicely. My problem was that I limited my scope to the Administrators group 
only, and failed to notice other groups...

-- 
Ben Rush
http://www.littlebigendian.com



"Ben Rush"  wrote in message 
news:etQqKkZgFHA.2840@tk2msftngp13.phx.gbl...
> Thanks, but I have narrowed it down to a permissions issue on the server. 
> If I try to retrieve my mailbox, for example, and log onto the Exchange 
> server as myself, I am able to get values from IMailBox. However, if I'm 
> logged in as Administrator, I cannot. I have tried following the 
> instructions laid out here: 
> http://support.microsoft.com/default.aspx?scid=kb;en-us;821897, but so far 
> with no success.
>
> Any other thoughts would be appreciated, thanks,
>
> -- 
> Ben Rush
> http://www.littlebigendian.com
>
>
>
> "aldousd666"  wrote in message 
> news:1120585455.409433.13530@g44g2000cwa.googlegroups.com...
>> the CDO.Person class that implements IMailboxStore interface is
>> provided by a DLL known as CDOEX.dll, which is only present *on* an
>> actual exchange server. (Not the management tools.)  You do have a
>> version of CDO.Person on your host as provided by the CDOSYS.dll, but
>> it doesn't have the IMailboxStore interface.
>> Copying the DLL from the exchange server to your localhost, and
>> registering it with regsrv32.exe will *not* work.  If you run that same
>> code on the exchange server itself it should work out nicely for you.
>>
>
>
date: Wed, 6 Jul 2005 01:28:00 -0500   author:   Ben Rush

Google
 
Web ureader.com


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