daly29
asked on
Code Errors
Hi I wonder If anyone could help me identify this error in the code on line 264. This is the error we get when we attempt to connect to an Intranet we had designed a few years ago by a chap who is no longer with us. I am afraid from a coding point of view i am a real novice
.
Could anyone please help
The server is not operational.
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.InteropServ ices.COMEx ception: The server is not operational.
Source Error:
Line 262: DirectorySearcher mySearcher = new DirectorySearcher(entry);
Line 263: mySearcher.Filter = "(&(objectClass=user)(sama ccountname =" + currentUserID + "))";
Line 264: SearchResult resEnt = mySearcher.FindOne();
Line 265: try
Line 266: {
Source File: c:\dartsIntranet\dartsIntr anetV2.1\A pp_Code\AC R.cs Line: 264
Stack Trace:
[COMException (0x8007203a): The server is not operational.
]
System.DirectoryServices.D irectoryEn try.Bind(B oolean throwIfFail) +377678
System.DirectoryServices.D irectoryEn try.Bind() +36
System.DirectoryServices.D irectoryEn try.get_Ad sObject() +31
System.DirectoryServices.D irectorySe archer.Fin dAll(Boole an findMoreThanOne) +78
System.DirectoryServices.D irectorySe archer.Fin dOne() +47
HudsonNash.AutomaticCrashR ecognition .ACR.PullA DUser() in c:\dartsIntranet\dartsIntr anetV2.1\A pp_Code\AC R.cs:264
HudsonNash.AutomaticCrashR ecognition .ACR.Store Bug() in c:\dartsIntranet\dartsIntr anetV2.1\A pp_Code\AC R.cs:182
HudsonNash.AutomaticCrashR ecognition .ACR.DoACR () in c:\dartsIntranet\dartsIntr anetV2.1\A pp_Code\AC R.cs:87
HudsonNash.AutomaticCrashR ecognition .ACR..ctor (String e, Page sender) in c:\dartsIntranet\dartsIntr anetV2.1\A pp_Code\AC R.cs:64
StartPage.PullADUser() in c:\dartsIntranet\dartsIntr anetV2.1\S tartPage.a spx.cs:999
StartPage.Page_Load(Object sender, EventArgs e) in c:\dartsIntranet\dartsIntr anetV2.1\S tartPage.a spx.cs:165
System.Web.Util.CalliHelpe r.EventArg FunctionCa ller(IntPt r fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEvent HandlerDel egateProxy .Callback( Object sender, EventArgs e) +35
System.Web.UI.Control.OnLo ad(EventAr gs e) +99
System.Web.UI.Control.Load Recursive( ) +50
System.Web.UI.Page.Process RequestMai n(Boolean includeStagesBeforeAsyncPo int, Boolean includeStagesAfterAsyncPoi nt) +627
.
Could anyone please help
The server is not operational.
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.InteropServ
Source Error:
Line 262: DirectorySearcher mySearcher = new DirectorySearcher(entry);
Line 263: mySearcher.Filter = "(&(objectClass=user)(sama
Line 264: SearchResult resEnt = mySearcher.FindOne();
Line 265: try
Line 266: {
Source File: c:\dartsIntranet\dartsIntr
Stack Trace:
[COMException (0x8007203a): The server is not operational.
]
System.DirectoryServices.D
System.DirectoryServices.D
System.DirectoryServices.D
System.DirectoryServices.D
System.DirectoryServices.D
HudsonNash.AutomaticCrashR
HudsonNash.AutomaticCrashR
HudsonNash.AutomaticCrashR
HudsonNash.AutomaticCrashR
StartPage.PullADUser() in c:\dartsIntranet\dartsIntr
StartPage.Page_Load(Object
System.Web.Util.CalliHelpe
System.Web.Util.CalliEvent
System.Web.UI.Control.OnLo
System.Web.UI.Control.Load
System.Web.UI.Page.Process
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
can you try using a local system account?
ASKER
That is not working either
ASKER
Thanks I thought I had closed this question. Whilst the answer did not directly resolve my issue it was a good pointer so thank you for your time and response
ASKER