<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Enterprise Services  Integration</title><link>http://forums.asp.net/46.aspx</link><description>Integrating Enterprise Services including Office, OWC, BizTalk, MSMQ, COM+, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Calling CDOEXM.dll from an ASP.NET web page</title><link>http://forums.asp.net/thread/3258337.aspx</link><pubDate>Thu, 25 Jun 2009 17:05:34 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3258337</guid><dc:creator>awclements</dc:creator><author>awclements</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3258337.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3258337</wfw:commentRss><description>&lt;p&gt;It appears that in order to do this, I need to setup a Windows 2003 server with SP3 and Visual Studio - install Exchange 2003 on it, install the management tools and then add the references in the correct order to VS and I might be able to get it to compile.&amp;nbsp; Apparantly I&amp;#39;m not the only one with this problem:&amp;nbsp; http://www.velocityreviews.com/forums/t87995-cdoexm-error-adding-assembly.html&lt;/p&gt;&lt;p&gt;If Microsoft is wondering why it is losing market share to Open Source... this might be a good place to start.&lt;/p&gt;&lt;p&gt;Anyway, I found that joeware.net has a executable command line tool that will email enable an AD group - so I will try to work with that.&amp;nbsp; So I found a way to call a command line instruction from a C# program, I just need to do it remotely - or remotely call the C# program.&amp;nbsp; Any ideas?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Calling CDOEXM.dll from an ASP.NET web page</title><link>http://forums.asp.net/thread/3256468.aspx</link><pubDate>Wed, 24 Jun 2009 23:25:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3256468</guid><dc:creator>awclements</dc:creator><author>awclements</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3256468.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=46&amp;PostID=3256468</wfw:commentRss><description>&lt;p&gt;Hello Forum Folks,&lt;/p&gt;&lt;p&gt;If I picked the wrong category to put this problem in, I kindly apologise in advance.&lt;/p&gt;&lt;p&gt;Synopsis:&amp;nbsp; I have an ASP.NET web application in C#.&amp;nbsp; Under certain conditions, it will create security groups in AD.&amp;nbsp; I need to email-enable these AD groups.&amp;nbsp; It is my understanding that this can be accomplished through CDOEXM with the following example code:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre name="code" class="c-sharp"&gt; //Bind to group using account with permission to mail enable objects&lt;br /&gt; DirectoryEntry ADGroup = new DirectoryEntry(&amp;quot;LDAP://mydc.com/&amp;quot;+GroupDN,&amp;quot;svcacctusername&amp;quot;, &amp;quot;svcacctpassword&amp;quot;);&lt;br /&gt; //Cast Native Object to CDOEXM&lt;br /&gt; IMailRecipient MailRecip = (IMailRecipient)ADGroup.NativeObject;&lt;br /&gt; //Mail Enable&lt;br /&gt; MailRecip.MailEnable(null);&lt;br /&gt; //Save Object Changes&lt;br /&gt; ADGroup.CommitChanges();&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;Because CDOEXM only resides on Exchange servers, this code must be run on an exchange server.&amp;nbsp; Theoretically, I need to create a DCOM wrapper with the above code, place it somewhere on the exchange server then call said code from the ASP.NET code on the IIS server.&amp;nbsp; Is that the correct way to do this, or is there a better way?&lt;/p&gt;&lt;p&gt;For a CDOEXM refresher:&lt;a href="http://msdn.microsoft.com/en-us/library/aa142616%28EXCHG.65%29.aspx"&gt;cdoexm.dll&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;First problem: creating the DCOM wrapper.&amp;nbsp; I copied the CDOEXM.dll to my machine then tried to use the &amp;#39;Add Reference&amp;#39; in Visual Studio to import it.&amp;nbsp; It fails with this message - &amp;quot;A reference to &amp;#39;D:\filepath\codexm.dll could not be added.&amp;nbsp; Please make sure that the file is accessible, and that it is a valid assembly or COM component&amp;quot;.&amp;nbsp; I believe I need to register this dll with my system first, but I&amp;#39;m not sure that is possible because it seems that I need Exchange Administrative Tools installed as well and I assume that requires Exchange, which I don&amp;#39;t think I can get installed on my dev box.&amp;nbsp; Is there another way to develop this code?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Second problem:&amp;nbsp; My ASP.NET app is on one server and Exchange is on another.&amp;nbsp; How do I call the DCOM wrapper from a different machine?&amp;nbsp; Where do I place the DCOM wrapper code?&amp;nbsp; What do I need to do to make it accessible from another machine?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance for your input&lt;/p&gt;&lt;p&gt;--awclements&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>