Microsoft Knowledge Base Email Alertz

KBAlertz.com: You cannot remove the OWA virtual directory from IIS 7 on an Exchange Server 2007 server

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **


Community Site



We Send hundreds of thousands of emails using ASP.NET Email


ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 978775 - Last Review: February 2, 2010 - Revision: 1.1

You cannot remove the OWA virtual directory from IIS 7 on an Exchange Server 2007 server

On This Page

SUMMARY

Assume that a Microsoft Exchange administrator wants to remove or add the Outlook Web Access (OWA) virtual directory on a Microsoft Exchange 2007 server that has the Client Access server role installed. However, the administrator receives error messages.

SYMPTOMS

When an Exchange administrator tries to remove the OWA virtual directory, the administrator receives the following error message in Exchange Management Shell:
Remove-OwaVirtualDirectory : The operation could not be performed because object 'Owa (Default Web Site)' could not be found on domain controller 'Sever 2008.contoso.local'.
At line:1 char:27
+ Remove-OwaVirtualDirectory  <<<< -Identity "Owa (Default Web Site)" -Confirm:$false 
When an Exchange administrator tries to create a new OWA virtual directory, the administrator receives the following error message in Exchange Management Shell:
New-OwaVirtualDirectory : The virtual directory 'owa' already exists under 'Server2008.contoso.local/Default Web Site '.
Parameter name: VirtualDirectoryName
At line:1 char:24
+ New-OwaVirtualDirectory  <<<< -WebSiteName "Default Web Site" -OwaVersion "Exchange2007"	 -ExternalAuthenticationMethods Fba

CAUSE

This issue occurs because the original ApplicationHost.config file is replaced with a newer version of the file in this scenario.

RESOLUTION

To fix this problem, use one of the following methods.

Method 1


Restore the original ApplicationHost.config file by using either Volume Shadow Copy Service (VSS) or the backup version of the ApplicationHost.config file.

Method 2


Manually edit the existing ApplicationHost.config file. To do this, follow these steps:
  1. Stop the IIS Admin Service and the World Wide Web Publishing Serviceon the Client Access server.
  2. Run the Notepad application as an administrator.
  3. Locate the ApplicationHost.config file in the %Windir%\System32\inetsrv\config\ path.
  4. Copy the ApplicationHost.config file, and then paste it into Notepad.
  5. Delete the entries from the ApplicationHost.config file.
  6. Save the ApplicationHost.config file.
  7. Restart the IIS Admin Service and the World Wide Web Publishing Service.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

APPLIES TO
  • Microsoft Exchange Server 2007 Enterprise Edition
  • Microsoft Exchange Server 2007 Standard Edition
Keywords: 
KB978775
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please