Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / April 2005

Tip: Looking for answers? Try searching our database.

Problems creating a folder in the Organizational Forms Library

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sander Kooij - 29 Apr 2005 16:06 GMT
Hello,

I am trying to create a folder in the organizational forms library
with the purpose to programmatically publish custom forms in this
folder, so they can be used by other exchange users. To test this, I
have created a sample application in C# which connects to exchange and
creates a test folder.

The problem is that when I try to create a new folder using CDO, I get
the following error:
"[Collaboration Data Objects - [E_ACCESSDENIED(80070005)]]"

This sounds like a simple rights issue, but I have tried practically
everything. I have created a new user, which I have added to the
Administrators group as well as to the Domain Administrators group. I
have granted Full mailbox rights to the this user and I have given the
user full rights on the Public Folders folder in Exchange. This,
unfortunaly does not do the trick. Then I delegated the Exchange Full
Administrator role to the user. With no success.

When I try to create the folder manually in the Exchange System
Manager en then try to publish the form I get the following error:
"You don't have appropriate permission to perform this operation."

This clearly indicates a rights issue, but I don't know where or what
right needs to be set. Has anybody ever encounter the same problem in
an similar situation or does some knows the solution?

Thanks in advance,

-    Sander Kooij

Here a snippet from my code:

// ----- Creation of the folder ---
for (int z=1; z < (int)eformsRegistryObjects.Count+1; z++)
{
    // Get Folder and check if the folder is the iXware folder
    olvFolder = (MAPI.Folder)eformsRegistryObjects.get_Item(z);
    if (olvFolder.Name.Equals("Test Forms"))
        break;
}

// Check if correct folder is found, if not create it
if (olvFolder == null || !olvFolder.Name.Equals("Test Forms"))
{
    // Add Folder
    olvFolder = (MAPI.Folder)eformsRegistryObjects.Add("Test
Forms");
}

// Get The StoreID and FolderID
StoreID = (string)olvFolder.StoreID;
FolderID = (string)olvFolder.ID;

// ----- Registration of the form ---
// Get Folder
MAPIFolder Folder = olApp.Session.GetFolderFromID(FolderID, StoreID);
if (Folder == null)
    return false;

// Publish form in subfolder of organisational form library
formDescription.PublishForm(OlFormRegistry.olFolderRegistry, Folder);
Sue Mosher [MVP-Outlook] - 30 Apr 2005 21:14 GMT
The Org Forms library doesn't support subfolders. Publish forms to the Org Forms library itself.

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hello,
>
[quoted text clipped - 59 lines]
> // Publish form in subfolder of organisational form library
> formDescription.PublishForm(OlFormRegistry.olFolderRegistry, Folder);
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.