Thomas
Guest
|
Posted:
Wed Nov 16, 2005 9:58 am Post subject:
Mail enable group with VS.Net |
|
|
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.
|
|