Home > Sharepoint > Clear Configuration Cache to remedy Error HTTP 404 on one of WFE when replacing Sharepoint content database

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 :

  • Stop ‘Sharepoint 2010 Timer’ ( OWSTIMER ) Windows service.
  • Go to folder C:\ProgramData\Microsoft\SharePoint\Config\{GUID}. Backup it first, then delete all *.xml files, and edit content in file cache.ini to 1.
  • Start ‘Sharepoint 2010 Timer’ ( OWSTIMER ) Windows service.
  •  

    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.

    Categories: Sharepoint Tags:
    1. No comments yet.
    1. No trackbacks yet.

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    %d bloggers like this: