System.TypeInitializationException: The type initializer for 'Microsoft.Crm.LocatorService' threw an exception. --->
System.TypeInitializationException: The type initializer for 'Microsoft.Crm.ServerLocatorService' threw an exception. --->
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Int32.Parse(String s, IFormatProvider provider)
at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)
at System.Diagnostics.PerformanceCounterLib.get_NameTable()
at System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
at System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category)
at System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName)
at System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName)
at Microsoft.Crm.LocatorCache.CreatePerformanceCounters()
at Microsoft.Crm.LocatorCache..ctor()
at Microsoft.Crm.ServerLocatorService..cctor()
--- End of inner exception stack trace ---
at Microsoft.Crm.LocatorService..ctor()
at Microsoft.Crm.CrmTraceSettings.LoadScaleGroupSettings()
at Microsoft.Crm.LocatorService..ctor()
at Microsoft.Crm.LocatorService..cctor()
--- End of inner exception stack trace ---
at Microsoft.Crm.Utility.RetrieveScaleGroupId()
at Microsoft.Crm.CrmKeySetting.Initialize(Boolean loadSettingsFromConfigDB, Guid scaleGroupId, ConfigSku configSku)
at Microsoft.Crm.CrmKeySetting..ctor(CrmKeyType crmKeyType, Boolean loadSettingsFromConfigDB, Boolean useCachedValues, Guid scaleGroupId, ConfigSku configSku)
at Microsoft.Crm.CrmKeySetting.CreateKeySetting(CrmKeyType keyType, ConfigSku configSku)
at Microsoft.Crm.Setup.Server.ServerSetup.Initialize()
at Microsoft.Crm.Setup.Server.ServerSetup.InternalMain(String[] args)