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

This post has been republished via RSS; it originally appeared at: Microsoft Tech Community - Latest Blogs - .

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.