WAS Service Is Unable To Start With The Error "Cannot Create A File When That File Already Exists"

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

Symptom: Issue where IIS was throwing the below error.

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

Find the below screenshot for reference.

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

Find the below screenshot for reference.

Root Cause: A duplicate schema configuration XML file exists in the "C:\Windows\System32\inetsrv\config\schema" folder.

Find the below screenshot for the reference.


Resolution:

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

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