473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Modifying Active Directory with ASP.Net

This seems to be a common problem in ASP.Net:

Try
Dim mystuff As DirectoryEntry = Session("myDirectoryEntry")
mystuff.Properties("extensionAttribute1")(0) = "yes"
mystuff.CommitChanges()
Catch ex As Exception
label1.Text = "this happens quite a bit"
End Try

Exception:
?ex
{System.Runtime.InteropServices.COMException}
[System.Runtime.InteropServices.COMException]:
{System.Runtime.InteropServices.COMException}
HelpLink: Nothing
InnerException: Nothing
Message: "The server is unwilling to process the request."
Source: "System.DirectoryServices"
StackTrace: " at System.DirectoryServices.Interop.IAds.SetInfo()
at System.DirectoryServices.DirectoryEntry.CommitChan ges()
at groupsearcher.searcher.Button2_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\groupsearcher\searcher.ascx.vb: line 210"
TargetSite: {System.Reflection.RuntimeMethodInfo}

Googles of "The Server is unwilling to process the request." seem to be
abundant but can't seem to find any solutions? I am running the ASP.Net
application with impersonation using a user that is able to do the commit
(it works in a Windows App just fine (replacing Session calls with Global
calls)).

Anyone???

Thanks!

Derek

PS - The myDirectoryEntry is of type DirectoryEntry obtained from a
SearchResult in another function.
Nov 19 '05 #1
1 1362
If anyone was curious, I found a solution. I was using GC:\\ in the query
path for the new directory entry when searching and should have been using
LDAP:\\

Derek

"Derek Martin" <dm*****@DONTSPAMMEokstateDOT.edu> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
This seems to be a common problem in ASP.Net:

Try
Dim mystuff As DirectoryEntry = Session("myDirectoryEntry")
mystuff.Properties("extensionAttribute1")(0) = "yes"
mystuff.CommitChanges()
Catch ex As Exception
label1.Text = "this happens quite a bit"
End Try

Exception:
?ex
{System.Runtime.InteropServices.COMException}
[System.Runtime.InteropServices.COMException]:
{System.Runtime.InteropServices.COMException}
HelpLink: Nothing
InnerException: Nothing
Message: "The server is unwilling to process the request."
Source: "System.DirectoryServices"
StackTrace: " at System.DirectoryServices.Interop.IAds.SetInfo()
at System.DirectoryServices.DirectoryEntry.CommitChan ges()
at groupsearcher.searcher.Button2_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\groupsearcher\searcher.ascx.vb: line 210"
TargetSite: {System.Reflection.RuntimeMethodInfo}

Googles of "The Server is unwilling to process the request." seem to be
abundant but can't seem to find any solutions? I am running the ASP.Net
application with impersonation using a user that is able to do the commit
(it works in a Windows App just fine (replacing Session calls with Global
calls)).

Anyone???

Thanks!

Derek

PS - The myDirectoryEntry is of type DirectoryEntry obtained from a
SearchResult in another function.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: microsoft | last post by:
Hi People, when I try to modify an active directory user programatically, I receive the following exception: The server is unwilling to process the request Reading the microsoft web site, I...
9
by: Mario Rodriguez | last post by:
Hi people. I have a problem adding users to Win2003 active directory programatically. When I execute my app throws the following exception: .................The specified directory service...
3
by: Martin | last post by:
I'm trying to paint my own caption bar/title bar and also my own frame border, but I'm having problems with modifying the clip region so windows doesn't paint over my stuff when I call base.WndProc...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
6
by: Leo_Surf | last post by:
Hello, I need your help adding user in Active Directory from ASP.net website. Could any one provide me the complete code for the html page. As this is my curriculam project and I dont have any...
1
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry =...
10
by: Hriday | last post by:
Hi there, Please help me..It is urgent This is Hriday, working on windows authentication with Active Directory... My requirment is when a user sends a request to my web Applicatoin I want to...
0
by: RTT | last post by:
here is my current situation. I develop a program on my computer's localhost. From there i contact Active directory succesfull using a connectionstring like:...
2
by: Jim in Arizona | last post by:
My goal, somehow, is to populate a dropdownlist with all the user names in active directory. I don't even know where to begin, really. I added a reference to System.DirectoryServices so I could...
5
by: IUnknown | last post by:
Ok, we are all aware of the situation where modifying the folder structure (adding files, folders, deleting files, etc) will result in ASP.NET triggering a recompilation/restart of the application....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.