Mail enable group with VS.Net
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Mail enable group with VS.Net

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Thomas
Guest





Posted: Wed Nov 16, 2005 9:58 am    Post subject: Mail enable group with VS.Net Reply with quote

Hi

I try to create a mail enabled group with an ASP.Net web application.

When I run the code below in dubg mode I recive This error:
"Error HRESULT E_FAIL has been returned from a call to a COM component." Error Code: -2147467259

On the Website the error displayed is:
An operations error occurred. (Exception from HRESULT: 0x80072020)

My Code
'Dim strLDAPPath As String = "LDAP://domain.net/CN=User1,OU=test,DC=domain,DC=net"

Dim ADGroup As New DirectoryEntry(strLDAPPath, ConfigurationManager.AppSettings("ExUser"), ConfigurationManager.AppSettings("ExPassword"))
Dim mbx As IMailRecipient = ADGroup.NativeObject
mbx.MailEnable() <-- This line gets the error
ADGroup.CommitChanges()

Thanks for any help.

Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
New Topics Powered by phpBB