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

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
 
D

Danny Lesnik

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 :)))
 
G

Guest

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top