Tuesday, February 5, 2013

Restore Config folder GUID name in SharePoint 2010

Issue:
I was working on timer job issue at dev environment  and while clearing the cache.ini, mistakenly deleted the the config folder. Unable to recall the GUID of that config folder.
Resolution:


  1. Stop the SharePoint 2010 Timer process.
  2. Open Windows Registry Editor
  3. Locate the CinfigDB key. Usually it must be in this place if you are using SharePoint 2010. [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\Secure\ConfigDB]
  4. You will see String Values entries for
    • DSN :- Connection string for your configuration database.
    • Id :- GUID of SharePoint configuration database. Copy this GUID.
  5. Goto [SharePoint InstallDrive]\ProgramData\Microsoft\SharePoint\Config\ folder. (ProgramData folder is hidden, make sure change windows folder options to make it visible to you)
  6. Create a folder and name it as the GUID (that you just copied from Registry).
  7. Go into this folder, create a text file and name it as Cache.ini.
  8. Now edit this Cache.ini, key in value 1. Save and close the file.
  9. Start the SharePoint 2010 Timer process.
  10. Do an IIS RESET
  11. Now check all your application pools are up and running. Otherwise, start them manually.

No comments:

Post a Comment