Encounter “500 Unexpected Error” when admin account access to ECP

Symptom 

In Exchange 2013, when using admin account to access ECP, you will get an error 500 Unexpected as below. However, when using the same account to access OWA, everything is ok, and other normal accounts can access OWA also.

At the same time, if you check the event log, you will get the following error:

Current users: yourdomain.com/User/adminRequest for URL 'https://servername.yourdomain.com:444/ecp/default.aspx(https://servername/ecp/)' failed with the following error: System.Configuration.ConfigurationErrorsException:                                                 (hexadecimal value 0x03)is an invalid character. Line 1, position 1 (C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\ecp\quarantine\web.config line 1) ---> System.Xml.XmlException:                                                 (hexadecimal value 0x03)is an invalid character. Line 1, position 1     System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)     System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()     System.Xml.XmlTextReaderImpl.ParseDocumentContent()     System.Configuration.XmlUtil..ctor(Stream stream, String name, Boolean readToFirstElement, ConfigurationSchemaErrors schemaErrors)     System.Configuration.BaseConfigurationRecord.InitConfigFromFile()

Cause

According to the error information, there are some invalid characters in the file (C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\ecp\quarantine\web.config ).

In Exchange Mailbox server, when we open this file with notepad, we will find that all the content are garbled. That is the cause.

Solution: 

1. Try to copy the following code to replace the contents of the file, and save it.

2. Restart mailbox server.

__________________________________________________________________________________________

<?xml version="1.0"?>

<configuration>

  <location path="Quarantine.slab">

    <system.web>

      <authorization>

        <allow roles="Get-QuarantineMessage@R:Organization"/>

        <!-- Deny everyone else -->

        <deny users="*"/>

      </authorization>

    </system.web>

  </location>

  <location path="EditQuarantineAdvFilter.aspx">

    <system.web>

      <authorization>

        <allow roles="Get-QuarantineMessage@R:Organization"/>

        <!-- Deny everyone else -->

        <deny users="*"/>

      </authorization>

    </system.web>

  </location>

  <location path="QuarantineDetails.aspx">

    <system.web>

      <authorization>

        <allow roles="Get-QuarantineMessage@R:Organization"/>

        <!-- Deny everyone else -->

        <deny users="*"/>

      </authorization>

    </system.web>

  </location>

  <location path="QuarantineSDO.aspx">

    <system.web>

      <authorization>

        <allow roles="Get-QuarantineMessage@R:Organization"/>

        <!-- Deny everyone else -->

        <deny users="*"/>

      </authorization>

    </system.web>

  </location>

  <location path="ReleaseQuarantine.aspx">

    <system.web>

      <authorization>

        <allow roles="Release-QuarantineMessage@R:Organization"/>

        <!-- Deny everyone else -->

        <deny users="*"/>

      </authorization>

    </system.web>

  </location>

</configuration>

Reference: https://social.technet.microsoft.com/Forums/zh-CN/74a108a8-21f3-4f5e-8fee-94942698797a/exchange-2013ecp500?forum=exchangeserverz

February 12th, 2015 5:04am

HI

Please check the below URL for your trouble shooting.

https://ril3y.wordpress.com/2014/03/25/exchange-2013-owa-and-ecp-logins-fail-with-500-error/ 

http://exchangequery.com/2015/05/13/exchange2013-unable-to-access-ecp-encounter-500-unexpected-error/

Free Windows Admin Tool Kit Click here and download it now
August 11th, 2015 7:05am

HI,

Please do the below Application pool recycle on Front end and Back end servers.

MS Exchange ECP App Pool

Post that it will work.

August 12th, 2015 4:01am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics