473,761 Members | 2,410 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDOEXM Issues

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.Director yServices 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.NativeObje ct
mbx.CreateMailb ox("LDAP Path to MailBox Store Location")
user.CommitChan ges

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.

Nov 19 '05 #1
0 1104

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1532
by: Erick Bodine | last post by:
I am trying to get a list of Storage Groups on an Exchange Server (E2K) with an eye towards deleting/creating more. I am going off of the Exchange SDK docs in msdn (http://msdn.microsoft.com/library/en-us/wss/wss/_cdo_enumerating_storage_groups_and_stores.asp) to do this. I used makepy.py (on 'Microsoft CDO for Exchange Management Library') to generate early binding and thought everything was going fine, but I get the following...
0
1129
by: Dave Spina | last post by:
I have been working with the System.DirectoryServices namespace and the CDOEXM COM objects in a recent project. After probing the CDOEXM object set for a while I noticed that beyond the usual IMailboxStore interface there existed a MailboxClass class, which does have quite a few properties that would be wonderful to explore. I have tried casting, but that is illegal, and there is no mention of this class or its use anywhere that I have...
4
2142
by: Barry G Freeman | last post by:
I'm fairly new to C# and I need to be able to enumerate the storage groups and mailstores on our Exchange 2k server. So far, i've figured out that I need to ue CDOEXM which I've added as a COM reference. I can instatiate a server object and iDataSource2: CDOEXM.ExchangeServer ExchSrvr = new CDOEXM.ExchangeServerClass(); CDOEXM.IDataSource2 ds2; But how do I attach the IDataSource2 with the server object?
0
1289
by: Ingram Leedy | last post by:
Hi, I am using the example from Microsoft Knowledge Base Article - 313114, "HOW TO: Create a MailBox-Enabled Recipient by using C#.NET". The WindowsXP computer is part of the Microsoft 2003 based domain with Exchange 2003 installed. I have installed Exchange 2003 System Management Tools on the WinXP computer which works fine to create and edit users. I am logged in with a security context that has permissions to make changes
1
2283
by: TM | last post by:
Greetings, I've more or less figured out how to get a list of users who have access to a particular user's mailbox (code below), but I'm stumped as to how to get a list of users that a particular user has access to. In other words, if I'm finding out info for user jdoe, I can get a list of users who have access to jdoe's mailbox, but I can't get a list of mailboxes that jdoe can access. MUCH thanks to any who can help! Blessings, TM
0
2587
by: TM | last post by:
Greetings, I've more or less figured out how to get a list of users who have access to a particular mailbox (code below), but I'm stumped as to how to get a list of mailboxes that a particular user has access to. In other words, if I'm finding out info for user jdoe, I can get a list of users who have access to jdoe's mailbox, but I can't get a list of mailboxes that jdoe can access. MUCH thanks to any who can help! Blessings, TM
8
3424
by: Rob Edwards | last post by:
When trying to add the Microsoft CDO for Exchange Management Library (aka CDOEXM.dll) I receive the following message: "A reference to 'Microsoft CDO for Exchange Management Library' could not be added. Converting the type library to a .Net assembly failed. A depended type library 'CDO' could not be converted to a .NET assembly. A dependent type library 'ADODB' could not be converted to a .NET assembly. Item has already been added." ...
0
2598
by: Mandy | last post by:
Hi, I am trying to create a exchange mailbox-enabled user on Exchange Server 2003 via w ASP.NET web applcation (written in C#). I can create the user successfully but when I try to create the mailbox I get the following exception: System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic failure at CDOEXM.IMailboxStore.CreateMailbox(String HomeMDBURL)
0
1427
by: Tommy Holm Jakobsen | last post by:
Hi, In my csproj, how can I add a reference to the CDOEXM library, so I can manage my Exchange 2003 server remotely? According to the following URL, I have to install the "Exchange Management Components", but I can't find those anywhere? http://www.microsoft.com/technet/scriptcenter/topics/exchange/exchange_roadmap.mspx#EZG Anyone?
0
9353
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9975
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9909
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8794
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5241
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3889
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3481
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.