Can not mail enable group - "the server is unwilling to proc
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
Can not mail enable group - "the server is unwilling to proc

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





Posted: Wed Aug 17, 2005 12:47 am    Post subject: Can not mail enable group - "the server is unwilling to proc Reply with quote

Hello all,

I'm trying to mail enable an already existing group on an Exchange 2003
server via C# using CDO and when I attempt to commit my changes, I get an
"the server is unwilling to process the request" error returned. I'm using
almost identical code to mail-enable a contact and it works, so I'm at a
loss to explain the error. The account the code is running as has the
appropriate rights delegated to it through both AD and the Exchange server.
If I use Active Directory Users and Computers, I can create, mail-enable,
and then delete any user, group or contact object under the delegated OU, so
it's obviously a problem with my code. Here's a snippet - maybe someone can
see something wrong...

static private ProcessingResult EnableGroup(DirectoryEntry group, string
emailAddress)
{
ProcessingResult result = ProcessingResult.prSuccess;

try
{
// "group" references a group that already exists in AD
IMailRecipient recipient = group.NativeObject as IMailRecipient;
recipient.MailEnable(String.Empty);
group.CommitChanges(); // this is where the exception is thrown
...
}
catch (Exception e)
{
result = ProcessingResult.prCreateFailed;
}
}

Along with the exception, I get a _COMPlusExceptionCode of 3762507597
(0xE0434F4D) and an HRESULT of 2147950645 (0x80072035).

I've been looking around the web for a solution to this problem and all I've
found for possible causes are either permissions on the object or some
required property hasn't been set. However, since I can modify the group
through AD Users and Computers, I don't think permissions is the problem.
Also, since the group has already been created and all I'm trying to do is
mail enable it, I would think that all the mandatory properties have already
been set - but I could be wrong about this. Does anybody have any ideas?

Thanks.

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
Contact Us
New Topics Powered by phpBB