Discussion:
Error code 80070005 at "GetMailboxTable" call...
(too old to reply)
shivaraj
2007-10-26 11:18:22 UTC
Permalink
Hi,
I am facing some problem with MAPI. I have a code to fetch mailbox/
public folders from exch 2003 server. I am creating a profile
programmatically which will take a mailbox user name (which is having
domain admin privileges) and Exchange server name. I have nearly 5
exchange servers in which this code is working only for 3. For other
two setup its failing either at "GetMailboxTable" with 80070005 error
code or at "HrOpenExchangePrivateStore" with same error code. Any idea
what is the problem?

I feel its something to do with privileges of the profile which is
been created. Could any one tell me what is the minimum privilege a
user mailbox should have which can be used to create a profile which
can connect to private and public stores?

I am using a user which is having "domain admin" privileges. In one
server when it failed with this user, I made him part of "Exchange
view only permissions" and it worked !!! But the same trick did not
work for other exchange server. Please let me know your views.

Let me know if any one want to have a look at the code part.
Regards,
Shivaraj
Dgoldman [MSFT]
2007-10-28 01:55:10 UTC
Permalink
The account you are using need to have admin access to the information
store.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

Dgoldman
http://blogs.msdn.com/dgoldman
Download OABInteg
(http://gotdotnet.com/Community/UserSamples/Download.aspx?SampleGuid=A2338E73-F521-4071-9B1D-AAF49C346ACD)
Post by shivaraj
Hi,
I am facing some problem with MAPI. I have a code to fetch mailbox/
public folders from exch 2003 server. I am creating a profile
programmatically which will take a mailbox user name (which is having
domain admin privileges) and Exchange server name. I have nearly 5
exchange servers in which this code is working only for 3. For other
two setup its failing either at "GetMailboxTable" with 80070005 error
code or at "HrOpenExchangePrivateStore" with same error code. Any idea
what is the problem?
I feel its something to do with privileges of the profile which is
been created. Could any one tell me what is the minimum privilege a
user mailbox should have which can be used to create a profile which
can connect to private and public stores?
I am using a user which is having "domain admin" privileges. In one
server when it failed with this user, I made him part of "Exchange
view only permissions" and it worked !!! But the same trick did not
work for other exchange server. Please let me know your views.
Let me know if any one want to have a look at the code part.
Regards,
Shivaraj
shivaraj
2007-11-05 08:50:19 UTC
Permalink
Hi Dgoldman,
Thanks for your suggestions. In my view if a user is part of "Domain
Admin" then he will get admin access to the information store. Am I
right? if not how should I give admin access to this user? ( do i need
to make him part of any specific group? )
Regards,
Shivaraj
Post by Dgoldman [MSFT]
The account you are using need to have admin access to the information
store.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Dgoldmanhttp://blogs.msdn.com/dgoldman
Download OABInteg
(http://gotdotnet.com/Community/UserSamples/Download.aspx?SampleGuid=A...)
Post by shivaraj
Hi,
I am facing some problem with MAPI. I have a code to fetch mailbox/
public folders from exch 2003 server. I am creating a profile
programmatically which will take a mailbox user name (which is having
domain admin privileges) and Exchange server name. I have nearly 5
exchange servers in which this code is working only for 3. For other
two setup its failing either at "GetMailboxTable" with 80070005 error
code or at "HrOpenExchangePrivateStore" with same error code. Any idea
what is the problem?
I feel its something to do with privileges of the profile which is
been created. Could any one tell me what is the minimum privilege a
user mailbox should have which can be used to create a profile which
can connect to private and public stores?
I am using a user which is having "domain admin" privileges. In one
server when it failed with this user, I made him part of "Exchange
view only permissions" and it worked !!! But the same trick did not
work for other exchange server. Please let me know your views.
Let me know if any one want to have a look at the code part.
Regards,
Shivaraj- Hide quoted text -
- Show quoted text -
shivaraj
2007-11-05 09:13:38 UTC
Permalink
Hi Dgoldman,
http://technet.microsoft.com/en-us/library/aa996940.aspx
from this link what I felt is Exchnage View only permissions should be
enough to connect to stores. So in my view if I deligate Exchange View
Only permissions to the account, then it should be able to connect to
private/public store and collect required info. Is that correct ?
Since in my case with this role also its not connecting to store is
there a different way I can mention admin privilages to connect to
stores?
Regards,
Shivaraj
Post by Dgoldman [MSFT]
The account you are using need to have admin access to the information
store.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Dgoldmanhttp://blogs.msdn.com/dgoldman
Download OABInteg
(http://gotdotnet.com/Community/UserSamples/Download.aspx?SampleGuid=A...)
Post by shivaraj
Hi,
I am facing some problem with MAPI. I have a code to fetch mailbox/
public folders from exch 2003 server. I am creating a profile
programmatically which will take a mailbox user name (which is having
domain admin privileges) and Exchange server name. I have nearly 5
exchange servers in which this code is working only for 3. For other
two setup its failing either at "GetMailboxTable" with 80070005 error
code or at "HrOpenExchangePrivateStore" with same error code. Any idea
what is the problem?
I feel its something to do with privileges of the profile which is
been created. Could any one tell me what is the minimum privilege a
user mailbox should have which can be used to create a profile which
can connect to private and public stores?
I am using a user which is having "domain admin" privileges. In one
server when it failed with this user, I made him part of "Exchange
view only permissions" and it worked !!! But the same trick did not
work for other exchange server. Please let me know your views.
Let me know if any one want to have a look at the code part.
Regards,
Shivaraj- Hide quoted text -
- Show quoted text -
John Fullbright
2007-11-07 18:38:30 UTC
Permalink
It should work with exchange view only admin. You do not need domain admin
permissions.
Post by shivaraj
Hi Dgoldman,
http://technet.microsoft.com/en-us/library/aa996940.aspx
from this link what I felt is Exchnage View only permissions should be
enough to connect to stores. So in my view if I deligate Exchange View
Only permissions to the account, then it should be able to connect to
private/public store and collect required info. Is that correct ?
Since in my case with this role also its not connecting to store is
there a different way I can mention admin privilages to connect to
stores?
Regards,
Shivaraj
Post by Dgoldman [MSFT]
The account you are using need to have admin access to the information
store.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Dgoldmanhttp://blogs.msdn.com/dgoldman
Download OABInteg
(http://gotdotnet.com/Community/UserSamples/Download.aspx?SampleGuid=A...)
Post by shivaraj
Hi,
I am facing some problem with MAPI. I have a code to fetch mailbox/
public folders from exch 2003 server. I am creating a profile
programmatically which will take a mailbox user name (which is having
domain admin privileges) and Exchange server name. I have nearly 5
exchange servers in which this code is working only for 3. For other
two setup its failing either at "GetMailboxTable" with 80070005 error
code or at "HrOpenExchangePrivateStore" with same error code. Any idea
what is the problem?
I feel its something to do with privileges of the profile which is
been created. Could any one tell me what is the minimum privilege a
user mailbox should have which can be used to create a profile which
can connect to private and public stores?
I am using a user which is having "domain admin" privileges. In one
server when it failed with this user, I made him part of "Exchange
view only permissions" and it worked !!! But the same trick did not
work for other exchange server. Please let me know your views.
Let me know if any one want to have a look at the code part.
Regards,
Shivaraj- Hide quoted text -
- Show quoted text -
Dgoldman [MSFT]
2007-11-13 05:25:58 UTC
Permalink
You do not have sufficient access. Your error code with the permissions you
are using is access denied.

C:\WINDOWS\system32>err 80070005
# for hex 0x80070005 / decimal -2147024891
COR_E_UNAUTHORIZEDACCESS corerror.h
# MessageText:
# Access is denied.
ecAccessDenied ec.h
MAPI_E_NO_ACCESS mapicode.h
E_ACCESSDENIED winerror.h
# General access denied error
# as an HRESULT: Severity: FAILURE (1), FACILITY_WIN32 (0x7), Code 0x5
# for hex 0x5 / decimal 5
ERROR_ACCESS_DENIED winerror.h
# Access is denied.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

Dgoldman
http://blogs.msdn.com/dgoldman
Download OABInteg
(http://gotdotnet.com/Community/UserSamples/Download.aspx?SampleGuid=A2338E73-F521-4071-9B1D-AAF49C346ACD)
Post by John Fullbright
It should work with exchange view only admin. You do not need domain
admin permissions.
Post by shivaraj
Hi Dgoldman,
http://technet.microsoft.com/en-us/library/aa996940.aspx
from this link what I felt is Exchnage View only permissions should be
enough to connect to stores. So in my view if I deligate Exchange View
Only permissions to the account, then it should be able to connect to
private/public store and collect required info. Is that correct ?
Since in my case with this role also its not connecting to store is
there a different way I can mention admin privilages to connect to
stores?
Regards,
Shivaraj
Post by Dgoldman [MSFT]
The account you are using need to have admin access to the information
store.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Dgoldmanhttp://blogs.msdn.com/dgoldman
Download OABInteg
(http://gotdotnet.com/Community/UserSamples/Download.aspx?SampleGuid=A...)
Post by shivaraj
Hi,
I am facing some problem with MAPI. I have a code to fetch mailbox/
public folders from exch 2003 server. I am creating a profile
programmatically which will take a mailbox user name (which is having
domain admin privileges) and Exchange server name. I have nearly 5
exchange servers in which this code is working only for 3. For other
two setup its failing either at "GetMailboxTable" with 80070005 error
code or at "HrOpenExchangePrivateStore" with same error code. Any idea
what is the problem?
I feel its something to do with privileges of the profile which is
been created. Could any one tell me what is the minimum privilege a
user mailbox should have which can be used to create a profile which
can connect to private and public stores?
I am using a user which is having "domain admin" privileges. In one
server when it failed with this user, I made him part of "Exchange
view only permissions" and it worked !!! But the same trick did not
work for other exchange server. Please let me know your views.
Let me know if any one want to have a look at the code part.
Regards,
Shivaraj- Hide quoted text -
- Show quoted text -
Loading...