T
Tomas
I'm trying in ASP.NET web page load user accounts from active directory.
When I'm developing on local web server it works.
I'm using authentication mode=windows and identity impersonate=true
When I put page and DLL on server I get COMException. I try to run it on
Win2000 server and Win2003 server and I get the same results (COMException)
Can anyone help ?
Server Error in '/ADSearchNtsrvprnTest' Application.
--------------------------------------------------------------------------------
An operations error occurred
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: An
operations error occurred
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80072020): An operations error occurred]
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +705
System.DirectoryServices.DirectoryEntry.Bind() +10
System.DirectoryServices.DirectoryEntry.get_AdsObject() +10
System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne) +199
System.DirectoryServices.DirectorySearcher.FindOne() +31
ADSearchNtsrvprnTest.WebForm1.GetAllUsersInfo1(String Root) in
\\ntsrvprn\wwwroot$\adsearchntsrvprntest\webform1.aspx.cs:76
ADSearchNtsrvprnTest.WebForm1.Page_Load(Object sender, EventArgs e) in
\\ntsrvprn\wwwroot$\adsearchntsrvprntest\webform1.aspx.cs:29
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +739
When I'm developing on local web server it works.
I'm using authentication mode=windows and identity impersonate=true
When I put page and DLL on server I get COMException. I try to run it on
Win2000 server and Win2003 server and I get the same results (COMException)
Can anyone help ?
Server Error in '/ADSearchNtsrvprnTest' Application.
--------------------------------------------------------------------------------
An operations error occurred
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: An
operations error occurred
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x80072020): An operations error occurred]
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +705
System.DirectoryServices.DirectoryEntry.Bind() +10
System.DirectoryServices.DirectoryEntry.get_AdsObject() +10
System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne) +199
System.DirectoryServices.DirectorySearcher.FindOne() +31
ADSearchNtsrvprnTest.WebForm1.GetAllUsersInfo1(String Root) in
\\ntsrvprn\wwwroot$\adsearchntsrvprntest\webform1.aspx.cs:76
ADSearchNtsrvprnTest.WebForm1.Page_Load(Object sender, EventArgs e) in
\\ntsrvprn\wwwroot$\adsearchntsrvprntest\webform1.aspx.cs:29
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +739