Blog Post

IIS Support Blog
1 MIN READ

WAS service was unable to start with error "Cannot create a file when that file already exists."

Sandeep_Goyal's avatar
Sandeep_Goyal
Former Employee
Apr 20, 2023

Symptom

 

We had an issue where IIS was throwing below error.

 

Creating an instance of the COM component with CLSID from the IClassFactory failed due to the following error: 800700b7

 

Please find below screen shot for reference.

 

WAS service was unable to start with error "Cannot create a file when that file already exists".

 

Please find below screen shot for reference.

 

 

Cause

 

Duplicate schema configuration xml file exists in "C:\Windows\System32\inetsrv\config\schema" folder.

 

Please find below screen shot for your reference.

 

Resolution

 

Remove the duplicate schema configuration xml file from "C:\Windows\System32\inetsrv\config\schema" folder and restart WAS service.

 

In this example, please remove the below highlighted files from "C:\Windows\System32\inetsrv\config\schema" folder.

 

 

NOTE: This same error shown when WAS fails to start can happen for different but similar schema file related issues, so it is imperative to identify which schema file is causing the issue - and Procmon trace can help with that.

Published Apr 20, 2023
Version 1.0
No CommentsBe the first to comment