<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2522 " id="quads-ad2522" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<h2 class="wp-block-heading"><strong>Symptoms</strong></h2>



<p>After you attempt to try Hybrid Configuration Wizard between Exchange 2013 SP1 and Exchange online (Office 365), You are unable to login to your OWA/ECP Page and instead you get an 500 unexpected error:</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2531 " id="quads-ad2531" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2523 " id="quads-ad2523" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2529 " id="quads-ad2529" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-kqYyvKLHkcY/Vb-b6o560hI/AAAAAAAAQdU/ULOSJRDPg-E/clip_image001_thumb.png?imgmax=800" alt="clip_image001"/> 

<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2524 " id="quads-ad2524" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>
 
</figure>



<p>If you go to event viewer You might find Event ID 4 which shows the error: </p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-7vYDBbMz6SY/Vb-b8EOJ8iI/AAAAAAAAQdk/4DTZq3m5KpE/clip_image002_thumb.png?imgmax=800" alt="clip_image002"/></figure>



<h2 class="wp-block-heading"><strong>Cause:</strong></h2>



<p>The HCW or &#8220;Hybrid Configuration Wizard&#8221; In Exchange 2013 (CU6 or 8) might cause some changes to your CAS folder in the following path and file.</p>



<p>&#8220;c:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\ecp\DDI&#8221;` the file name is RemoteDomains.xaml and multiply some variables which causes ECP to fail and report that error. </p>



<h2 class="wp-block-heading"><strong>Error:</strong></h2>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow">
<pre class="wp-block-code">

<div>::CODECOLORER_BLOCK_1::</div>

</pre>
</div></div>



<h2 class="wp-block-heading"><strong>Solution:</strong></h2>



<p>Looking in the path I have wrote above &#8220;\Microsoft\Exchange Server\V15\ClientAccess\ecp\DDI&#8221; and opening the file that I have mentioned &#8220;RemoteDomains.xaml&#8221; you can clearly see there are incorrect format that have been duplicated 3 times.</p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-DrWEjnDhUro/Vb-b-ACXAcI/AAAAAAAAQd0/2MHazoVdEBE/clip_image003_thumb.png?imgmax=800" alt="clip_image003"/></figure>



<p>To make sure that this was the cause, I have another server with CU8 on it so I went and checked the same file which was in the same location to find the result different.</p>



<p>This is the server that works in another environment and doesn&#8217;t have any issue.</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2526 " id="quads-ad2526" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-Z2ed3aoh8bw/Vb-b_904v2I/AAAAAAAAQeE/oRfW6a1nJ74/clip_image004_thumb.png?imgmax=800" alt="clip_image004"/></figure>



<p>So, the solution was to remove the two duplicates and correct the format of the variable line… I corrected the first line that includes</p>



<p><;Variable DataObjectName=&#8221;RemoteDomain&#8221; Name=&#8221;TargetDeliveryDomain&#8221; Type=&#8221;{x:Type s:Boolean}&#8221; />;</p>



<p>And deleted the other two identical lines.. then I saved the file and closed notepad.</p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-8K8mAlg7A4w/Vb-cBWv9zQI/AAAAAAAAQeU/_3hahz3XBtw/clip_image005_thumb.png?imgmax=800" alt="clip_image005"/></figure>



<p>Next: Open IIS on the same server and go to &#8220;Application Pools&#8221; right click on the affected pools and Recycle them.. You don&#8217;t need to reset IIS as the fix should work right away.</p>



<h2 class="wp-block-heading"><strong>Recycle ECP Pool</strong></h2>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-0N3TWwlTNcI/Vb-cDEP6tRI/AAAAAAAAQek/mDoKLfOX83A/clip_image006_thumb.png?imgmax=800" alt="clip_image006"/></figure>



<p>After recycling checking if the pool is reporting started or not…</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2530 " id="quads-ad2530" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>




<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-GFzkMs8qwd0/Vb-cEacstdI/AAAAAAAAQe0/4LkHPS-02UM/clip_image007_thumb.png?imgmax=800" alt="clip_image007"/></figure>



<p>Next I open ECP and it works without an issue</p>



<figure class="wp-block-image"><img src="http://lh3.googleusercontent.com/-HqFPYzZZZUU/Vb-cGNopaAI/AAAAAAAAQfE/5bx2F_5wYTg/clip_image008_thumb.png?imgmax=800" alt="clip_image008"/></figure>
</p>
<!-- WP QUADS Content Ad Plugin v. 2.0.92 -->
<div class="quads-location quads-ad2528 " id="quads-ad2528" style="float:none;margin:0px 3px 3px 3px;padding:0px 0px 0px 0px;" data-lazydelay="0">

</div>


Reset and manage your Active Directory users' Passwords Active Directory is one of the most…
Finding Exchange Database hidden mailboxes. Story:Maybe you have been in this situation before, trying to…
If you're using a Proxy server in your firewall or in your network and have…
Story:I got some clients that have reported some of their users being locked out and…
Delegate Permissions This is a code that I have wrote recently to check if an…
Story: I got a request from a client who constantly gets CVs and have to…