473,396 Members | 1,792 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,396 software developers and data experts.

creating mailboxes on exchange 2003 clusters

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 directory. Creating users is
flawless en mailbox creating went perfect against a single exhange server
using code from KB article 313114 of which part is displayed below.

mailbox = (IMailboxStore)user.NativeObject;
mailbox.CreateMailbox(homeMDB);
user.CommitChanges();

Now I need to let this code run against an exhange cluster and I can't get
it to work. It gives "There is no such object on the server" errors. I
personally think that somhow the homeMDB url is incorrect. But I can't find
any information on what the differences might be between the path on a
cluster or 'normal' exchange machine. I traced the path using ldap browsers
and it looks to be correct.

Any insights are welcome.
Nov 16 '05 #1
1 1938
You don't post the value of the homeMDB parameter you are using. The homeMDB
should be in the form:

CN=MAILSTORENAME,CN=STORAGEGROUPNAME,
CN=InformationStore,CN=EXCHANGEVIRTUALSERVERNAME,
CN=Servers,CN=ADMINISTRATIVEGROUPNAME,
CN=Administrative Groups,CN=EXCHANGEORGNAME,
CN=Microsoft Exchange,CN=Services,
CN=Configuration,DC=DOMAIN,DC=COM

Replace captical valuenames with appropriate values. There is really no
difference in clustered or normal exhcange MDB paths... You can use ADSI
edit to locate the mailstore's distinguished name in active directory.
Arild
"B. Zuidgeest" <BZ********@discussions.microsoft.com> wrote in message
news:1D**********************************@microsof t.com...
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 directory. Creating users is
flawless en mailbox creating went perfect against a single exhange server
using code from KB article 313114 of which part is displayed below.

mailbox = (IMailboxStore)user.NativeObject;
mailbox.CreateMailbox(homeMDB);
user.CommitChanges();

Now I need to let this code run against an exhange cluster and I can't get
it to work. It gives "There is no such object on the server" errors. I
personally think that somhow the homeMDB url is incorrect. But I can't
find
any information on what the differences might be between the path on a
cluster or 'normal' exchange machine. I traced the path using ldap
browsers
and it looks to be correct.

Any insights are welcome.

Nov 16 '05 #2

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

Similar topics

0
by: skippy | last post by:
I am writing a program in C# that needs to create and modify exchange mailboxes/recipients on our exchange 5.5 server. I had this working a long time ago in VB but I can not find any code in .net...
4
by: Ron Vecchi | last post by:
I a runnning w2k3 pop3 mail server that came with iis6. I would like to write an application that progammtically creates the new mailboxes in an already established mail domain. Does anyone know...
0
by: Ouaes Jamali | last post by:
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 ...
3
by: Sunil | last post by:
Hi, I am newbie to client applications involving exchange 5.5. My task is to come up with a web solution where users will be able to view their mailbox by logging into a portal. I will be using...
1
by: - Steve - | last post by:
I can create a mailbox using ASP.NET if I authenticate the administrator using IIS authentication. I've switched to forms based authentication, authenticating against AD, and everything is working...
0
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. ...
1
by: Gerhard | last post by:
How can I create a new contact in exchange server from a vb.net web application?
1
by: Leon | last post by:
Is there an example of the ASP page that will display size of my IS of 10 Exchange servers and size of the mail boxes. Servers are all 2003 Exchange STD and based around the globe all in one...
1
usafshah
by: usafshah | last post by:
Hi All I'm using exchange server 2003 sp2, on windows server 2003 sp1. I had backed up the MDBDATA folder. Is it possible to restore all the previous mailboxes from MDBDATA folder, as it contains...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.