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
I'm senior Developer/Consultant and passionate about Microsoft Technologies including Microsoft 365, SharePoint and .NET. I have been working in this industry for well over 10 years. This blog is all about sharing unique scenarios and tips of my project work which someone else might find handy too.
Subscribe to:
Post Comments (Atom)
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...
-
There's a very good article on business connectivity services which puts you on the right direction to start things with it. But when a...
-
Powershell command start-job does support running the script block under specified user. The command also supports various other feature w...
-
Popular SQL Grim - How to get around with it: After a long when when I tried to run Share Point on my laptop - rather me seeing the centr...
No comments:
Post a Comment