Exchange ecp error 400

  • Remove From My Forums

 locked

exchange 2016 ECP problems; error — 400 bad request

  • Question

  • Hello!

    So I’ve spent a ton of time researching this and trying various solutions, but to no avail. The problem is this : When attempting to log into the ECP from the browser using localhost, I get …
    «400

    Bad request :(

    The request sent by your browser was not valid.»

    If I attempt to log into the ECP through either the external address, or through 127.0.0.1, I am able to log in but receive «error your request could not be completed. try again in a few minutes.»

    All mail is flowing fine, and I am able to log in through the management shell and go about my business as usual.

    In the event viewer, I’m receiving two consistent messages (which ive shortened, can expand upon request) —
    «

    WebHost failed to process a request.
     Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/4032828
     Exception: System.ServiceModel.ServiceActivationException: The service ‘/Autodiscover/Autodiscover.xml’ cannot be activated due to an exception during compilation.  The exception message is: This collection already contains an address with scheme
    https. 

    «

    WebHost failed to process a request.
     Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/12547953
     Exception: System.ServiceModel.ServiceActivationException: The service ‘/EWS/exchange.asmx’ cannot be activated due to an exception during compilation.  The exception message is: This collection already contains an address with scheme https.  There
    can be at most one address per scheme in this collection.

    «

    Given those two messages, it seems obvious that it would be an issue with my address scheme, but I can’t find any issue and have exhausted all leads I’ve been able to think of.

    Please help!

Answers

    • Proposed as answer by

      Tuesday, September 13, 2016 12:59 PM

    • Marked as answer by
      David Wang_
      Monday, September 19, 2016 9:19 AM

The issue

Last week our IT deparment had a big problem with Outlook Web App (OWA) on Microsoft Exchange 2013. It was not working anymore and it was inaccessible for all our 500+ employees. However, all other services kept on working normally (ActiveSync, Outlook Anywhere, etc.).

Since I’m not managing this Microsoft Exchange 2013 environment anymore, I wasn’t fully aware of this problem, until the IT Department asked me to take a look at it, in the hope that I could fix it.

In the end, we managed to fix this problem without too many complications. I have to thank my colleague and partner in crime, Chris Petit (@christiaanpetit) for his insights and tips. He was a great help during this ordeal at work. 

The problem

Our IT department changed the authentication option on the ECP virtual directory and suddenly Outlook web access was not working anymore. All our employees working in the field use Outlook Web App to communicate. You can just imagine how frustrating this can be for customers. Winking smile

Capture

Capture2

On smartphone devices, colleagues could see the nice Outlook Web App login page of Microsoft Exchange 2013, only to find out that it doesn’t work. After providing their (correct) credentials, they received this error:

“Outlook web app didn’t initialize. If the problem continues please contact your helpdesk.

Couldn’t find a base theme (folder name=base)”

In the eventviewer we saw a lot of these error messages:

Capture3

With this informationin mind, we concluded that some web technology and perhaps some webservice was at fault.

The solution

The solution to this problem is a neat one.

On the internet we read blogposts telling us that we needed to recreate the Outlook Web App (OWA) and Exchange Control Panel (ECP) virtual directories. 

We did do this, following the instructions from this blogpost:

But… recreating the virtual directories did not solve anything for us.

Then, my colleague Chris Petit (@christiaanpetit), pointed me to this blogpost:

At first, I was sceptical about this solution because it was tested for Microsoft Exchange 2010 only. Since there is little known about Exchange 2013, I gave this solution a shot and, luckily, it worked flawlessly.

If you encounter this problem (bad request, http 400 error) on your Exchange 2013 infrastructure, these are the steps that you can follow to fix it.

Note:The powershell scripts are not mentioned anywhere in the official Technet documentation.
The powershell scripts are only mentioned on several blogposts regarding Microsoft Exchange 2010.
    

  1. Login to your Exchange 2013 CAS server
  2. Start the Exchange Management Shell
        
  3. Navigate to your Exchange 2013 binaries location, for example:

             C:Program FilesMicrosoftExchange ServerV15Bin

  4. Execute the UpdateCas.ps1 Windows PowerShell script and wait a few moments.
    This script will rebuild your OWA interface.
        
  5. If you haven’t executed UpdateConfigFiles.ps1 , now is a good time. Execute it.
    It looks like you need to execute this Windows PowerShell script, after each cumulative update of Microsoft Exchange 2013 to keep everything working smooth.

Conclusion 

After each installation of a cumulative update for Exchange 2013, remember to execute both the UpdateCas.ps1 and UpdateConfigFiles.ps1 Windows PowerShell scripts.

It will save you a lot of trouble, troubleshooting errors with OWA and ECP. 

Special thanks goes to my colleague and partner in crime, Chris Petit (@christiaanpetit) for his insights and tips. He was a great help during this ordeal at work.

Источник: http://blogs.dirteam.com/blogs/sergio/archive/2014/01/21/7370.aspx

Introduction

I have managed our Exchange 2013 environment for 6 months in 2013. This Highly Available (HA) Microsoft Exchange 2013 setup was designed and installed by Dave Stork.

I have installed various cumulative updates on this setup and almost everything went without a hitch.

Since then, I moved on.

The issue

Last week our IT deparment had a big problem with Outlook Web App (OWA) on Microsoft Exchange 2013. It was not working anymore and it was inaccessible for all our 500+ employees. However, all other services kept on working normally (ActiveSync, Outlook Anywhere, etc.).

Since I’m not managing this Microsoft Exchange 2013 environment anymore, I wasn’t fully aware of this problem, until the IT Department asked me to take a look at it, in the hope that I could fix it.

In the end, we managed to fix this problem without too many complications. I have to thank my colleague and partner in crime, Chris Petit (@christiaanpetit) for his insights and tips. He was a great help during this ordeal at work.

The problem

Our IT department changed the authentication option on the ECP virtual directory and suddenly Outlook web access was not working anymore. All our employees working in the field use Outlook Web App to communicate. You can just imagine how frustrating this can be for customers.

server_error_ecp

server_error_ecp_2

On smartphone devices, colleagues could see the nice Outlook Web App login page of Microsoft Exchange 2013, only to find out that it doesn’t work. After providing their (correct) credentials, they received this error:

“Outlook web app didn’t initialize. If the problem continues please contact your helpdesk.

Couldn’t find a base theme (folder name=base)”

In the eventviewer we saw a lot of these error messages:

server_error_ecp_3

With this informationin mind, we concluded that some web technology and perhaps some webservice was at fault.

The solution

The solution to this problem is a neat one.

On the internet we read blogposts telling us that we needed to recreate the Outlook Web App (OWA) and Exchange Control Panel (ECP) virtual directories.

We did do this, following the instructions from this blogpost:

Re-create OWA virtual Directories in Exchange 2013

But… recreating the virtual directories did not solve anything for us.

Then, my colleague Chris Petit (@christiaanpetit), pointed me to this blogpost:

http://www.faultserver.com/q/answers-exchange-server-2010-owa-couldnt-find-a-base-theme-268697.html

At first, I was sceptical about this solution because it was tested for Microsoft Exchange 2010 only. Since there is little known about Exchange 2013, I gave this solution a shot and, luckily, it worked flawlessly.

If you encounter this problem (bad request, http 400 error) on your Exchange 2013 infrastructure, these are the steps that you can follow to fix it.

Note:
The powershell scripts are not mentioned anywhere in the official Technet documentation.
The powershell scripts are only mentioned on several blogposts regarding Microsoft Exchange 2010.

  1. Login to your Exchange 2013 CAS server
  2. Start the Exchange Management Shell
  3. Navigate to your Exchange 2013 binaries location, for example:C:Program FilesMicrosoftExchange ServerV15Bin
  4. Execute the UpdateCas.ps1 Windows PowerShell script and wait a few moments.
    This script will rebuild your OWA interface.
  5. If you haven’t executed UpdateConfigFiles.ps1 , now is a good time. Execute it.
    It looks like you need to execute this Windows PowerShell script, after each cumulative update of Microsoft Exchange 2013 to keep everything working smooth.

Conclusion

After each installation of a cumulative update for Exchange 2013, remember to execute both the UpdateCas.ps1 and UpdateConfigFiles.ps1 Windows PowerShell scripts.

It will save you a lot of trouble, troubleshooting errors with OWA and ECP.

Special thanks goes to my colleague and partner in crime, Chris Petit (@christiaanpetit) for his insights and tips. He was a great help during this ordeal at work.

RRS feed

  • Remove From My Forums
  • Question


  • GURMEET SINGH

All replies

  • Hi,

    What’s your Exchange server and CU version?

    Make sure the account you used to access the delivery has right permission, or you could use another account with enough permission to test the result again.

    Here is also a thread discussed the similar issue as yours: Error 400
    opening e-mail in Delivery Reports

    What works (for me) is to hit the «sign out» link, then re-login in the that same window. It will take you to OWA. Close that window, and re-open the delivery report — this will keep that session live until you log in to the EAC then next time.

    I had a similar fix.  I did a sign-out and if I waited 5-10 seconds my EAC would log out as well.  At that point I had to start over.  When I decided to log back into my pop-up window after the sign-out (EAC still logged in though) with my
    exchange admin account it asked for my time zone.  Ever since then, I’ve been working fine.

    The solution that I found that works is to use the server name directly, even if it is a DAG.
    Go to:  https://ServerName/ecp/
    This worked for me.  Of course you still have to be part of the appropriate security groups.

    Please note that, this Exchange Server Development forum mainly focuses on scripting issues, And the previous TechNet Exchange forum has been migrated to
    Q&A forum, please post your issues there if you need further support. 

    Regards,

    Joyce Shen


    Please remember to
    mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact
    tnsf@microsoft.com.

  • Delivery report is not open 400 Outlook Web App Option

    Can u help any another resolution


    GURMEET SINGH

  • Hi,

    Have you tried the solutions above? They all not working for you?

    Please provide more information here, what’s your Exchange server version and have you checked if there is any related error log in event viewer?

    Can EMS get-messagetrackinglog work properly?

    Please note that, this Exchange Server Development forum mainly focuses on scripting issues, And the previous TechNet Exchange forum has been migrated to
    Q&A forum, please post your issues there if you need further support. 

    Regards,

    Joyce Shen


    Please remember to
    mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact
    tnsf@microsoft.com.

  • Message tracking is working fine 

    Exchange 2016 CU 18 Version


    GURMEET SINGH

  • Hi,

    You are having this issue basically due to your exchange 2016 administrator account aren’t in Organization Management, Records Management and Recipient Management role group. Please check this.

    https://technet.microsoft.com/en-us/library/bb124926(v=exchg.160).aspx

    Meanwhile, check the authentication on OWA and ECP virtual directory. Make sure that you are using “Form based Authentication” and “Basic Authentication”

    Get-owaVirtualDirectory | fl *authentication*

    Get-ecpVirtualDirectory | fl *authentication*

    Thanks and Regards,

    Vaibhav Pal

    • Proposed as answer by

      Tuesday, October 20, 2020 6:24 AM

  • Exchange 2010 and Exchange 2016 CU Co-existence environment.

    webmail and autodiscover is pointed to exchange 2010

    Delivery report is not open 400 Outlook Web App Option


    GURMEET SINGH

  • Hi,

    In Exchange 2010 and 2016 coexistence,webmail and autodiscover should be pointed to exchange 2016:

    Internal DNS

    webmail.domain.com

    Point to Exchange 2016 server

    autodiscover.domain.com

    Point to Exchange 2016 server

    External DNS

    webmail.domain.com

    Point to Exchange 2016 server

    autodiscover.domain.com

    Point to Exchange 2016 server

    Regards,

    Joyce Shen


    Please remember to
    mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact
    tnsf@microsoft.com.

Scenario: Exchange 2007/2013 Coexistence

One Exchange 2007 Server

One Exchange 2013 Server Std, Windows 2012

All mailboxes moved to 2013 — November 27-30 2014

All public folders moved to 2013 — December 2, 2014

Exchange 2007 is still running and has not been removed from the domain, yet.

SSL Certs are current for: Autodiscover.ExtDom.com, ex13.ExtDom.com, ex13.IntDom.com

Applied CU6 (Dec 3, 2014) to fix Mobile access issues. Since applying CU6, OWA does not work with the exception of mobile browsers (Chrome — Nexus 7) or Safari 5.1.7 on Windows 7. These browsers get the OWA 2010 theme (Yellow).

User logs into OWA with DomainUserName and PWD(IE). After clicking Sign In, page returns Bad Request. No errors logged in w3scv logs.

All users can connect using Outlook 2013 or Mobile (iPhone & Android)

Exchange Admin Center (ECP) still works!

Browsers tested: IE10 (windows 7 x64),Chrome 39.0.2171.71m, Opera 26.0, FireFox 34.0.5, Safari 5.1.7

Attempted:

https://ex13.ExtDom.com/owa Opens a new window

https://ex13.IntDom.com/owa Opens a new window

https://ex13.ExtDom.com/owa?ExchClientVer=15 Opens a new window

https://ex13.IntDom.com/owa?ExchClientVer=15 Opens a new window

https://localhost/owa Opens a new window (on Ex 2013 server)

https://localhost/owa?ExchClientVer=15 Opens a new window (on Ex 2013 Server)

Fixes attempted:

-remove | create Virtual Directories for OWA

-Change authentication through Exchange PowerShell — Integrated/Basic from FBA/Basic

   -reverted since change didn’t work.

-Run UpdateCas.ps1

-Run UpdateConfigFiles.ps1

-IISReset (iisReset /NoForce fails)

OWA (Default Web Site) displays as Version 15.0 (Build 995.29) in EAC.

Links used for troubleshooting:

http://community.spiceworks.com/topic/514617-exchange-2013-unable-to-login-to-owa-ecp

https://social.technet.microsoft.com/Forums/ie/en-US/f8aa95d4-19e4-483c-8c4b-b039ab0d0127/400-bad-re… Opens a new window

http://tecfused.com/2013/09/23/exchange-2013-ecp-double-login-error-400/ Opens a new window

https://social.technet.microsoft.com/Forums/lync/en-US/c25ce81c-76ea-471a-93ae-eeaf9e5015ac/exchange… Opens a new window

http://support.microsoft.com/kb/2871485/en-gb Opens a new window

CU7 was just released but, I’d prefer to avoid applying it until I can get this fixed.

thanks in advance!

Понравилась статья? Поделить с друзьями:
  • Exchange 2013 cu23 error 500
  • Exchange 2013 autodiscover error 600
  • Exchange 2010 update rollup error 1603
  • Excessive deferral ошибки причины
  • Exceptions vs error codes