WAS service was unable to start with error "Cannot create a file when that file already exists."
Published Apr 19 2023 11:20 PM 6,074 Views
Microsoft

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.

 

1.png

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

 

Please find below screen shot for reference.

 

Sandeep_Goyal_1-1681971291573.png

 

Cause

 

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

 

Please find below screen shot for your reference.

 

Sandeep_Goyal_3-1681971494466.png

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.

 

 

Sandeep_Goyal_4-1681971553393.png

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.

Co-Authors
Version history
Last update:
‎Apr 19 2023 11:20 PM
Updated by: