Cannot Access Exchange contorl Panel ‘ECP’ in Exchange Server 2013

Ok here we go,

I received a couple of messages on Twitter from Engineers saying they cannot access the ECP page after they finished configuring the Virtual Directories.

Problem:

When trying to access the ECP , it takes you to the OWA page and after providing your username and password it gives you a blank “HTTP 400 Error” page.

Cause:

You missed up your authentications methods my friend

Solution:

make sure that the authentication methods used by OWA and ECP are matching this is done by running the following

> Get-owavirtualdirectory | fl

make sure that you using “Form based Authentication” and “Basic Authentication”

3

do the same with ECP using the following command line

> Get-ECPVirtualDirectory | fl

4

If not then you just need to reconfigure the Authentications on both Virtual Directories, DONNOT use IIS use Exchange Management Shell.

For owa use the following

>Set-owavirtualdirectory -identity “owa <Default Web site>” -FormsAuthentication:$true

use the same also for ECP

>Set-ecpvirtualdirectory -identity “ecp <Default Web site>” -FormsAuthentication:$true

then restart your iis services using the following

>iisreset

once finished try to access your ECP page again and it should work now

if it didn’t make sure to run the same command lines but using “owa <Exchange Back End>” to make sure that both Default web site and Exchange back end website authentication methods are matching.

Cheers 🙂

Advertisements

Author: Lyncdude

A Senior Microsoft Unified Communications Consultant with more than 9 years of experience in Microsoft Exchange and Microsoft Lync Server / Skype for Business. Egyptian guy lives and works in Frankfurt - Germany. Worked Closely with Microsoft Dubai for 3 years designing , building and supporting Exchange and Lync Infrastructures. A Microsoft Certified ITP in Lync, Exchange and also attended Microsoft Partner Primer Filed Support Engineer T1 Training for Microsoft Lync 2010.

15 thoughts on “Cannot Access Exchange contorl Panel ‘ECP’ in Exchange Server 2013”

  1. Hi Mostafa,
    I have serious Exchange issue, hope you can give an helping hand.
    Beisde the error HTTP 400 Bad Request for OWA and ECP, my Exchange Management Shell also not working.
    When I run Exchange Management Shell, I have error message:

    VERBOSE: Connecting to exchange.domain.local.
    New-PSSession : [exchange.domain.local] Connecting to remote server exchange.domain.local failed with the following error
    message :
    Bad Request

    Bad Request – Invalid Hostname
    HTTP Error 400. The request hostname is invalid.

    [Server=EXCH-SVR01,RequestId=4bde48ea-bb4e-4fc3-bafd-fa1b5ee5e862,TimeStamp=9/14/2013 12:09:04 AM] For more
    information, see the about_Remote_Troubleshooting Help topic.
    At line:1 char:1
    + New-PSSession -ConnectionURI “$connectionUri” -ConfigurationName Microsoft.Excha …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : OpenError: (System.Manageme….RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
    gTransportException
    + FullyQualifiedErrorId : -2144108477,PSSessionOpenFailed
    Failed to connect to an Exchange server in the current site.
    Enter the server FQDN where you want to connect.:

    Please help me. Thanks

    Normantech

    1. Hi mate,

      Did you try to test connect to the owa or ecp from the IIS?

      Also regarding the EMS problem, try to check that in the IIS under the default website binding is configured correctly.
      If binding exist then delete the hostname from it, if there is no binding create one using HTTP and all unassigned for the IP-option.

      I think that there is a problem with your IIS.

  2. Issued the Set-owavirtualdirectory -identity “owa ” -FormAuthentication:$true, and received error: The operation couldn’t be performed because object ‘mailserver.com\owa ‘ couldn’t be found on
    ‘domaincontrollerserver.com’.

    What am I doing wrong? Your suggestions will be appreciated.

    Thank you,
    Andy

  3. Issued the Set-owavirtualdirectory -identity “owa ” -FormAuthentication:$true, and received error: The operation couldn’t be performed because object ‘mailserver.com\owa ‘ couldn’t be found on
    ‘domaincontrollerserver.com’.

    What am I doing wrong? Your suggestions will be appreciated.

  4. Hello, I had same issue when I have change auth. settings in ECP and now I am not able sign in eco anymore.

    I have issued above commands but i got error as below

    P.S. My DC and exchange are on different servers

    The operation couldn’t be performed because object ‘EXCH.karavan.local\owa ‘ couldn’t be found on
    ‘DC1.karavan.local’.
    + CategoryInfo : NotSpecified: (:) [Set-OwaVirtualDirectory], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=EXCH,RequestId=eafb6718-0596-4bb0-9599-df59b1f8af42,TimeStamp=3/2/2015 10:59:04
    AM] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 6C4EEA59,Microsoft.Exchange.Management.SystemConfig
    urationTasks.SetOwaVirtualDirectory
    + PSComputerName : exch.karavan.local

    Thank you.

  5. Hi, we are migrating from Exchange 2007 on SBS 2008 to Exchange 2013 on WS2012R2 and after installing CAS amd MBS on same server we have lost access to ECP.

    We get redirected to https://localhost/owa/auth.owa.

    When I checked the permissions above it is:
    BasicAuthentication : False
    WindowsAuthentication : True
    DigestAuthentication : False
    FormsAuthentication : False
    but when I try to reset the permissions via Exchange PS on the new server it redirects to SBS server and fails.

    How do I force Exchange PS to make the changes to local server?

    Regards,
    PS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s