Link to home
Start Free TrialLog in
Avatar of Salonge
Salonge

asked on

Unable to recreate the ECP virtual directory in Exchange 2010

I installed Exchange 2010 and everything was working fine, except the options in OWA from the external URL.

I was told to remove the ecp virtual directory and add it back by using the new-ecpvirtualdirectory "servername\ecp (default web site)"

It removed just fine, but when I tried to add it back I got the error message

The virtual directory 'ecp' already exists under 'Servername\ecp/Default Web Site'.
Parameter name: VirtualDirectoryName
    + CategoryInfo          : InvalidArgument: (EXCHANGE2010\ecp (Default Web Site):ADObjectId) [New-EcpVirtualDirecto
   ry], ArgumentException
    + FullyQualifiedErrorId : 72EA2BC3,Microsoft.Exchange.Management.SystemConfigurationTasks.NewEcpVirtualDirectory

So I looked in my IIAdmin and saw the ecp directory, which does not work.

I tried the remove again and new again with the same error. I went into the IIAdmin and manually removed the virtual directory and tried again, still not working.

This morning I went back into the IISadmin and the directory is there, but still not working.

Please help.
Avatar of Simon Butler (Sembee)
Simon Butler (Sembee)
Flag of United Kingdom of Great Britain and Northern Ireland image

Have you restarted IIS at all since making the changes?

Simon.
Avatar of Salonge
Salonge

ASKER

Yes. but I will try again
Avatar of Salonge

ASKER

did not work.
Avatar of Salonge

ASKER

This is the error

The virtual directory 'ecp' already exists under 'Servername\ecp/Default Web Site'.
Parameter name: VirtualDirectoryName
    + CategoryInfo          : InvalidArgument: (EXCHANGE2010\ecp (Default Web Site):ADObjectId) [New-EcpVirtualDirecto
   ry], ArgumentException
    + FullyQualifiedErrorId : 72EA2BC3,Microsoft.Exchange.Management.SystemConfigurationTasks.NewEcpVirtualDirectory
ASKER CERTIFIED SOLUTION
Avatar of Salonge
Salonge

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
That means it didn't create properly.
My instinct is that you have a corrupt IIS metabase. However before you do that, go through teh setup steps again like this:

Run the command to remove the directory again.
Then check if it has been removed from IIS manager. If not, remove it manually.

Run IISRESET to write the change to the IIS metabase.

Run the command to create the virtual directory, again check in IIS manager.
Run IISRESET again.

If it still isn't working, check the Application logs for any errors, but you could be looking at a reinstall of IIS and the CAS role.

Simon.
Avatar of Salonge

ASKER

This was the fix for me.  Even though the ecp did not show up in the directory list, I was able to get to the options,.