Where do you select it specifically? I couldn't find it anywhere. Also, cdolive is outdated :(
Main Topics
Browse All TopicsSystem: Windows 2000, Exchange 2000, Outlook XP (2002)
I have made a program that accesses an Outlook public appointments folder by creating an Outlook.Application OLE object. It allows the user only to add appointments at certain times and 1 hour blocks. It works just fine under my profile.
My problem now is that there is a group of about 50 users that have a shared mandatory Windows profile and do not have an Outlook profile (using a group policy, Outlook.exe is blocked). I somehow need to be able to access the public folder anyway.
Possible solution #1:
Create a "dummy" Exchange 2000 account (by creating a new user in Active Directory) that everyone uses. Set it up for the shared profile.
Problem:
olFolder := olNameSpace.Folders('Publi
gives a "You do not have permission to log on" error, even though I gave the "dummy" user "Owner" permissions.
Possible solution #2:
Use MAPI.Session instead of Outlook.Application. This will provide the ProfileInfo parameter in the olNameSpace.Logon method (look at http://support.microsoft.c
Problem:
During runtime, olApp := CreateOleObject('MAPI.Sess
Possible solution #3:
Do you have any? :)
So in summary, I need to somehow install MAPI so "MAPI.Session" will work, or fix "You do not have permission to log on".
Any help is appreciated. I am out of ideas right now.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
On your Office 2000 CD select "Add or Remove Features". When presented with the options dropdowns make sure that "Microsoft Office -> Microsoft Outlook for Windows -> Collaboration Data Objects" is selected, by default it is not. This should give you access to CDO programming functionality.
The http://www.cdolive.com/ site is undergoing upgrades, but the old content is avbailable at http://www.cdolive.com/sta
Regards,
Steven.
I figured out how to install CDO and finally was able to log on, etc. Now that I ran the program from the shared user's account I got a "You do not have permission to log on. [Microsoft Exchange Server Information Store - [MAPI_E_FAILONEPROVIDER(80
Here's my code:
------------------
cdoSession := CoSession.Create;
cdoSession.Logon('', '', false, true, 0, true, 'Mail' + #10 + 'OutlookAccess');
cdoPublicStore := cdoOpenFolder(cdoSession.I
cdoACNAppt := cdoOpenFolder(cdoOpenFolde
cdoMessage := cdoACNAppt.GetFirst;
ShowMessage(cdoMessage.Sub
--------------
function TfACNAppts.cdoOpenFolder(F
var i: Integer;
begin
for i := 1 to Folders.Count do
if Folders.Item[i].Name = FolderToOpen then
begin
Result := Folders.Item[i];
break;
end;
end;
--------------
Note the Logon() function that has:
'Mail' + #10 + 'OutlookAccess'
I am connecting to the server named 'Mail' to the account 'OutlookAccess', so it shouldn't be using the local profile. Why does it work for me (domain admin) and not them (domain users only)?
Business Accounts
Answer for Membership
by: StevenBPosted on 2002-06-06 at 21:22:16ID: 7061064
To use The MAPI.Session Object I'm pretty sure you need to have CDO installed. The default install of Outlook does not install CDO if I recall correctly, you have to select it specifically. http://www.cdolive.com/ is a great site for CDO and MAPI info.
Hope this helps somewhat.
Steven