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

  • Thread starter Thread starter Vincent Nguyen
  • Start date Start date
V

Vincent Nguyen

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
 
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 :)))
 
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 :))
 
Back
Top