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”
do the same with ECP using the following command line
> Get-ECPVirtualDirectory | fl
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 🙂
Thank you saved me a huge amount of work after stuffing up my OWA setttings..
thank you I solved this error using this .
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
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.
use the following URL to access the Exchange ECP
https://servername/ecp/?ExchClientVer=15
Regards
Ibrahim Mahmoud
ebrahim_mahmoud@yahoo.com
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
did you solve this error?
typo should be formsAuthentication:$true
Thanks a lot John, Updated the article 🙂
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.
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.
Hello,
I had the same error. Type it manually in the shell. Don’t copy.
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
The problem is those signs … they should be () … that is all 🙂