Hi,
Hope that I am posting this in the correct place:-s
I have a problem with some code I wrote a while ago which imports students from an oracle database and creates the users account within Active Directory. For some reason the code has stopped working and when I debug the code It always fails on the createmailbox with error “unspecified error”.
Here is the section of my code
1 Dim ldapq AsString = GetUsersOU(username)
2 Dim user AsNew DirectoryEntry("LDAP://" & ldapq)
3 Dim mbx As IMailboxStore = user.NativeObject
4 try
5 mbx.CreateMailbox(RandomStorageGroup(acctype))
' RandomStorageGroup would =
"CN=Staff 1,CN=SG1,CN=InformationStore,CN=TEL-EXCH01,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=TCAT,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=tcat,DC=network"
6 user.CommitChanges()
7 sendWelcomeMessage(username, acctype)
8 catch ex as exception
9 dim message as string = ex.message
10 end try
The only thing that I can think of is that our exchange servers had the updates and security hot fix's applied about the time mbx.createmailbox started failing. I have stared at it for hours and can not see what’s going wrong.
Any Ideas ?
Thanks
Paul
Hope that I am posting this in the correct place:-s
I have a problem with some code I wrote a while ago which imports students from an oracle database and creates the users account within Active Directory. For some reason the code has stopped working and when I debug the code It always fails on the createmailbox with error “unspecified error”.
Here is the section of my code
1 Dim ldapq AsString = GetUsersOU(username)
2 Dim user AsNew DirectoryEntry("LDAP://" & ldapq)
3 Dim mbx As IMailboxStore = user.NativeObject
4 try
5 mbx.CreateMailbox(RandomStorageGroup(acctype))
' RandomStorageGroup would =
"CN=Staff 1,CN=SG1,CN=InformationStore,CN=TEL-EXCH01,CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=TCAT,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=tcat,DC=network"
6 user.CommitChanges()
7 sendWelcomeMessage(username, acctype)
8 catch ex as exception
9 dim message as string = ex.message
10 end try
The only thing that I can think of is that our exchange servers had the updates and security hot fix's applied about the time mbx.createmailbox started failing. I have stared at it for hours and can not see what’s going wrong.
Any Ideas ?
Thanks
Paul