ECP login failure

channaveera Swamy KM 6 Reputation points
2023-05-10T02:18:19.5166667+00:00

Hi All,

Logon to ECP files with the following error

Current user: 'Contoso\user1'
Request for URL 'https://exc01.hosp.local:444/ecp/default.aspx(https://exc01.hosp.local/ecp/)' failed with the following error:
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at AjaxControlToolkit.ToolkitScriptManager.ExpandAndSort(IList`1 scriptReferences)
   at AjaxControlToolkit.ScriptObjectBuilder.ScriptReferencesFromResourceEntries(IList`1 entries)
   at AjaxControlToolkit.ScriptControlBase.GetScriptReferences()
   at System.Web.UI.ScriptControl.System.Web.UI.IScriptControl.GetScriptReferences()
   at System.Web.UI.ScriptControlManager.AddScriptReferenceForScriptControl(List`1 scriptReferences, IScriptControl scriptControl)
   at System.Web.UI.ScriptControlManager.AddScriptReferencesForScriptControls(List`1 scriptReferences)
   at System.Web.UI.ScriptManager.RegisterScripts()
   at System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   at System.Web.UI.Page.HandleError(Exception e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

System.NullReferenceException: Object reference not set to an instance of an object.
   at AjaxControlToolkit.ToolkitScriptManager.ExpandAndSort(IList`1 scriptReferences)
   at AjaxControlToolkit.ScriptObjectBuilder.ScriptReferencesFromResourceEntries(IList`1 entries)
   at AjaxControlToolkit.ScriptControlBase.GetScriptReferences()
   at System.Web.UI.ScriptControl.System.Web.UI.IScriptControl.GetScriptReferences()
   at System.Web.UI.ScriptControlManager.AddScriptReferenceForScriptControl(List`1 scriptReferences, IScriptControl scriptControl)
   at System.Web.UI.ScriptControlManager.AddScriptReferencesForScriptControls(List`1 scriptReferences)
   at System.Web.UI.ScriptManager.RegisterScripts()
   at System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at AjaxControlToolkit.ToolkitScriptManager.ExpandAndSort(IList`1 scriptReferences)
   at AjaxControlToolkit.ScriptObjectBuilder.ScriptReferencesFromResourceEntries(IList`1 entries)
   at AjaxControlToolkit.ScriptControlBase.GetScriptReferences()
   at System.Web.UI.ScriptControl.System.Web.UI.IScriptControl.GetScriptReferences()
   at System.Web.UI.ScriptControlManager.AddScriptReferenceForScriptControl(List`1 scriptReferences, IScriptControl scriptControl)
   at System.Web.UI.ScriptControlManager.AddScriptReferencesForScriptControls(List`1 scriptReferences)
   at System.Web.UI.ScriptManager.RegisterScripts()
   at System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Flight info: Features:[[Global.DistributedKeyManagement, False],[Global.GlobalCriminalCompliance, False],[Global.MultiTenancy, False],[Global.WindowsLiveID, False],[Eac.AllowMailboxArchiveOnlyMigration, True],[Eac.AllowRemoteOnboardingMovesOnly, False],[Eac.BulkPermissionAddRemove, True],[Eac.CmdletLogging, True],[Eac.CrossPremiseMigration, False],[Eac.DevicePolicyMgmtUI, False],[Eac.DiscoveryDocIdHint, False],[Eac.DiscoveryPFSearch, False],[Eac.DiscoverySearchStats, False],[Eac.DlpFingerprint, False],[Eac.EACClientAccessRulesEnabled, False],[Eac.GeminiShell, False],[Eac.ManageMailboxAuditing, False],[Eac.ModernGroups, False],[Eac.Office365DIcon, False],[Eac.OrgIdADSeverSettings, False],[Eac.RemoteDomain, False],[Eac.UCCAuditReports, False],[Eac.UCCPermissions, False],[Eac.UnifiedAuditPolicy, False],[Eac.UnifiedComplianceCenter, False],[Eac.UnifiedPolicy, False],[Eac.UnlistedServices, False],],  Flights:[],  Constraints:[[MACHINE, EXC01-G-SWARH],[MODE, ENTERPRISE],[PROCESS, W3WP],], IsGlobalSnapshot: True
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,342 questions
{count} votes

2 answers

Sort by: Most helpful
  1. channaveera Swamy KM 6 Reputation points
    2023-05-10T02:20:14.23+00:00

    As part of the troubleshooting process i've carried out the following

    Checked the ECP ruls and auth methods & compared it with Other working servers – No issues found

    run updatecas.ps1 and UpdateConfigFiles.ps1 – Didn’t resovle the issue

    Checked the certificates - Looks good no issues found

    restarted the server - Didn’t resovle the issue

    replaced the webconf file from working server - Didn’t resovle the issue

    replaced remotedomain file in DDI folder - Didn’t resovle the issue

    replaced the DDI folder - Didn’t resovle the issue

    Recreated the virtual directory in the IIS - didn't resovle the issue.


  2. Amit Singh 4,846 Reputation points
    2023-05-11T09:32:11.75+00:00

    Have you tried:

    https://docs.microsoft.com/en-us/exchange/troubleshoot/administration/cannot-access-owa-or-ecp-if-oauth-expired#resolution

    https://www.stellarinfo.com/blog/exchange-server-http-500-error-ecp/

    Or are the bindings on the exchange backend correct?

    https://docs.microsoft.com/en-us/answers/questions/203118/error-500-exchange-2016.html

    Please Note: Since the web sites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.

    0 comments No comments