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

How to Create Exchange 2000 mailbox in C# and using Web Service?

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["mailNickName"].Value = "aaamailbox1";
user.CommitChanges();
CDOEXM.IMailboxStore mailbox = (IMailboxStore)user.NativeObject;
mailbox.CreateMailbox(strStoreDN); // here where it's failing with
message "Catastrophic failure."
user.CommitChanges();
The problem only happen in Web Service application but not the console
application. I really don't understand why. If any of you could help me
fix the problem, I really appriciated. Thanks!

Vincent
Intel
Nov 15 '05 #1
2 4726
I think you have a problem with permissions ASP.NET
account doesn/h have rights to open exchange account, but
your local account does have.

Here is a solution for this problem

set password for your local asp.net account and open
EXACTLY(with the same password ) the same account on your
remote server grant this account rights to create new mail
box. i think it should be ok :)))

-----Original Message-----
Hi,

I have problem create exchange 2000 mailbox using CDOEXM in my Web Serviceapplication. The error I got was "Catastrophic failure". Here is the codethat I have:

DirectoryEntry user = new
DirectoryEntry ("LDAP://fmsamrmc001.amrmc.minicorp.intel.com/"+strDN);user.Properties["mailNickName"].Value = "aaamailbox1";
user.CommitChanges();
CDOEXM.IMailboxStore mailbox = (IMailboxStore) user.NativeObject;mailbox.CreateMailbox(strStoreDN); // here where it's failing withmessage "Catastrophic failure."
user.CommitChanges();
The problem only happen in Web Service application but not the consoleapplication. I really don't understand why. If any of you could help mefix the problem, I really appriciated. Thanks!

Vincent
Intel
.

Nov 15 '05 #2
I think you have a problem with permissions ASP.NET
account doesn/h have rights to open exchange account, but
your local account does have.

Here is a solution for this problem

set password for your local asp.net account and open
EXACTLY(with the same password ) the same account on your
remote server grant this account rights to create new mail
box. i think it should be ok :))

Nov 15 '05 #3

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

Similar topics

0
by: Chris | last post by:
I am trying to solve the following problem using c#: One of our customers sends orders using mail attachments. When these attachments arrive at their designated mail account on our exchange...
0
by: Arun T M | last post by:
I have a Windows Service written in VB .NET which connects to an Exchange Server and accesses the messages in the Public Folders. I am using Collaborative Data Objects to do this. When I run the...
0
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...
0
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...
2
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...
5
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...
0
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:...
0
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...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
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,...
0
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,...
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...

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.