0

Hello

I noticed strange behavior viewing mailbox permission of few users, which throws error:

Server was unable to process request. —> Invalid URI: The hostname could not be parsed. —> Invalid URI: The hostname could not be parsed.
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at SolidCP.Providers.Exchange.ExchangeServer.GetMailboxPermissions(String organizationId, String accountName)
at SolidCP.EnterpriseServer.ExchangeServerController.GetMailboxPermissions(Int32 itemId, Int32 accountId)

 

So I go to Exchange Powershell console and call the cmdlet from solidcp event viewer:
Get-ADPermission -Identity ‘user’ -DomainController ‘dc’

WARNING: An unexpected error has occurred and a Watson dump is being generated: Invalid URI: The hostname could not be
parsed.
Invalid URI: The hostname could not be parsed.
+ CategoryInfo          : NotSpecified: (:) [Get-ADPermission], UriFormatException
+ FullyQualifiedErrorId : System.UriFormatException,Microsoft.Exchange.Management.RecipientTasks.GetADPermission
+ PSComputerName        : dc

 

I checked then modified cmdlet:

Get-Mailbox -Identity ‘user’ -DomainController ‘dc’ | Get-ADPermission

And this cmdlet runs correctly. I asked then on technet forum of this behavior and I received answers, that it might be problems using alias as identity.

So I suggest to use above cmdlet with pipeline in source code.