Hello all,
I have posted this in the PowerShell forum also, but thought I would post here in case anyone has any ideas. Just today I've run into an error running the Disable-Mailbox cmdlet, something as simple as "Disable-Mailbox User1". Here is the error. This line in the error intrigued me: System.Collections.Generic.KeyNotFoundException: VariantConfig.settings.ini could not be found. I have Googled and Googled and can't find any answers. Any help would be appreciated. If I need to post this in an Exchange forum, please let me know.
PS C:\Users\smith_ds\Desktop> $error | select [a-z]*
ErrorRecord : The type initializer for 'Microsoft.Exchange.Configuration.Tasks.ThrottlingModule`1' threw an exception.
StackTrace : at System.Management.Automation.CommandProcessor.Init(CmdletInfo cmdletInformation)
at System.Management.Automation.CommandProcessor..ctor(CmdletInfo
cmdletInfo, ExecutionContext context)
at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(CommandInfo
commandInfo, CommandOrigin commandOrigin,
Nullable`1 useLocalScope, SessionStateInternal sessionState)
at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String
commandName, CommandOrigin commandOrigin, Nullable`1
useLocalScope)
at System.Management.Automation.ExecutionContext.CreateCommand(String
command, Boolean dotSource)
at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor
pipe, CommandParameterInternal[] commandElements,
CommandBaseAst commandBaseAst, CommandRedirection[] redirections, ExecutionContext
context)
at System.Management.Automation.PipelineOps.InvokePipeline(Object
input, Boolean ignoreInput, CommandParameterInternal[][]
pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections,
FunctionContext funcContext)
at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame
frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame
frame)
WasThrownFromThrowStatement : False
Message : The type initializer for 'Microsoft.Exchange.Configuration.Tasks.ThrottlingModule`1' threw an exception.
Data : {System.Management.Automation.Interpreter.InterpretedFrameInfo}
InnerException : System.TypeInitializationException: The type initializer for 'Microsoft.Exchange.Configuration.Tasks.ThrottlingModule`1' threw an
exception. ---> System.Collections.Generic.KeyNotFoundException: VariantConfig.settings.ini
could not be found.
at Microsoft.Exchange.VariantConfiguration.VariantConfigurationSnapshot.GetObject[T](String
config, String section)
at Microsoft.Exchange.Data.Directory.SystemConfiguration.ConfigurationSettings.SettingOverrideSync.Start(Boolean
refreshNow)
at Microsoft.Exchange.Configuration.Tasks.ThrottlingModule`1..cctor()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[]
arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Microsoft.Exchange.Configuration.Tasks.TaskModuleFactory.<Create>d__0.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1
collection)
at Microsoft.Exchange.Configuration.Tasks.Task..ctor()
at Microsoft.Exchange.Configuration.Tasks.DataAccessTask`1..ctor()
at Microsoft.Exchange.Management.RecipientTasks.DisableMailbox..ctor()
at lambda_method(Closure )
at System.Management.Automation.CommandProcessor.Init(CmdletInfo
cmdletInformation)
TargetSite : System.Array SynchronousExecuteEnumerate(System.Object, System.Collections.Hashtable, Boolean)
HelpLink :
Source : System.Management.Automation
HResult : -2146233087
PSMessageDetails :
Exception : System.TypeInitializationException: The type initializer for 'Microsoft.Exchange.Configuration.Tasks.ThrottlingModule`1' threw an exception.
---> System.Collections.Generic.KeyNotFoundException: VariantConfig.settings.ini could not be found.
at Microsoft.Exchange.VariantConfiguration.VariantConfigurationSnapshot.GetObject[T](String config,
String section)
at Microsoft.Exchange.Data.Directory.SystemConfiguration.ConfigurationSettings.SettingOverrideSync.Start(Boolean
refreshNow)
at Microsoft.Exchange.Configuration.Tasks.ThrottlingModule`1..cctor()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean
constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[]
parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo
culture, Object[]
activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args,
CultureInfo culture, Object[]
activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Microsoft.Exchange.Configuration.Tasks.TaskModuleFactory.<Create>d__0.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at Microsoft.Exchange.Configuration.Tasks.Task..ctor()
at Microsoft.Exchange.Configuration.Tasks.DataAccessTask`1..ctor()
at Microsoft.Exchange.Management.RecipientTasks.DisableMailbox..ctor()
at lambda_method(Closure )
at System.Management.Automation.CommandProcessor.Init(CmdletInfo cmdletInformation)
TargetObject :
CategoryInfo : NotSpecified: (:) [], TypeInitializationException
FullyQualifiedErrorId : System.TypeInitializationException
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}