Hi,
i am new on VB .net and i want to list all Active Directory Users in a WebInterface.
It is no problem in Windows Applications to list users, but in Web Application i allay get the following error
Server Error in '/IP-Phone-Admin' Application.
--------------------------------------------------------------------------------
The specified domain either does not exist or could not be contacted
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: The specified domain either does not exist or could not be contacted
Source Error:
Line 33: Dim result As System.Director yServices.Searc hResult
Line 34: mySearcher.Filt er = "(ObjectClass=u ser)"
Line 35: For Each result In mySearcher.Find All()
Line 36: DropDown.Items. Add(result.GetD irectoryEntry() .Path)
Line 37: Next
Source File: C:\Inetpub\wwwr oot\IP-Phone-Admin\WebForm1. aspx.vb Line: 35
Stack Trace:
[COMException (0x8007054b): The specified domain either does not exist or could not be contacted]
System.Director yServices.Direc toryEntry.Bind( Boolean throwIfFail)
System.Director yServices.Direc toryEntry.Bind( )
System.Director yServices.Direc toryEntry.get_A dsObject()
System.Director yServices.Direc torySearcher.Fi ndAll(Boolean findMoreThanOne )
System.Director yServices.Direc torySearcher.Fi ndAll()
IP_Phone_Admin. WebForm1.Page_L oad(Object sender, EventArgs e) in C:\Inetpub\wwwr oot\IP-Phone-Admin\WebForm1. aspx.vb:35
System.Web.UI.C ontrol.OnLoad(E ventArgs e)
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.P age.ProcessRequ estMain()
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET Version:1.1.432 2.573
I hope that anybody can help me
thanx
mario
i am new on VB .net and i want to list all Active Directory Users in a WebInterface.
It is no problem in Windows Applications to list users, but in Web Application i allay get the following error
Server Error in '/IP-Phone-Admin' Application.
--------------------------------------------------------------------------------
The specified domain either does not exist or could not be contacted
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: The specified domain either does not exist or could not be contacted
Source Error:
Line 33: Dim result As System.Director yServices.Searc hResult
Line 34: mySearcher.Filt er = "(ObjectClass=u ser)"
Line 35: For Each result In mySearcher.Find All()
Line 36: DropDown.Items. Add(result.GetD irectoryEntry() .Path)
Line 37: Next
Source File: C:\Inetpub\wwwr oot\IP-Phone-Admin\WebForm1. aspx.vb Line: 35
Stack Trace:
[COMException (0x8007054b): The specified domain either does not exist or could not be contacted]
System.Director yServices.Direc toryEntry.Bind( Boolean throwIfFail)
System.Director yServices.Direc toryEntry.Bind( )
System.Director yServices.Direc toryEntry.get_A dsObject()
System.Director yServices.Direc torySearcher.Fi ndAll(Boolean findMoreThanOne )
System.Director yServices.Direc torySearcher.Fi ndAll()
IP_Phone_Admin. WebForm1.Page_L oad(Object sender, EventArgs e) in C:\Inetpub\wwwr oot\IP-Phone-Admin\WebForm1. aspx.vb:35
System.Web.UI.C ontrol.OnLoad(E ventArgs e)
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.P age.ProcessRequ estMain()
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET Version:1.1.432 2.573
I hope that anybody can help me
thanx
mario
Comment