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:
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:
Code:
try
{
CDOEXM.IMailboxStore mailbox;
homeMDB = "CN=Mailbox Store(AOICTTESTSERVER), CN=First Storage Group,"
+ "CN=InformationStore, CN=AOICTTESTSERVER, CN=Servers,"
+ "CN=First Administrative Group, CN=Administrative Groups,"
+ "CN=AOICTTEST ,CN=Microsoft Exchange, CN=Services,"
+ "CN=Configuration, DC=AOICTTEST.local";
mailbox = (IMailboxStore)user.NativeObject;
mailbox.CreateMailbox(homeMDB);
user.CommitChanges();
}
catch(Exception e)
{
Response.Write("waar gaat het fout:"+e.ToString());
Response.Write("<br/>"+homeMDB);
}
this is my tree in Exchange:
AOICTTEST(Echange)
->Administrative Groups
-->Servers
--->AOICTTESTSERVER
---->First Storage Group
----->Mailbox store(AOICTTESTSERVER)
------>Mailboxes