Problems with Exchange 2010 - OWA / ECP

Hi!

Here is my problem:

Exchange 2010 - Win2008 R2

I had to recreate virtual OWA and ECP in Exchange because they were not working. I could recreate OWA virtual directory but when I try to do the same with ECP it gives me this error:

Creating a new session for implicit remoting of "New-EcpVirtualDirectory" command...

An Active Directory error 0x51 occurred when trying to check the suitability of server 'ECP'. Error: 'Active directory
response: The LDAP server is unavailable.'
    + CategoryInfo          : NotSpecified: (:) [New-EcpVirtualDirectory], SuitabilityDirectoryException
    + FullyQualifiedErrorId : EDE28C6,Microsoft.Exchange.Management.SystemConfigurationTasks.NewEcpVirtualDirectory

I would appreciate your help! Thanks.
LVL 1
rafaeldemartinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hilal1924Commented:
Run The Command Directly from the server instead of Remote PowerShell Session.

"Creating a new session for implicit remoting of "New-EcpVirtualDirectory" command..."

Also Please paste the entire New-EcpVirtualDirectory Cmdlet that you iused including the parameters that you specified. Add a -Domain Controller parameter and see if that helps.

Hilal
0
rafaeldemartinAuthor Commented:
I'm running it from the Exchange server.
If the Exchange server is exch.xxx.local and the DC is dc.xxx.local, what would be the entire line, please?
0
rafaeldemartinAuthor Commented:
The IIS have created the "ecp" virtual directory but the Exchange Server doesn't see it.
May I remove it manually or just create a new one with another name?

When I try to access http or https exch.xxx.local/ecp it gives me this error:

Server Error in '/ecp' Application.
--------------------------------------------------------------------------------

Error 0x5 (Access is denied) from HrGetServersForRole
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: Microsoft.Exchange.Rpc.RpcException: Error 0x5 (Access is denied) from HrGetServersForRole

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  


0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

Hilal1924Commented:
This one ("Error 0x5 (Access is denied) from HrGetServersForRole ") is difficult to fully ascertian from where it is originating, On face balue it says that access was denied which can be rectified by following this article :

http://technet.microsoft.com/en-us/library/dd876904.aspx

Reset and verify if your permissions are correct and try again.

Hilal
0
rafaeldemartinAuthor Commented:
I can't do that because Excahnge server doesn'r recognize this "ecp" virtual directory, in the EMC the work pane "ECP" is empty.
I tried to run from shell the command from the link you gave me and:

The operation couldn't be performed because object 'exch01\ecp (Default Deb Site)' couldn't be found on 'dc01.xxx.local
.
    + CategoryInfo          : NotSpecified: (0:Int32) [Set-EcpVirtualDirectory], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : FB052989,Microsoft.Exchange.Management.SystemConfigurationTasks.SetEcpVirtualDirectory
0
Hilal1924Commented:
Ok here is our Startegy:

Run This Command First:

Remove-EcpVirtualDirectory -Identity "Server01\ecp (default Web site)"

Then Run this Command

iisreset /noforce

And Then this Command:

New-EcpVirtualDirectory -Identity "Server01\ecp (default Web site)"

And Finally:

iisreset /noforce

Hope this Helps.
Hilal
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rafaeldemartinAuthor Commented:
[PS] C:\Windows\system32>Remove-EcpVirtualDirectory -Identity "exch01\ecp (Default Web site)"
The operation couldn't be performed because object 'exch01\ecp (Default Web site)' couldn't be found on 'dc02.xxx.local'
.
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-EcpVirtualDirectory], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : D3CF11D5,Microsoft.Exchange.Management.SystemConfigurationTasks.RemoveEcpVirtualDirector
   y

What if I remove if manually from the IIS?
0
Hilal1924Commented:
""" The operation couldn't be performed because object 'exch01\ecp (Default Web site)' couldn't be found on 'dc02.xxx.local'  ""

Are you running this command locally on Exchange server or remotely ?

It should not be looking for ecp directory on dc02, instead it should be your exchange server exch01.

Hilal
0
rafaeldemartinAuthor Commented:
That's what I don't understand either. I'm running the command locally on the Exchange Server. Everything I do on the Exchange server I always do it locally with full admin privileges.

If I remove it manually and recreate it by shell, do you think I'll have big problems?
0
Hilal1924Commented:
Hi, I am afraid not a good news from here. I talked to couple of guys and they said issues like these have been reported to Microsoft PSS and they have confirmed this as a bug and would be addressing it with Update Rollup which is to be released.

Here is a similar case although issue is different  http://forums.slipstick.com/showthread.php?t=29397

You can remove it manually but make sure that you take backup of IIS server so that you can restore it back if something breaks down.

Hilal
0
rafaeldemartinAuthor Commented:
I'll try to remove it manually, with a previous backup, and try to recreate it again by shell.

The I tell you what happens.

Thanks!
0
rafaeldemartinAuthor Commented:
I have removed ecp virtual directory and when I try to recreate it:
[PS] C:\Windows\system32>New-EcpVirtualDirectory -Identity "Exch01\ecp (Default Web site)"
Creating a new session for implicit remoting of "New-EcpVirtualDirectory" command...
Cannot process argument transformation on parameter 'DomainController'. Cannot convert value "Exch01\ecp (Default Web s
ite)" to type "Microsoft.Exchange.Data.Fqdn". Error: ""Exch01\ecp (Default Web site)" isn't a valid SMTP domain."
    + CategoryInfo          : InvalidData: (:) [New-EcpVirtualDirectory], ParameterBindin...mationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,New-EcpVirtualDirectory
0
rafaeldemartinAuthor Commented:
I have manually removed the ecp virtual directory and run:
New-EcpVirtualDirectory -externalurl "https://mail.abcd.com/ecp" -internalurl
"https://exch01/ecp" -Server "exch01.xxx.local"
It worked great!!!
 
Anyway, thanks for your help Hilal1924.
0
erikc61Commented:
I have this same issue but when i do command

Remove-EcpVirtualDirectory -Identity "Server01\ecp (default Web site)"

I get

object 'EXCHANgE\ecp (default web site)' couldn't be found on 'DOMAINCONTROLLER.xxxxx.com'

could it be something wrong with my DNS?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.