A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Outlook » Contacts
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

.NET Programmatically accessing Exchange shared and public folders



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old August 7th, 2006, 09:54 PM posted to microsoft.public.outlook.contacts
DeborahK
external usenet poster
 
Posts: 10
Default .NET Programmatically accessing Exchange shared and public folders

I am trying to programmatically access Exchange shared and public folders via
Outlook from a .NET application.

Here is the line of code that is generating an error:

Dim olns As Outlook.NameSpace = OutlookInstance.GetNamespace("MAPI")
mapiFolder = olns.GetFolderFromID(folderID, storeID)

The error is:
"The messaging interface has returned an unknown error. If the problem
persists, restart Outlook".

I don't get the error message when accessing the user's default mailbox. I
also don't get the error message if the user manually opens Outlook before
using my application.

The application is correctly loading Outlook using:
' Create the instance of outlook
_OL = New Outlook.Application
I know this because I can see Outlook being added to the Task Manager.

I have been struggling with this for days so if anyone has ideas I would
appreciate them.

THANKS!
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:55 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.