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
- Edited by Desarrollo ETB Friday, August 17, 2012 4:53 PM
All Replies
-
Wednesday, August 22, 2012 6:26 PMHi any ideas how to solve this problem?
-
Thursday, August 23, 2012 2:20 AMModerator
Hi,
I'm not familiar with the class you mentioned. I've just check the code of WSP Server. There's no MailboxSentItemsConfiguration defined in the application, and I cannot find the class or namespace under the exchange assemblies WSP Server referenced. I suggest you check exchange shell reference, maybe you can find what you want there:
Exchange Management Shell Library API
http://msdn.microsoft.com/en-us/library/gg274498(v=exchg.140)Thanks.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com. Microsoft One Code Framework
- Edited by Lloyd ZhangMicrosoft Contingent Staff, Moderator Thursday, August 23, 2012 2:22 AM
-
Friday, August 24, 2012 5:17 PM
I not found that was the cause of the problem, the only additional thing that I did was install VS 2010 in order to debug the Websitepanel agent, and then the problem happen.
Without VS installed all work fine.- Marked As Answer by Desarrollo ETB Friday, August 24, 2012 5:17 PM

