0

Hi,

We have enabled the Out Off Office feture in 1.4.6

When i go to the mailbox and try to sett OOO trugh websitepanel we recive the folowing error.

ERROR: ‘Hosted Microsoft Exchange Server 2016’ SetMailboxAutoReplySettings
System.Management.Automation.ParameterBindingException: Cannot bind parameter ‘AutoReplyState’. Cannot convert value “Enabled” to type “Microsoft.Exchange.InfoWorker.Common.OOF.OofState”. Error: “Invalid cast from ‘SolidCP.Providers.HostedSolution.OofState’ to ‘Microsoft.Exchange.InfoWorker.Common.OOF.OofState’.” —> System.Management.Automation.PSInvalidCastException: Cannot convert value “Enabled” to type “Microsoft.Exchange.InfoWorker.Common.OOF.OofState”. Error: “Invalid cast from ‘SolidCP.Providers.HostedSolution.OofState’ to ‘Microsoft.Exchange.InfoWorker.Common.OOF.OofState’.” —> System.InvalidCastException: Invalid cast from ‘SolidCP.Providers.HostedSolution.OofState’ to ‘Microsoft.Exchange.InfoWorker.Common.OOF.OofState’.
at System.Convert.DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
at System.Management.Automation.LanguagePrimitives.ConvertIConvertible(Object valueToConvert, Type resultType, Boolean recursion, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
— End of inner exception stack trace —
at System.Management.Automation.LanguagePrimitives.ConvertIConvertible(Object valueToConvert, Type resultType, Boolean recursion, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
at System.Management.Automation.LanguagePrimitives.ConversionData`1.Invoke(Object valueToConvert, Type resultType, Boolean recurse, PSObject originalValueToConvert, IFormatProvider formatProvider, TypeTable backupTable)
at System.Management.Automation.LanguagePrimitives.ConvertTo(Object valueToConvert, Type resultType, Boolean recursion, IFormatProvider formatProvider, TypeTable backupTypeTable)
at System.Management.Automation.ParameterBinderBase.CoerceTypeAsNeeded(CommandParameterInternal argument, String parameterName, Type toType, ParameterCollectionTypeInformation collectionTypeInfo, Object currentValue)
— End of inner exception stack trace —
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at SolidCP.Providers.HostedSolution.Exchange2016.ExecuteShellCommand(Runspace runSpace, Command cmd, Boolean useDomainController, Object[]& errors, Boolean writeErrorExchangeLog)
at SolidCP.Providers.HostedSolution.Exchange2016.SetMailboxAutoReplySettingsInternal(String accountName, ExchangeMailboxAutoReplySettings settings)
at SolidCP.Server.ExchangeServer.SetMailboxAutoReplySettings(String accountName, ExchangeMailboxAutoReplySettings settings)

And

Cmdlet failed. Cmdlet Get-MailboxSearch, parameters -Identity “user@domain.com -DomainController “domaincontroler.domain.local”.

Dose any one have any idees on how to fix this?

Answered question