Поделиться через


HTTPS 500 Internal Server Error when logging into Exchange 2016 CU5 Exchange Control Panel (ECP)

Question

Wednesday, August 23, 2017 7:25 AM

After a crash on the Exchange server and an abnormal reboot, there was a problem with ECP access. There were errors in the journal. At the same time OWA works! The "Distribution groups" page is not yet displayed in the mail options in the Web version of Outlook with Error 500. I managed to enter the ECP administration center via the link https://mailkenk.ru/ecp/?ExchClientVer=15 but this does not always work. Restarting the server does not fix the error

Log Name: Application

Source: MSExchange Control Panel

Date: 23/08/2017 8:55:29

Event ID: 4

Task Category: General

Level: Error

Keywords: Classic

User: N / A

Computer: EX02.kek.kemnet.ru

Description:

Current user: 'KEK\Guskov'

Request for URL 'https://ex02.kek.kemnet.ru:444/ecp/DDI/DDIService.svc/GetList?ActivityCorrelationID=4d30293d-6e44-4e0c-a276-0c34b585a6b0&reqId=1503453329340&workflow=GetCount&ua=0&schema=Notification&msExchEcpCanary=Pd9hFx7TlkGA1434eQYxB3CJfamo59QI2rXLqQczq-nKOcfh02DnrSL6xNTPvrEDRl-H_tV3z9Q.(https://mailkenk.ru/ecp/DDI/DDIService.svc/GetList?ActivityCorrelationID=4d30293d-6e44-4e0c-a276-0c34b585a6b0&reqId=1503453329340&workflow=GetCount&ua=0&schema=Notification&msExchEcpCanary=Pd9hFx7TlkGA1434eQYxB3CJfamo59QI2rXLqQczq-nKOcfh02DnrSL6xNTPvrEDRl-H_tV3z9Q.)' failed with the following error:

System.TypeInitializationException: Инициализатор типа "Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor" выдал исключение. > System.InvalidOperationException: Не удается загрузить данные имени счетчика, поскольку в реестре обнаружен недопустимый индекс "".

   в System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)

   в System.Diagnostics.PerformanceCounterLib.get_NameTable()

   в System.Diagnostics.PerformanceCounterLib.get_CategoryTable()

   в System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category)

   в System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName)

   в Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor..cctor()

   Конец трассировки внутреннего стека исключений

   в Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor.LogActivity(CounterType counterType, String organizationName)

   в Microsoft.Exchange.Management.ControlPanel.RbacContext.CreateSession()

   в Microsoft.Exchange.Management.ControlPanel.RbacSettings.CreateSession()

   в Microsoft.Exchange.Management.ControlPanel.RbacSettings.get_Session()

   в Microsoft.Exchange.Management.ControlPanel.AuthenticationSettings..ctor(HttpContext context)

   в Microsoft.Exchange.Management.ControlPanel.RbacModule.Application_PostAuthenticateRequest(Object sender, EventArgs e)

   в System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   в System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

   в Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor.LogActivity(CounterType counterType, String organizationName)

   в Microsoft.Exchange.Management.ControlPanel.RbacContext.CreateSession()

   в Microsoft.Exchange.Management.ControlPanel.RbacSettings.CreateSession()

   в Microsoft.Exchange.Management.ControlPanel.RbacSettings.get_Session()

   в Microsoft.Exchange.Management.ControlPanel.AuthenticationSettings..ctor(HttpContext context)

   в Microsoft.Exchange.Management.ControlPanel.RbacModule.Application_PostAuthenticateRequest(Object sender, EventArgs e)

   в System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   в System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

System.InvalidOperationException: Не удается загрузить данные имени счетчика, поскольку в реестре обнаружен недопустимый индекс "".

   в System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)

   в System.Diagnostics.PerformanceCounterLib.get_NameTable()

   в System.Diagnostics.PerformanceCounterLib.get_CategoryTable()

   в System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category)

   в System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName)

   в Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor..cctor()

   в System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)

   в System.Diagnostics.PerformanceCounterLib.get_NameTable()

   в System.Diagnostics.PerformanceCounterLib.get_CategoryTable()

   в System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category)

   в System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName)

   в Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor..cctor()

Flight info: Features:[[Global.DistributedKeyManagement, False],[Global.FrontdoorDefaultURL, False],[Global.GlobalCriminalCompliance, False],[Global.MultiTenancy, False],[Global.PopulateGroupMasterSid, False],[Global.WindowsLiveID, False],[Eac.AllowMailboxArchiveOnlyMigration, True],[Eac.AllowRemoteOnboardingMovesOnly, False],[Eac.AllowSender, False],[Eac.AntiSpamBulkThresholdUI, False],[Eac.AntispamTenantAllowBlockLists, False],[Eac.BulkPermissionAddRemove, True],[Eac.CaseHoldQuery, False],[Eac.CaseHoldSearch, False],[Eac.CmdletLogging, True],[Eac.ComplianceAllPublicFolderSearch, False],[Eac.ComplianceCase, False],[Eac.ComplianceCaseClosing, False],[Eac.ComplianceCaseSources, False],[Eac.ComplianceExportIndividualMessageFormat, False],[Eac.ComplianceMnc, False],[Eac.ComplianceSearchRefiners, False],[Eac.ComplianceSearchStatistics, False],[Eac.ConditionCards, False],[Eac.ConditionCardsForCaseHoldQuery, False],[Eac.ConvertMailboxUI, False],[Eac.CrossPremiseMigration, False],[Eac.CustomizableMaxMsgSizeUI, True],[Eac.CutomizableSenderAuthenticationInNewDistributionGroup, False],[Eac.DevicePolicyMgmtUI, False],[Eac.DiscoveryDocIdHint, False],[Eac.DiscoveryMultiHoldSearch, False],[Eac.DiscoveryMultiQuerySearch, False],[Eac.DiscoveryMultiQueryV2Export, False],[Eac.DiscoveryPFSearch, True],[Eac.DiscoverySearchStats, False],[Eac.DiscoveryV1Export, True],[Eac.DistributionToUnifiedGroupMigrationEac, False],[Eac.DKIMSigningConfigUI, False],[Eac.DLPBlockForUnifiedCompliance, False],[Eac.DlpFingerprint, False],[Eac.DlpPolicyDetailsAndError, False],[Eac.DLPUnifiedCompliancePreview, False],[Eac.DLPWarnForUnifiedComplianceAvailability, False],[Eac.EACClientAccessRulesEnabled, False],[Eac.EacFeedbackControl, False],[Eac.EacPswsProxy, False],[Eac.EDiscoveryEacDecommisionExemption, True],[Eac.EdiscoveryExportPaging, False],[Eac.EdiscoveryExportV2AnalyzeWithZoom, False],[Eac.EdiscoveryExportV2ClientExportToolLiteEngine, False],[Eac.EdiscoveryExportV2General, False],[Eac.EdiscoveryHold, False],[Eac.EdiscoveryPreviewSearchUI, True],[Eac.EdiscoverySearchUI, False],[Eac.ExportDedupe, False],[Eac.ExportReportOnly, False],[Eac.FileFilter, False],[Eac.GeminiShell, False],[Eac.GrantSendOnBehalfToForSharedMailbox, False],[Eac.HoldForModernGroups, False],[Eac.InactiveMailboxForCaseHold, False],[Eac.InactiveMailboxSearch, False],[Eac.IsDedicatedTenant, False],[Eac.ManageMailboxAuditing, False],[Eac.ModernGroupCreateOnBehalfOf, False],[Eac.ModernGroupDelegatedUserSupport, False],[Eac.ModernGroupDomainSelectionSupport, False],[Eac.ModernGroupEnableDeliveryManagement, False],[Eac.ModernGroupManagement, False],[Eac.ModernGroupMoreEditOptions, False],[Eac.ModernGroupNonMailboxUserSupport, False],[Eac.ModernGroups, False],[Eac.ModernGroupsAllowCreationByNonAADAdmin, False],[Eac.ModernGroupsPromotion, False],[Eac.ModernGroupsSendOnBehalfOf, False],[Eac.NewAuditingOptInUIOptIn, True],[Eac.NewAuditingReportUIOptIn, True],[Eac.NonExchangeWorkloadsUI, False],[Eac.Office365DIcon, False],[Eac.OrgIdADSeverSettings, False],[Eac.PreviewQuarantineMessage, False],[Eac.PreviewQuarantineMessageAdvanced, False],[Eac.PreviewSnapshotSearchUI, False],[Eac.PromoteProtectionCenter, False],[Eac.ProtectionCenterForceRedirect, False],[Eac.ProtectionCenterOptIn, False],[Eac.ProtectionCenterOptOut, False],[Eac.PublicFolderHoldManagement, False],[Eac.RemoteDomain, False],[Eac.SafeAttachments, False],[Eac.SafeAttachmentsDynamicDelivery, False],[Eac.SafeLinks, False],[Eac.SafeLinksScanUrls, False],[Eac.ShowExternalStorageWarningInGCC, False],[Eac.SingleFolderExport, False],[Eac.SPOPickerSearchAllTenantContent, False],[Eac.SupervisoryReview, False],[Eac.SupportAdfsIdentityInEcpProxy, False],[Eac.TestTransferToE164Extension, False],[Eac.ToggleABQWarning, False],[Eac.UCCAlertsReportingUI, False],[Eac.UCCAuditReports, False],[Eac.UCCIngestionUI, False],[Eac.UCCPermissions, False],[Eac.UCCTestProbeUI, False],[Eac.UnifiedAuditPolicy, False],[Eac.UnifiedAuditReportUI, False],[Eac.UnifiedComplianceCenter, False],[Eac.UnifiedDlpGA, False],[Eac.UnifiedPolicy, True],[Eac.UnifiedRetention, False],[Eac.UnlistedServices, True],],  Flights:[],  Constraints:[[MACHINE, EX02],[MODE, ENTERPRISE],[PROCESS, MSEXCHANGEECPAPPPOOL],], IsGlobalSnapshot: True

Log Name: Application

Source: MSExchange Configuration Core

Date: 08/23/2012 8:57:12

Event ID: 1

Task Category: (1)

Level: Error

Keywords: Classic

User: N / A

Computer: EX02.kek.kemnet.ru

Description:

I can not find a description for event ID 1 from the MSExchange Configuration Core source. The component that triggers this event is not installed on this local computer or is corrupt. Install or restore the component on the local computer.

If the event occurred on another computer, you might need to save the displayed information along with the event.

The following information was added to the event:

11376

W3wp.exe

Exception from CmdletHealthCountersModule.Task_Release: System.TypeInitializationException: An initializer of type "Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor" threw an exception. > System.InvalidOperationException: The counter name data could not be loaded because an invalid index "" was found in the registry.

   In System.Diagnostics.PerformanceCounterLib.GetStringTable (Boolean isHelp)

   In System.Diagnostics.PerformanceCounterLib.get_NameTable ()

   In System.Diagnostics.PerformanceCounterLib.get_CategoryTable ()

   In System.Diagnostics.PerformanceCounterLib.CategoryExists (String machine, String category)

   In System.Diagnostics.PerformanceCounterCategory.Exists (String categoryName, String machineName)

   In Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor..cctor ()

    End of internal stack trace of exceptions

   In Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor.LogActivity (CounterType counterType, String organizationName)

   In Microsoft.Exchange.ProvisioningMonitoring.PerTenantCmdletHealthCounters.UpdateSuccessCount (ErrorRecord errorRecord)

   In Microsoft.Exchange.Configuration.Tasks.CmdletHealthCountersModule.IncrementSuccessCount (ErrorRecord errorRecord)

   In Microsoft.Exchange.Configuration.Tasks.CmdletHealthCountersModule.Task_Release (Object sender, EventArgs e)

   In Microsoft.Exchange.Configuration.Tasks.CriticalFeatureHelper.Execute (ICriticalFeature feature, Action action, TaskContext taskContext, String methodNameInLog)

A message resource exists, but the message was not found in the row table and message table

In the output of some commands, there was also an error, for example:

[PS] C: \ Windows \ system32> get-mailbox-Arbitration

Name Alias ​​ServerName ProhibitSendQuota

SystemMailbox {1f05a927 ... SystemMailbox {1f0 ... ex02 Unlimited

SystemMailbox {bb558c35 ... SystemMailbox {bb5 ... ex02 Unlimited

SystemMailbox {e0dc1c29 ... SystemMailbox {e0d ... ex02 Unlimited

Migration.8f3e7716-201 ... Migration.8f3e771 ... ex02 300 MB (314,572,800 bytes)

FederatedEmail.4c1f4d8 ... FederatedEmail.4c ... ex02 1 MB (1,048,576 bytes)

OAB Mailbox oabmbx3 ex02 Unlimited

SystemMailbox {D0E409A0 ... SystemMailbox {D0E ... ex02 Unlimited

SystemMailbox {2CE34405 ... SystemMailbox {2CE ... ex02 Unlimited

WARNING: The task module "CmdletHealthCountersModule.Task_IterateCompleted" failed with the exception "Type initializer

** "Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor" threw an exception. "This module will be skipped.**

The result of the task will not be violated.

WARNING: The task module module "CmdletHealthCountersModule.Task_Release" failed with the exception "Type initializer

"Microsoft.Exchange.Configuration.TenantMonitoring.TenantMonitor" threw an exception. "This module will be skipped.

The result of the task will not be violated.

All replies (7)

Friday, August 25, 2017 9:09 AM ✅Answered | 2 votes

Thanks for the answer. All of the above settings are correct. We managed to solve the problem by rebuilding the performance counters. C: \ windows \ system32 and ran lodctr / R Then did iisreset / NOFORCE. After these actions, the ESP became available!


Friday, August 25, 2017 8:41 AM

Hi,

It seems that this issue arise when login ECP and also open “Distribution Groups” page in OWA.

Based on experience, this issue is about OWA and ECP VD. We could troubleshoot from the following aspects: 

1. Application pools configuration of the OWA and ECP in IIS manager: Since your exchange edition is Exchange 2016 CU5,  the .NET framework version should be 4.0. Other settings should be same with the following figure.

  1. Site binding settings in default web site and back end web site: make sure that the configuration of the site bindings is correct, follow the figure below:

  1. If all settings above is correct, we could try to reset the OWA and ECP VD (In EAC, servers -> virtual directory ), then run IISRESET as an administrator in Powershell.

4. If issue remains occurring, we could check the IIS log in C:\inetpub\logs\LogFiles\W3SVC1. 

Best Regards,

Manu Meng
TechNet Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


Friday, August 25, 2017 3:41 PM

Great! Thank you for sharing the solution. I recommend you to mark your reply as answer, it will be convenient for others to find the answer!

Best Regards,

Manu Meng
TechNet Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


Monday, October 28, 2019 7:19 PM

Thanks for the answer. All of the above settings are correct. We managed to solve the problem by rebuilding the performance counters. C: \ windows \ system32 and ran lodctr / R Then did iisreset / NOFORCE. After these actions, the ESP became available!

This solution worked for me as well. After a week of trying different suggestions . OWA was working fine , only ECP we were getting 500 errors and couldn't login to EAC.

Thanks so much


Monday, October 28, 2019 7:20 PM

This solution worked for me as well. After a week of trying different suggestions . OWA was working fine , only ECP we were getting 500 errors and couldn't login to EAC.

Thanks so much


Tuesday, July 14, 2020 5:29 PM

You are the best, you are my hero!:)

For those who come across this problem:

In elevated promtp issued the command, it was working for a minute or so but completed succesfully, after that I tried to restart the IIS and it wouldnt so bounced the server and everything got back to normal!

I am so happy, that I have just registered to upvote this legendary guy; nothing else helped, already deleted and recreated every virtual directory and so on, nothing helped, but this!


Wednesday, July 29, 2020 4:13 PM

You are the best, you are my hero!:)