Sunday, 17 January 2010

SharePoint Site isn't present in IIS, how to restore it back?

Background:
I executed pending timer jobs in queue manually by using stsadm command 'execadmsvcjobs'. There was one job in the queue which unprovisioned one of the SharePoint sites. What was the source of this job? so far I think 'God Knows Very Well'. Now what, the site isn't present in IIS, but there's extended version of the same web application present. How to restore the default site?

I tried to restore the site from application server by manually copying and pasting the site's file system, as I'm using win 2k8 so it wasn't that easy. I left the manual creation alone and went to 'Application Management > Authentication Providers > Edit Authentication' option and save the page without modifying anything.

I checked the Job Queue, SharePoint created another job to reprovisioned the lost site. When the job execution finished, it gave me back the site in proper working condition.

Conclusion:
If the site is deleted from IIS but still present in content db you can restore by restoring first the file system into 'inetpub\wwwroot\wss\' folder and map the site manually in IIS. Once you've finished with this, use 'Application Management > Authentication Providers > Edit Authentication' option to save the page without making any changes. This action will create reprovisioning job in the background that will eventually restore the site back in IIS.

Note: You can also use your extended site's folder to restore the contents of the lost site. But this will not give you the customisation that you've made specifically for the lost site. You'll need to restore them afterwards.

Hope this will help !
Majid

No comments:

Iconise ‘Add Picture’ control in PowerApps

Default look you get for ‘Add Picture’ control is not very appealing for end user and there is no OTB way of specifying icon for this con...