Object identifier does not represent a valid object

This post has been republished via RSS; it originally appeared at: New blog articles in Microsoft Tech Community.

IIS Manager may display this error while starting a website: “The object identifier does not represent a valid object”

 

I saw this error for a SharePoint 2019 site hosted in Windows Server 2019 server

Nedim_0-1639529453113.jpeg

 

Solution

First, check the applicationHost.config file for corrupt configuration. If the same website is working on another server, compare the config files.

 

For the case I worked on, the website was missing folder path and application pool in the config. IIS Manager showed the path empty but there was DefaultAppPool for the application pool.

 

I copied site folders from another location and configured the path in IIS Manager. Then I selected the correct application pool for this website. It started working afterward.

REMEMBER: these articles are REPUBLISHED. Your best bet to get a reply is to follow the link at the top of the post to the ORIGINAL post! BUT you're more than welcome to start discussions here:

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