views:

315

answers:

1

When I try to access a public folder using Session.GetFolderFromPath I get an error "Error in IMAPITable.FindRow: MAPI_E_NOT_FOUND" at >>:

Type COMType = Type.GetTypeFromProgID("fkvbmapi.FKRDOSession");
RDOSession session = Activator.CreateInstance(COMType) as RDOSession;
Session.LogonExchangeMailbox(user, server);
>>RDOFolder folder = exchange.Session.GetFolderFromPath(@"\\Public Folders\All Public Folders")
+2  A: 

It seems to be necessary to have following code before calling GetFolderFromPath:

session.Stores.FindExchangePublicFoldersStore();
Mustafa