473,769 Members | 3,232 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# Exchange create mailbox

4 New Member
I want to create a mailbox-enabled mailbox. First i have used the toturial from microsoft:
http://support.microso ft.com/kb/313114
Then my homeMDB string was incorrect. I saw an article , link:
http://forums.asp.net/thread/952974.aspx
This guy has the same problem as me. I still have that problem. Mine server is a local server, so i have nog second domain name, i think.
This i my code of my homeMDB:

try
{
CDOEXM.IMailbox Store mailbox;
homeMDB = "CN=Mailbox Store(AOICTTEST SERVER), CN=First Storage Group,"
+ "CN=Information Store, CN=AOICTTESTSER VER, CN=Servers,"
+ "CN=First Administrative Group, CN=Administrati ve Groups,"
+ "CN=AOICTTE ST ,CN=Microsoft Exchange, CN=Services,"
+ "CN=Configurati on, DC=AOICTTEST.lo cal";
mailbox = (IMailboxStore) user.NativeObje ct;
mailbox.CreateM ailbox(homeMDB) ;
user.CommitChan ges();
}
catch(Exception e)
{
Response.Write( "waar gaat het fout:"+e.ToStri ng());
Response.Write( "<br/>"+homeMDB);
}


this is my tree in Exchange:
AOICTTEST(Echan ge)
->Administrati ve Groups
-->Servers
--->AOICTTESTSERVE R
---->First Storage Group
----->Mailbox store(AOICTTEST SERVER)
------>Mailboxes
Mar 16 '07 #1
0 2425

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1926
by: Manuel Krummenacher | last post by:
Hello! I'm trying to develop an application to manage email-forwardings on an Exchange 2000 Server. Forwardings to external Addresses are requiring a contact with an Exchange account. I can create the contact in the Active Directory, but when I try to create an Exchange Account, I get this error (translated from German):
2
4750
by: Vincent Nguyen | last post by:
Hi, I have problem create exchange 2000 mailbox using CDOEXM in my Web Service application. The error I got was "Catastrophic failure". Here is the code that I have: DirectoryEntry user = new DirectoryEntry("LDAP://fmsamrmc001.amrmc.minicorp.intel.com/"+strDN); user.Properties.Value = "aaamailbox1"; user.CommitChanges();
3
4022
by: maria.s | last post by:
Hi, I try to create a calender-item in the personal calendar folder from an ASP.NET application using XML-HTTP Request (WebDAV). System: Windows 2003 SP1, Exchange 2003 SP1 Configuration IIS: Default Web Site stopped, OWA running on a second virtual site, my application is running on a third virtual site.
0
1299
by: Gabe Matteson | last post by:
Good morning, The point of this posting is to find out a way to insert downloaded email into your exchange mailbox. 1. I know how to download pop3 mail using asp to a web page. 2. i would like to add a link on the exchange webmail options page which i successfully can that would load up my asp page which downloads email from my pop3 mailbox. i.e. my cox address. i would like to send all my mail that shows up in my web page to my exchange...
0
1832
by: Tim Sapp | last post by:
Guys, I am working on a new web site for our company and have started to move my code from VB.Net to C#. I have ran into a snag that I can't seem to figure out. I am trying to create an Exchange mailbox for a user ID that I just created using System.DirectoryServices. I have created the user, set the password, and enabled the account. When I try and create the mailbox I get a "The parameter is incorrect" error message on...
0
1580
by: Suman | last post by:
Hello Group, I am relatively new to .NET. I am trying to create a user in AD and a corresponding email account in the exchange server from an ASP.NET, C# application. ----------------------------- I have a problem wherein I am able to create a user but am unable to create a mailbox for the user. I "WAS" using exchange 2000.
2
9258
by: =?Utf-8?B?YXJqZW4xOTg0?= | last post by:
I have the following code that creates a user and makes a mailbox with it: private void kandidaatAanmaken(string voornaam, string achternaam, string gebruikersnaam) { string password = "1234567"; DirectoryEntry container, user; string homeMDB = ""; container = new DirectoryEntry("LDAP://192.168.0.56/CN=Users, DC=aoicttest, DC=local");
0
1734
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 permissions... This script use to work fine, and it hasnt been used in 2 months (since we have had no new students since the end of the term). I have part of the script below. There is alot of code above this script which gets executed perfectly....
4
17679
by: pjblecha | last post by:
Hello all: I'm working on a non-web-based (darn it...) application that will be set up as a scheduled task on an Exchange server to run against a mailbox 2-3 times per day. What the app needs to do is read messages in the mailbox, then create appointment items based on filtering the subject line and parsing text from the message body (which will be in HTML format). I have old VBScript that will create the appointment items, set them to a...
0
9590
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9424
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10223
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10051
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3968
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3571
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.