Clear Configuration Cache to remedy Error HTTP 404 on one of WFE when replacing Sharepoint content database
In case you have several WFE , and doing replacing your content database by removing from central admin then add again using different database name (sometimes it happened when you want to restore database to new created web app with different database name).
You may have run into error HTTP 404 when browse into one of WFE.
And if you open standard sharepoint application page like ‘_layouts/settings.aspx’ there will be error ‘Object reference not set to an instance of an object’ in Sharepoint ULS Log.
Even if you restart IIS or even restart Server it won’t remedy.
To fix it we have to clear configuration cache on affected WFE by doing these following steps :
The result is the *.xml files will created again. And you can check if it is successfull or not by comparing the *.xml files that created with the ones that you’ve backup, if it’s the same then it is successful and you can try to browse on coresponding WFE.
Fyi, some people have make Powershell script to simplify that steps that you can try.