我在我自己的机器上创建邮箱,一切正常,只要一放到服务器上就会出现
comSystem.Runtime.InteropServices.COMException (0x8007203A): 该服务器不可操作。= at CDOEXM.IMailboxStore.CreateMailbox(String HomeMDBURL)= at InterActiveDirectory.ExchangeAccount.CreateNewExchangeAccount2(DirectoryEntry userEntry, String& errStr) in c:\inetpub\wwwroot\adserver\interactivedirectory\exchangeaccount.cs:line 148
这主要是什么问题,望有经验同志告知!!!
comSystem.Runtime.InteropServices.COMException (0x8007203A): 该服务器不可操作。= at CDOEXM.IMailboxStore.CreateMailbox(String HomeMDBURL)= at InterActiveDirectory.ExchangeAccount.CreateNewExchangeAccount2(DirectoryEntry userEntry, String& errStr) in c:\inetpub\wwwroot\adserver\interactivedirectory\exchangeaccount.cs:line 148
这主要是什么问题,望有经验同志告知!!!
{
CDOEXM.IMailboxStore mailbox = (CDOEXM.IMailboxStore)userEntry.NativeObject;
ADVB.AdUser ad=new ADVB.AdUser();
mailbox.CreateMailbox(ad.GetEmailStoreName().ToString());
userEntry.CommitChanges(); }
这个就是最后创建邮箱的方法
使用模拟账户<identity impersonate="true" userName="系统用户名" password="系统密码" />