Exchange 2013 ECP fails with 500 Unexpected error after running Hybrid Configuration Wizard with Office 365

&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2522 " id&equals;"quads-ad2522" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<h2 class&equals;"wp-block-heading"><strong>Symptoms<&sol;strong><&sol;h2>&NewLine;&NewLine;&NewLine;&NewLine;<p>After you attempt to try Hybrid Configuration Wizard between Exchange 2013 SP1 and Exchange online &lpar;Office 365&rpar;&comma; You are unable to login to your OWA&sol;ECP Page and instead you get an 500 unexpected error&colon;<&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2531 " id&equals;"quads-ad2531" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2523 " id&equals;"quads-ad2523" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2529 " id&equals;"quads-ad2529" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"http&colon;&sol;&sol;lh3&period;googleusercontent&period;com&sol;-kqYyvKLHkcY&sol;Vb-b6o560hI&sol;AAAAAAAAQdU&sol;ULOSJRDPg-E&sol;clip&lowbar;image001&lowbar;thumb&period;png&quest;imgmax&equals;800" alt&equals;"clip&lowbar;image001"&sol;> &NewLine;&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2524 " id&equals;"quads-ad2524" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine; &NewLine;<&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p>If you go to event viewer You might find Event ID 4 which shows the error&colon; <&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"http&colon;&sol;&sol;lh3&period;googleusercontent&period;com&sol;-7vYDBbMz6SY&sol;Vb-b8EOJ8iI&sol;AAAAAAAAQdk&sol;4DTZq3m5KpE&sol;clip&lowbar;image002&lowbar;thumb&period;png&quest;imgmax&equals;800" alt&equals;"clip&lowbar;image002"&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<h2 class&equals;"wp-block-heading"><strong>Cause&colon;<&sol;strong><&sol;h2>&NewLine;&NewLine;&NewLine;&NewLine;<p>The HCW or &&num;8220&semi;Hybrid Configuration Wizard&&num;8221&semi; In Exchange 2013 &lpar;CU6 or 8&rpar; might cause some changes to your CAS folder in the following path and file&period;<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p>&&num;8220&semi;c&colon;&bsol;Program Files&bsol;Microsoft&bsol;Exchange Server&bsol;V15&bsol;ClientAccess&bsol;ecp&bsol;DDI&&num;8221&semi;&grave; the file name is RemoteDomains&period;xaml and multiply some variables which causes ECP to fail and report that error&period; <&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<h2 class&equals;"wp-block-heading"><strong>Error&colon;<&sol;strong><&sol;h2>&NewLine;&NewLine;&NewLine;&NewLine;<div class&equals;"wp-block-group"><div class&equals;"wp-block-group&lowbar;&lowbar;inner-container is-layout-flow wp-block-group-is-layout-flow">&NewLine;<pre class&equals;"wp-block-code">&NewLine;&NewLine;<div>&colon;&colon;CODECOLORER&lowbar;BLOCK&lowbar;1&colon;&colon;<&sol;div>&NewLine;&NewLine;<&sol;pre>&NewLine;<&sol;div><&sol;div>&NewLine;&NewLine;&NewLine;&NewLine;<h2 class&equals;"wp-block-heading"><strong>Solution&colon;<&sol;strong><&sol;h2>&NewLine;&NewLine;&NewLine;&NewLine;<p>Looking in the path I have wrote above &&num;8220&semi;&bsol;Microsoft&bsol;Exchange Server&bsol;V15&bsol;ClientAccess&bsol;ecp&bsol;DDI&&num;8221&semi; and opening the file that I have mentioned &&num;8220&semi;RemoteDomains&period;xaml&&num;8221&semi; you can clearly see there are incorrect format that have been duplicated 3 times&period;<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"http&colon;&sol;&sol;lh3&period;googleusercontent&period;com&sol;-DrWEjnDhUro&sol;Vb-b-ACXAcI&sol;AAAAAAAAQd0&sol;2MHazoVdEBE&sol;clip&lowbar;image003&lowbar;thumb&period;png&quest;imgmax&equals;800" alt&equals;"clip&lowbar;image003"&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p>To make sure that this was the cause&comma; 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&period;<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p>This is the server that works in another environment and doesn&&num;8217&semi;t have any issue&period;<&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2526 " id&equals;"quads-ad2526" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"http&colon;&sol;&sol;lh3&period;googleusercontent&period;com&sol;-Z2ed3aoh8bw&sol;Vb-b&lowbar;904v2I&sol;AAAAAAAAQeE&sol;oRfW6a1nJ74&sol;clip&lowbar;image004&lowbar;thumb&period;png&quest;imgmax&equals;800" alt&equals;"clip&lowbar;image004"&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p>So&comma; the solution was to remove the two duplicates and correct the format of the variable line… I corrected the first line that includes<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p>&lt&semi;Variable DataObjectName&equals;&&num;8221&semi;RemoteDomain&&num;8221&semi; Name&equals;&&num;8221&semi;TargetDeliveryDomain&&num;8221&semi; Type&equals;&&num;8221&semi;&lbrace;x&colon;Type s&colon;Boolean&rcub;&&num;8221&semi; &sol;&gt&semi;<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<p>And deleted the other two identical lines&period;&period; then I saved the file and closed notepad&period;<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"http&colon;&sol;&sol;lh3&period;googleusercontent&period;com&sol;-8K8mAlg7A4w&sol;Vb-cBWv9zQI&sol;AAAAAAAAQeU&sol;&lowbar;3hahz3XBtw&sol;clip&lowbar;image005&lowbar;thumb&period;png&quest;imgmax&equals;800" alt&equals;"clip&lowbar;image005"&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p>Next&colon; Open IIS on the same server and go to &&num;8220&semi;Application Pools&&num;8221&semi; right click on the affected pools and Recycle them&period;&period; You don&&num;8217&semi;t need to reset IIS as the fix should work right away&period;<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<h2 class&equals;"wp-block-heading"><strong>Recycle ECP Pool<&sol;strong><&sol;h2>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"http&colon;&sol;&sol;lh3&period;googleusercontent&period;com&sol;-0N3TWwlTNcI&sol;Vb-cDEP6tRI&sol;AAAAAAAAQek&sol;mDoKLfOX83A&sol;clip&lowbar;image006&lowbar;thumb&period;png&quest;imgmax&equals;800" alt&equals;"clip&lowbar;image006"&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p>After recycling checking if the pool is reporting started or not…<&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2530 " id&equals;"quads-ad2530" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"http&colon;&sol;&sol;lh3&period;googleusercontent&period;com&sol;-GFzkMs8qwd0&sol;Vb-cEacstdI&sol;AAAAAAAAQe0&sol;4LkHPS-02UM&sol;clip&lowbar;image007&lowbar;thumb&period;png&quest;imgmax&equals;800" alt&equals;"clip&lowbar;image007"&sol;><&sol;figure>&NewLine;&NewLine;&NewLine;&NewLine;<p>Next I open ECP and it works without an issue<&sol;p>&NewLine;&NewLine;&NewLine;&NewLine;<figure class&equals;"wp-block-image"><img src&equals;"http&colon;&sol;&sol;lh3&period;googleusercontent&period;com&sol;-HqFPYzZZZUU&sol;Vb-cGNopaAI&sol;AAAAAAAAQfE&sol;5bx2F&lowbar;5wYTg&sol;clip&lowbar;image008&lowbar;thumb&period;png&quest;imgmax&equals;800" alt&equals;"clip&lowbar;image008"&sol;><&sol;figure>&NewLine;<&sol;p>&NewLine;<&excl;-- WP QUADS Content Ad Plugin v&period; 2&period;0&period;92 -->&NewLine;<div class&equals;"quads-location quads-ad2528 " id&equals;"quads-ad2528" style&equals;"float&colon;none&semi;margin&colon;0px 3px 3px 3px&semi;padding&colon;0px 0px 0px 0px&semi;" data-lazydelay&equals;"0">&NewLine;&NewLine;<&sol;div>&NewLine;&NewLine;

moh10ly

Recent Posts

Reset passwords for Active Directory Users

Reset and manage your Active Directory users' Passwords Active Directory is one of the most…

3 years ago

Finding Exchange Database hidden mailboxes. ​

Finding Exchange Database hidden mailboxes. Story:Maybe you have been in this situation before, trying to…

3 years ago

Setting up ADConnect and PTA (Password auth through) servers agents behind proxy

If you're using a Proxy server in your firewall or in your network and have…

3 years ago

Get Report of Active Directory Locked Accounts and Machine they logged in from

Story:I got some clients  that have reported some of their users being locked out and…

3 years ago

Checking and Providing Full and SendAs delegate access on O365 Exchange Online

Delegate Permissions This is a code that I have wrote recently to check if an…

3 years ago

Retrieving attachments from Exchange mailbox using python

Story: I got a request from a client who constantly gets CVs and have to…

4 years ago

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298

Warning: Undefined array key "adsense_ad_type" in /www/wwwroot/www.moh10ly.com/wp-content/plugins/quick-adsense-reloaded/includes/amp-condition-display.php on line 298