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

8/22/2022 - Mon
Simon Butler (Sembee)

Have you restarted IIS at all since making the changes?

Simon.
ASKER
Salonge

Yes. but I will try again
ASKER
Salonge

did not work.
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER
Salonge

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
Salonge

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Simon Butler (Sembee)

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.
ASKER
Salonge

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,.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.