6.1 ExchangeOnline_MailboxQuota job throws an error after running for a longer duration

When you run the ExchangeOnline_MailboxQuota Knowledge Script, the Knowledge Script takes a long time to run and then throws the following error:

System.ServiceModel.CommunicationException: The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

This error is observed in an environment in which there are large number of mailboxes but it might also happen in other scenarios when the Knowledge Script runs longer than the time limit specified in the MCPSHostServer.exe.config file.

To resolve this error, follow the steps:

  1. On the agent machine, go to the C:\Program Files (x86)\NetIQ\AppManager\bin\PowerShell path.

  2. Locate the MCPSHostServer.exe.config file (on 64-bit agent) or the MCPSHostServer32.exe.config file (on 32-bit agent).

  3. Open the file in a notepad.

  4. Increase the value of the receiveTimeout argument based on the execution time required by the Knowledge Script in your environment. The default value is 01:00:00, that is, one hour.

  5. Save and close the file.