Link to home
Avatar of Ian Taylor
Ian TaylorFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Exchange 2016 Errors


I've just deployed 2x Exchange Server 2016 boxes, the domain currently has a single Exchange Server 2013 box which I intend to retire however when I setup the DAG on the 2x 2016 boxes I get this error when open the Exchange Management Shell...........on both the 2016 servers........

New-PSSession : [bmi-vexch1.buildmeit.internal] Connecting to remote server bmi-vexch1.buildmeit.internal failed with
the following error message : <!DOCTYPE html>
        <title>Object reference not set to an instance of an object.</title>
        <meta name="viewport" content="width=device-width" />
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
         @media screen and (max-width: 639px) {
          pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
         @media screen and (max-width: 479px) {
          pre { width: 280px; }
    <body bgcolor="white">
            <span><H1>Server Error in '/PowerShell' Application.<hr width=100% size=1 color=silver></H1>
            <h2> <i>Object reference not set to an instance of an object.</i> </h2></span>
            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">
            <b> Description: </b>An unhandled exception occurred during the execution of the current web request.
Please review the stack trace for more information about the error and where it originated in the code.
            <b> Exception Details: </b>System.NullReferenceException: Object reference not set to an instance of an
            <b>Source Error:</b> <br><br>
            <table width=100% bgcolor="#ffffcc">
An unhandled exception was generated during the execution of the current web request. Information regarding the origin
and location of the exception can be identified using the exception stack trace below.</code>
            <b>Stack Trace:</b> <br><br>
            <table width=100% bgcolor="#ffffcc">
[NullReferenceException: Object reference not set to an instance of an object.]
   Microsoft.Exchange.HttpProxy.RemotePowerShellProxyRequestHandler.ExposeExceptionToClientResponse(Exception ex) +561
   Microsoft.Exchange.HttpProxy.ProxyRequestHandler.CompleteWithError(Exception ex, String label) +158
   Microsoft.Exchange.HttpProxy.&lt;&gt;c__DisplayClass25.&lt;OnResponseReady&gt;b__24() +2164
   Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(Action tryDelegate, Func`2 filterDelegate, Action`1
catchDelegate) +32
   Microsoft.Exchange.HttpProxy.ProxyRequestHandler.CallThreadEntranceMethod(Action method) +69
[AggregateException: One or more errors occurred.]
   Microsoft.Exchange.HttpProxy.ProxyRequestHandler.EndProcessRequest(IAsyncResult result) +554
   System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +178
            <hr width=100% size=1 color=silver>
            <b>Version Information:</b>&nbsp;Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1586.0
[NullReferenceException]: Object reference not set to an instance of an object.
   at Microsoft.Exchange.HttpProxy.RemotePowerShellProxyRequestHandler.ExposeExceptionToClientResponse(Exception ex)
   at Microsoft.Exchange.HttpProxy.ProxyRequestHandler.CompleteWithError(Exception ex, String label)
   at Microsoft.Exchange.HttpProxy.ProxyRequestHandler.<>c__DisplayClass25.<OnResponseReady>b__24()
   at Microsoft.Exchange.Common.IL.ILUtil.DoTryFilterCatch(Action tryDelegate, Func`2 filterDelegate, Action`1
   at Microsoft.Exchange.HttpProxy.ProxyRequestHandler.CallThreadEntranceMethod(Action method)
[AggregateException]: One or more errors occurred.
   at Microsoft.Exchange.HttpProxy.ProxyRequestHandler.EndProcessRequest(IAsyncResult result)
   at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)
18129,TimeStamp=13/10/2016 18:45:07]  For more information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Micr ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
    + FullyQualifiedErrorId : -2144108477,PSSessionOpenFailed

If I look inside event viewer I can see a number of errors and warnings:

Faulting application name: w3wp.exe, version: 10.0.14393.0, time stamp: 0x57899b8a
Faulting module name: ntdll.dll, version: 10.0.14393.206, time stamp: 0x57dac931
Exception code: 0xc0000409
Fault offset: 0x00000000000951ff
Faulting process id: 0x48a4
Faulting application start time: 0x01d225779bf669b4
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: b4d2232d-1909-4b12-95ae-cefd04226dd3
Faulting package full name:
Faulting package-relative application ID:


A process serving application pool 'MSExchangeAutodiscoverAppPool' suffered a fatal communication error with the Windows Process Activation Service. The process id was '23148'. The data field contains the error number.

Both Exchange Server 2016 boxes are running on Server 2012 R2, all patched etc, the exchange 2013 box is patched also.

Any ideas?
Avatar of Jason Crawford
Jason Crawford
Flag of United States of America image

Have you tried restarting IIS?  Open cmd prompt and enter this command:

Avatar of Ian Taylor


Did you configure a separate MAPI/Replication networks for the 2016 DAG?
Yup, I have two NICs configured
Ok you need to ensure the binding order is correct.

Each network adapter must be configured properly based on its intended use. A network adapter that's used for a MAPI network is configured differently from a network adapter that's used for a Replication network. In addition to configuring each network adapter correctly, you must also configure the network connection order in Windows so that the MAPI network is at the top of the connection order. For detailed steps about how to modify the network connection order, see Modify the protocol bindings and network provider order.
Correction in the original past - these two servers are running on Windows Server 2016
Hello - Just to update this post.

This only seems to happen when I create a DAG.

I removed the DAG and I can now load Exchange Management Shell, so the configuration in DAG is breaking something.....
Avatar of Ian Taylor
Ian Taylor
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
correct answer