471,337 Members | 1,411 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

CreateMailbox Error

I get this error when trying to create a mailbox in VB.NET

"System.Runtime.InteropServices.COMException: There is no such object on the
server"

I have added the CDOEXM dll
I have created the user in AD so I know the user exists

This is my code.
Dim newUser As DirectoryEntry
newUser = New DirectoryEntry("LDAP://" + UserPath, UserName, Pwd)

'Create user email account
Dim homeMDB As String = "CN=Users (serverName),CN=SG
Users,CN=InformationStore," _
+ "CN=ServerNMae
,CN=Servers,CN=123,CN=Administrative" _
+ "Groups,CN=test org,CN=Microsoft
Exchange," _
+
"CN=Services,CN=Configuration,DC=test,DC=com"

Dim mailbox As CDOEXM.IMailboxStore = newUser.NativeObject
mailbox.CreateMailbox(homeMDB)
newUser.CommitChanges()

Jul 21 '05 #1
0 924

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by p | last post: by
reply views Thread by Mandy | last post: by
reply views Thread by eri050 | last post: by
reply views Thread by rosydwin | last post: by

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.