คำตอบ Error executing exchange powershell command

  • Friday, August 17, 2012 4:50 PM
     
     

    Hi,

    I'm try to execute a exchange powershell command in a WebsitPanel Server and have the following exception:

    Does the MailboxSentItemsConfiguration class exists in the namespace Microsoft.Exchange.Data.Storage.Management?

    I have de Exchange CAS rol installed and working ok

    System.TypeInitializationException: The type initializer for  'Microsoft.Exchange.Management.PowerShell.CmdletConfigurationEntries' threw an exception. ---> System.TypeLoadException: Could not load type  'Microsoft.Exchange.Data.Storage.Management.MailboxSentItemsConfiguration' from assembly 'Microsoft.Exchange.Data.Storage, Version=14.0.0.0,  Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

    at Microsoft.Exchange.Management.PowerShell.CmdletConfigurationEntries..cctor()    --- End of inner exception stack trace ---    at Microsoft.Exchange.Management.PowerShell.CmdletConfigurationEntries.get_ExchangeCmdletConfigurationEntries()    at Microsoft.Exchange.Management.PowerShell.AdminPSSnapIn.get_Cmdlets()    at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.MergeCustomPSSnapIn(PSSnapInInfo mshsnapinInfo, CustomPSSnapIn customPSSnapIn)   

    at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadCustomPSSnapIn(PSSnapInInfo mshsnapinInfo)    at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIn(PSSnapInInfo mshsnapinInfo)    at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIn(PSSnapInInfo mshsnapinInfo, PSSnapInException& warning)   

    at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.DoAddPSSnapIn(String name, PSSnapInException& warning)    at System.Management.Automation.Runspaces.RunspaceConfiguration.AddPSSnapIn(String name, PSSnapInException& warning)   

    at WebsitePanel.Providers.HostedSolution.Exchange2007.OpenRunspace() in C:\Sources\WebsitePanel.Providers.HostedSolution\Exchange2007.cs:line 5650   

    at WebsitePanel.Providers.HostedSolution.Exchange2010.OpenRunspace() in C:\Sources\WebsitePanel.Providers.HostedSolution\Exchange2010.cs:line 163  

    at WebsitePanel.Providers.HostedSolution.Exchange2007.GetMailboxGeneralSettingsInternal(String accountName) in C:\Sources\WebsitePanel.Providers.HostedSolution\Exchange2007.cs:line 2150   

    at WebsitePanel.Providers.HostedSolution.Exchange2007.GetMailboxGeneralSettings(String accountName) in C:\Sources\WebsitePanel.Providers.HostedSolution\Exchange2007.cs:line 256    at WebsitePanel.Server.ExchangeServer.GetMailboxGeneralSettings(String accountName) in C:\Sources\WebsitePanel.Server\ExchangeServer.asmx.cs:line 370


All Replies