WARNING: An unexpected error has occurred and a Watson dump is being generated: Value cannot be null.
Parameter name: constraintProvider
Value cannot be null.
Parameter name: constraintProvider
+ CategoryInfo : NotSpecified: (:) [New-App], ArgumentNullException
+ FullyQualifiedErrorId : System.ArgumentNullException,Microsoft.Exchange.Management.Extension.NewApp
+ PSComputerName :
Following exchange PowerShell commands can be used to workaround the above issue.
Command to deploy the Office Mail App internally:
Add-Type -AssemblyName System.Web
$Mbx = get-mailbox "mailbox"
$uri = new-object system.uri(
https://EV_server.domain.com/EnterpriseVault/OfficeMailAppManifest.aspx?LegacyMbxDn= +
[System.Web.HttpUtility]::UrlEncode($Mbx.LegacyExchangeDN))
$webclient = New-Object Net.Webclient
$webClient.UseDefaultCredentials = $true
try
{
$bytes = $webclient.DownloadData($uri)
New-App -OrganizationApp -DefaultStateForUser:enabled -FileData $bytes
}
catch [Net.WebException]
{
[Net.HttpWebResponse] $webResponse = [Net.HttpWebResponse]$_.Exception.Response;
Write-Warning $webResponse.StatusDescription
}
Command to deploy the Office Mail App externally:
Add-Type -AssemblyName System.Web
$Mbx = get-mailbox "mailbox"
$uri = new-object system.uri(
https://EV_server.domain.com/EnterpriseVault/OfficeMailAppManifest.aspx?LegacyMbxDn= +
[System.Web.HttpUtility]::UrlEncode($Mbx.LegacyExchangeDN) + "&BaseURL=https://published_server/EnterpriseVault")
$webclient = New-Object Net.Webclient
$webClient.UseDefaultCredentials = $true
try
{
$bytes = $webclient.DownloadData($uri)
New-App -OrganizationApp -DefaultStateForUser:enabled -FileData $bytes
}
catch [Net.WebException]
{
[Net.HttpWebResponse] $webResponse = [Net.HttpWebResponse]$_.Exception.Response;
Write-Warning $webResponse.StatusDescription
}