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.
ExchangeMicrosoft IIS Web Server

Avatar of undefined
Last Comment
Salonge
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
Salonge

ASKER

did not work.
Avatar of Salonge
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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
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
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,.
Exchange
Exchange

Exchange is the server side of a collaborative application product that is part of the Microsoft Server infrastructure. Exchange's major features include email, calendaring, contacts and tasks, support for mobile and web-based access to information, and support for data storage.

213K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo