K
KPipher
Hello,
I'm having trouble implementing the CDOEXM Namespace in an asp.net
application (VB.NET). I've read many conflicting discussions
surrounding the use of CDOEXM remotely and would appreciate any
constructive insight.
Our basic server setup is as follows:
Server 1 (Webserver):
Windows Server 2003 Enterprise Edition.
IIS 6.0 / .NET 1.1
Exchange Management tools installed
Server 2 (Active Directory Server):
Windows Server 2003 Enterprise Edition
Active Directory
Server 3 (Exchange Server):
Exchange Server 2003
I'm trying to programatically create a new mailbox enabled user in AD.
I'm using ADSI and the System.DirectoryServices namespace to first
create the user in AD, which works without any problems. However I
cannot get the CDOEXM portion to work. The code I need to work is only
a few lines, basically as follows:
Imports CDOEXM
Dim user As New DirectoryEntry("LDAP Path to User Object")
Dim mbx as IMailboxStore = user.NativeObject
mbx.CreateMailbox("LDAP Path to MailBox Store Location")
user.CommitChanges
I get a compilation error, stating that the CDOEXM namespace is
unknown? i.e.:
Compiler Error Message: BC30466: Namespace or type 'CDOEXM' for the
Imports 'CDOEXM' cannot be found.
So my questions are:
1. Is CDOEXM usuable in .NET on a separate machine from Exchange
(2003), as long as the Exchange Management tools are installed on the
remote machine?
2. If so, what are the steps required after installing the management
tools on the remote machine?
3. Can I reference the CDOEXM namespace from a codebehind file? or does
it have to be from within a compilied .NET assembly?
Any help or suggestions would be greatly appreciated.
Thanks.
I'm having trouble implementing the CDOEXM Namespace in an asp.net
application (VB.NET). I've read many conflicting discussions
surrounding the use of CDOEXM remotely and would appreciate any
constructive insight.
Our basic server setup is as follows:
Server 1 (Webserver):
Windows Server 2003 Enterprise Edition.
IIS 6.0 / .NET 1.1
Exchange Management tools installed
Server 2 (Active Directory Server):
Windows Server 2003 Enterprise Edition
Active Directory
Server 3 (Exchange Server):
Exchange Server 2003
I'm trying to programatically create a new mailbox enabled user in AD.
I'm using ADSI and the System.DirectoryServices namespace to first
create the user in AD, which works without any problems. However I
cannot get the CDOEXM portion to work. The code I need to work is only
a few lines, basically as follows:
Imports CDOEXM
Dim user As New DirectoryEntry("LDAP Path to User Object")
Dim mbx as IMailboxStore = user.NativeObject
mbx.CreateMailbox("LDAP Path to MailBox Store Location")
user.CommitChanges
I get a compilation error, stating that the CDOEXM namespace is
unknown? i.e.:
Compiler Error Message: BC30466: Namespace or type 'CDOEXM' for the
Imports 'CDOEXM' cannot be found.
So my questions are:
1. Is CDOEXM usuable in .NET on a separate machine from Exchange
(2003), as long as the Exchange Management tools are installed on the
remote machine?
2. If so, what are the steps required after installing the management
tools on the remote machine?
3. Can I reference the CDOEXM namespace from a codebehind file? or does
it have to be from within a compilied .NET assembly?
Any help or suggestions would be greatly appreciated.
Thanks.