473,223 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,223 software developers and data experts.

Error when creating mailbox with CreateMailBox method.

I am using C# and ASP.Net to create users and mailboxes. I can create
an user without any problems but the code Blows up when i try to
create a mailbox. Here is the code snippet is am using

DirectoryEntry de = new DirectoryEntry();
DirectoryEntry ParentEntry = new DirectoryEntry();
CDOEXM.IMailboxStore Mailbox;

ParentEntry.Username = username;
ParentEntry.Password = password;
ParentEntry.AuthenticationType = AuthenticationTypes.Secure;
ParentEntry.Path = aDPathPrefix + aDPathSuffix;

de = ParentEntry.Children.Add("cn=" + commonName, "user");

//This enables the new user.
de.Properties["userAccountControl"].Value = 0x200;

Mailbox = (CDOEXM.IMailboxStore) de.NativeObject;
I get an error "System.Runtime.InteropServices.COMException: An
operations error occurred." on this line
"Mailbox.CreateMailbox(aDHomeMDB);" of my code. I am using
impersonation in my ASP.Net app and the user i am impersonating is a
domain admin. The environment i am working in is C#, ASP.NET, .net
framework 1.1 and Exchange 2003. I have verified the value of the
HomeMDB using ADISEdit utility and it is correct. I have installed
exchange tools on my machine. Any one out there who has an idea
regarding the permissions that have to be setup in ASP.NET to create a
mail box, please feel free to help me out.


Nov 16 '05 #1
0 1261

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

by: eri050 | last post by:
I get this error when trying to create a mailbox in VB.NET "System.Runtime.InteropServices.COMException: There is no such object on the server" I have added the CDOEXM dll I have created the...
by: Ingram Leedy | last post by:
Hi, I am using the example from Microsoft Knowledge Base Article - 313114, "HOW TO: Create a MailBox-Enabled Recipient by using C#.NET". The WindowsXP computer is part of the Microsoft 2003...
by: B. Zuidgeest | last post by:
I use C# to connect a database with student information directly to the Active Directory (2003). This means that as the student is enlisted an account and mailbox is created in the active...
by: Mandy | last post by:
Hi, I am trying to create a exchange mailbox-enabled user on Exchange Server 2003 via w ASP.NET web applcation (written in C#). I can create the user successfully but when I try to create the...
by: Flens | last post by:
Hi, I have code that worked until we upgraded from Exchange 2000 to Exchange 2003 and I now get a catastrophic failure at CreateMailbox (COMException (0x080004005)) I have updated the...
by: Michael | last post by:
Hello, I've created an ASP web page where users in our organization can create Active Directory computer accounts. The web page is running on a Server 2003 SP1 IIS 6 installation. The...
by: arjen1984 | last post by:
I want to create a mailbox-enabled mailbox. First i have used the toturial from microsoft: http://support.microsoft.com/kb/313114 Then my homeMDB string was incorrect. I saw an article , link:...
by: lezeou | last post by:
Hi, I'm trying to write an ASP page to create a user with an Exchange Mailbox. The user is create very well but i've got this error message when i try to create the mailbox : error '80072020' ...
by: rage2001 | last post by:
I have a script (ASP) written which creates an account in AD, creates a folder on our file server and sets its permissions, and then creates a mailbox on the exchange server and sets its...
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.