An error occurred while creating the IIS virtual directory

geekoh
geekoh used Ask the Experts™
on
OK, included here is a portion of my exchangesetup.log for review.

I removed Exchange 2007, I demoted the Windows 2008 server, I removed it from the domain.  I added it to the domain, I promoted the server, it has all 5 of the roles from 2008, there is also a 2003 DC in the domain, this is the only instance of a mail server in the domain.

I am installing the 64 bit version of Exchange 2007 SP1

I installed the Management Tools and Hub Transport with no problem, when it got to CAS it failed because the OWA directory was there.  I stopped, removed the directory, uninstalled CAS from the command line and tried again.  I have tried everything I can find and still get the same error.  

If anyone has any further instructions or ideas, I am in dire need.

Thanks,

---------------------------------
1)  I have removed everything from IIS, then I removed IIS and reinstalled it since I keep getting this error.

2)  I have deleted everything in the C:\inetpub\History directory (a keep deleting it every time it fails, it always has these lines in the history file:

<key path="LM/W3SVC/FILTERS/COMPRESSION/gzip">
      <property id="2215" dataType="DWord" userType="1" attributes="None" value="1" />
      <property id="2238" dataType="MultiSZ" userType="1" attributes="None" value="htm&#xA;html&#xA;txt&#xA;htc&#xA;css&#xA;js&#xA;xsl&#xA;docx&#xA;doc&#xA;xlsx&#xA;xls&#xA;pptx&#xA;ppt&#xA;mdb&#xA;" />
       <property id="2244" dataType="MultiSZ" userType="1" attributes="None" value="owa&#xA;aspx&#xA;eas&#xA;" />
</key>

and these:

 <application path="/owa/8.1.359.2" applicationPool="MSExchangeOWAAppPool">
                    <virtualDirectory path="/" physicalPath="D:\Exchange Server\ClientAccess\owa\8.1.359.2" />
</application>
<application path="/owa/8.1.375.2" applicationPool="MSExchangeOWAAppPool">
                    <virtualDirectory path="/" physicalPath="D:\Exchange Server\ClientAccess\owa\8.1.375.2" />
</application>


3)  I have utilized the IIS 6 script to force 64 bit processing

4)  I have searched my hd for any directory named OWA and there isn't one, I haven't configured IIS since I have reinstalled it, and there is no OWA in that interface.

5)  I have searched the registry for any reference to OWA and don't find one after I uninstall CAS.

---------------------------------
SNIPPET FROM EXCHANGESETUP.LOG
 
[7/16/2009 7:05:15 PM] [2] [ERROR] Unexpected Error
[7/16/2009 7:05:15 PM] [2] [ERROR] An error occurred while creating the IIS virtual directory 'IIS://bigbox.ftbbs.com/W3SVC/1/ROOT/owa' on 'BIGBOX'.
[7/16/2009 7:05:15 PM] [2] [ERROR] Cannot create a file when that file already exists. (Exception from HRESULT: 0x800700B7)
[7/16/2009 7:05:15 PM] [2] Ending processing.
[7/16/2009 7:05:15 PM] [1] The following 1 error(s) occurred during task execution:
[7/16/2009 7:05:15 PM] [1] 0.  ErrorRecord: An error occurred while creating the IIS virtual directory 'IIS://bigbox.ftbbs.com/W3SVC/1/ROOT/owa' on 'BIGBOX'.
[7/16/2009 7:05:15 PM] [1] 0.  ErrorRecord: System.InvalidOperationException: An error occurred while creating the IIS virtual directory 'IIS://bigbox.ftbbs.com/W3SVC/1/ROOT/owa' on 'BIGBOX'. ---> System.Runtime.InteropServices.COMException (0x800700B7): Cannot create a file when that file already exists. (Exception from HRESULT: 0x800700B7)
   at System.DirectoryServices.Interop.UnsafeNativeMethods.IAdsContainer.Create(String className, String relativeName)
   at System.DirectoryServices.DirectoryEntries.Add(String name, String schemaClassName)
   at Microsoft.Exchange.Management.Metabase.IisUtility.CreateVirtualDirectory(DirectoryEntry parentWebDir, String path, String name)
   at Microsoft.Exchange.Management.Metabase.IisUtility.CreateWebDirObject(String parent, String path, String vdirName)
   at Microsoft.Exchange.Management.Metabase.CreateVirtualDirectory.Execute()
   at Microsoft.Exchange.Management.SystemConfigurationTasks.NewExchangeVirtualDirectory`1.CreateToMetabase()
   at Microsoft.Exchange.Management.SystemConfigurationTasks.NewExchangeVirtualDirectory`1.InternalProcessRecord()
   --- End of inner exception stack trace ---
[7/16/2009 7:05:15 PM] [1] [ERROR] An error occurred while creating the IIS virtual directory 'IIS://bigbox.ftbbs.com/W3SVC/1/ROOT/owa' on 'BIGBOX'.
[7/16/2009 7:05:15 PM] [1] [ERROR] Cannot create a file when that file already exists. (Exception from HRESULT: 0x800700B7)
[7/16/2009 7:05:15 PM] [1] Setup is halting task execution because of one or more errors in a critical task.
[7/16/2009 7:05:15 PM] [1] Finished executing component tasks.
[7/16/2009 7:05:15 PM] [1] Ending processing.
[7/16/2009 7:05:36 PM] [0] End of Setup

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Have you tried with IIS 7.
Expert of the Quarter 2009
Expert of the Year 2009

Commented:
So the machine was a domain controller?
I would have wiped it. The security settings on a DC can screw up things considerably. A wipe and reinstall of Windows 2008 would have been the quickest option. Install it off a memory stick, only takes 20 minutes that way!

Simon.

Author

Commented:
tallafornia

I am running IIS7
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Author

Commented:
Mestha

Thanks for the idea, that is definitely on the horizon if I can't find a fix for this problem.  Wipe it all and start all over again.  Hopefully someone on here will have a solution though.

Author

Commented:
I think I have my problem resolved, I will let you know as soon as I finish this.
Commented:
OK, I resolved my problem without having to reinstall.  Since no one else seems to have the problem or a solution, I guess we can close this thread - this was obviously a one-off issue that only I have ever had to worry about.

Commented:
I have this issue how did you resolve it?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial