Click here to Skip to main content
15,919,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,

I want to restore my Sharepoint farm using the database backups that I have.

I have setup two virtual servers, one for the Sharepoint and the other is for the SQL Server. The database backups are restored on the SQL Server. I ran Sharepoint Configuration Wizard > Select option "Connect to an existing farm" > Provided the Server name and Configurations database name > Install.

The installation process stops on Step 3 of 10. It throws an System.NullReferenceException : Object reference not set to an instance of an object.

It doesn't give me much info on where to look to eliminate this exception the second time around. Any thoughts on this?

Additional Information:

Sharepoint Server 2010 on virtual server 1.
SQL Server 2008 with the databases restored on virtual server 2.
Everything is in a test environment. No antivirus installed.
The credentials used are same as the live app

Windows Error Log:
Failed to connect to the configuration database.
An exception of type System.NullReferenceException was thrown.  Additional exception information: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.SharePoint.Administration.SPWebApplication.Provision()
   at Microsoft.SharePoint.Administration.SPWebServiceInstance.Provision()
   at Microsoft.SharePoint.Administration.SPFarm.Join()
   at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.CreateOrConnectConfigDb()
   at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.Run()
   at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

1 solution

It gives you plenty of information ConfigurationDatabaseTask.CreateOrConnectConfigDb()

Check the communication between the servers.

Where was the database restored from? Are you trying to use a databse from another SharePooint implementation?
Share this answer
johnnyTray 14-Aug-11 23:19pm    
Yes. I am trying to use the databases for another Sharepoint implementation. We used the database backups from our live server and restored it to our test environment.
[no name] 15-Aug-11 0:45am    
You can't just restore a backup database from one SharePoint environment to another. The configuration databases are unique to that environment and the settings stored in one will not apply to another. You use the database attach method to transfer the database

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900