T
Tatopitta
Hi all,
I've read many times some threads with this problem but no answer is
simple and good enough. Here's my situation:I've developed a web
application with query LDAP which from System.Environment.UserName gets
Name,Department, and so on. It works fine if I access the site with
http://localhost/Site, but if I use
http://Server/Site it gives me the following error:
[COMException (0x80072020): An operations error occurred.
]
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
+610
System.DirectoryServices.DirectoryEntry.Bind() +36
System.DirectoryServices.DirectoryEntry.get_AdsObject() +31
System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne) +73
System.DirectoryServices.DirectorySearcher.FindOne() +42
MasterPage.GetID() in
c:\inetpub\wwwroot\trackingactivity\MasterPage.master.vb:19
MasterPage.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\trackingactivity\MasterPage.master.vb:7
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1061
and the source of the problem is the function:
Result = mySearcher.FindOne()
So, the server is in my domain, I use VS2005, iis settings are:
Enable anonymous access --> NO!!!
Enable Integrated Windows, Digest, Basic Authentication
Please, what can we do to make it work?
))
Thank you.
I've read many times some threads with this problem but no answer is
simple and good enough. Here's my situation:I've developed a web
application with query LDAP which from System.Environment.UserName gets
Name,Department, and so on. It works fine if I access the site with
http://localhost/Site, but if I use
http://Server/Site it gives me the following error:
[COMException (0x80072020): An operations error occurred.
]
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
+610
System.DirectoryServices.DirectoryEntry.Bind() +36
System.DirectoryServices.DirectoryEntry.get_AdsObject() +31
System.DirectoryServices.DirectorySearcher.FindAll(Boolean
findMoreThanOne) +73
System.DirectoryServices.DirectorySearcher.FindOne() +42
MasterPage.GetID() in
c:\inetpub\wwwroot\trackingactivity\MasterPage.master.vb:19
MasterPage.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\trackingactivity\MasterPage.master.vb:7
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Control.LoadRecursive() +131
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1061
and the source of the problem is the function:
Result = mySearcher.FindOne()
So, the server is in my domain, I use VS2005, iis settings are:
Enable anonymous access --> NO!!!
Enable Integrated Windows, Digest, Basic Authentication
Please, what can we do to make it work?
Thank you.