Critical Error: The type initializer threw an error
Hi, I am unable to launch the Exchange Management Shell nor Exchange Management Console. I beleive this may be related to a recent removal and reinstall of windows PowerShell.
Is there a command I can run to try and resolve this issue?
EMC produces the following error message:
The type initializer for 'Microsoft.Exchange.Configuration.MonadDataProvider.ConnectionPool' threw an exception.
at Microsoft.Exchange.Configuration.MonadDataProvider.ConnectionPool.GetPooledRunspace(Int32 timeout, MonadConnection connection)
at Microsoft.Exchange.Configuration.MonadDataProvider.MonadConnection.Open()
at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
at Microsoft.Exchange.Management.SnapIn.Esm.OrganizationConfiguration.Mailbox.AddressListLoader.FillAddressBookBaseTable(RefreshRequestEventArgs e)
at Microsoft.Exchange.Management.SnapIn.Esm.OrganizationConfiguration.Mailbox.AddressListLoader.OnFillTable(RefreshRequestEventArgs e)
at Microsoft.Exchange.Management.SystemManager.DataTableLoader.Fill(RefreshRequestEventArgs e)
at Microsoft.Exchange.Management.SystemManager.DataTableLoader.OnDoRefreshWork(RefreshRequestEventArgs e)
at Microsoft.Exchange.Management.SystemManager.RefreshableComponent.worker_DoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
No Windows PowerShell Snap-ins are available for version 1.
at System.Management.Automation.PSSnapInReader.GetMshSnapinRootKey(RegistryKey versionRootKey, String psVersion)
at System.Management.Automation.PSSnapInReader.Read(String psVersion, String mshsnapinId)
at System.Management.Automation.Runspaces.MshConsoleInfo.AddPSSnapIn(String mshSnapInID)
at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.DoAddPSSnapIn(String name, PSSnapInException& warning)
at Microsoft.Exchange.Configuration.MonadDataProvider.MonadRunspaceConfiguration.AddPSSnapIn(RunspaceConfiguration runspaceConfiguration, String mshSnapInName)
at Microsoft.Exchange.Configuration.MonadDataProvider.MonadRunspaceConfiguration.Create()
at Microsoft.Exchange.Configuration.MonadDataProvider.ConnectionPool..cctor()
thanks!!
June 21st, 2009 6:37am