In order to debug the problem further, I suggest you try calling CommitChanges() at several different points in order to see which specific changes can't be committed.
Main Topics
Browse All TopicsI am getting the the following error when trying to add a new group to AD from a C# web service:
The error is: The server is unwilling to process the request. (Exception from HRESULT: 0x80072035)
Here is the code:
private bool pCreateGroup(string groupName, string parentGroupName, string orgUnitName, string domainName)
{
bool res;
String ADserver = "LDAP://theServerName";
DirectoryEntry deAD = new DirectoryEntry(ADserver, "theUsername", "thePassword");
GrpType gt = GrpType.GlobalGrp | GrpType.SecurityGrp;
int typeNum = (int)gt;
DirectoryEntry ou = deAD.Children.Find("OU=" + orgUnitName);
DirectoryEntry group = ou.Children.Add("cn=" + groupName, ou.SchemaClassName);
group.Properties["sAMAccou
group.Properties["descript
group.Properties["groupTyp
group.CommitChanges();
res = true;
}
catch (Exception ex)
{
res = false;
}
return res;
}
The function throws an exception at group.CommitChanges();
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Justin_WPosted on 2006-08-22 at 10:47:45ID: 17365970
From http://www.microsoft.com/t echnet/scr iptcenter/ funzone/pu zzle/ answe rs/apr2806 .mspx:
As it turns out, the error message “The server is unwilling to process the request” is not only a bit alarming, but a bit misleading as well. The server is actually more than happy to process your request; it’s just a bit confused by what you want it to do. If you get back this particular error message it invariably means that you’re trying to do something to Active Directory that Active Directory doesn’t support (or at least doesn’t understand). For example, you might be trying to create a user with a blank password even though your domain policy prohibits blank passwords. You might be trying to bind to an Active Directory object that doesn’t exist. Or – ... – you might be passing an incorrect parameter to an Active Directory method. Any of those things can cause the server to throw up its hands and say that it is “unwilling to process the request.”