Link to home
Start Free TrialLog in
Avatar of rafaeldemartin
rafaeldemartinFlag for Argentina

asked on

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.
Avatar of Hilal1924
Hilal1924
Flag of India image

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
Avatar of rafaeldemartin

ASKER

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?
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.  


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
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
ASKER CERTIFIED SOLUTION
Avatar of Hilal1924
Hilal1924
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
[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?
""" 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
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?
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
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!
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
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.
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?