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.
SalongeAsked:
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.

Simon Butler (Sembee)ConsultantCommented:
Have you restarted IIS at all since making the changes?

Simon.
0
SalongeAuthor Commented:
Yes. but I will try again
0
SalongeAuthor Commented:
did not work.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

SalongeAuthor Commented:
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
0
SalongeAuthor Commented:
Okay, update

I manually removed the ecp virtual server, iisreset, reran the new command and was able to recreate the virtual server; but it doesn't show up in the II manager nor do I see it in the Exchange console.
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
Simon Butler (Sembee)ConsultantCommented:
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.
0
SalongeAuthor Commented:
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,.
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.