I was getting the following error when installing SharePoint 2013 in the stand-alone configuration over a clean Windows Server 2012 virtual machine:
Failed to create sample data.
An exception of type System.NullReferenceException was thrown. Additional exception information: Object reference not set to an instance of an object.
After testing without luck all of the approaches explained in these links:
- Handling Errors while installing (Stand-Alone) SharePoint 2013
- Error in Step 18 – Sharepoint 2013 Configuration
- Sharepoint 2013 Products Configuration Wizard Error : Failed to create sample data
The one that finally solved it was: Installing all Windows Updates and re-running the Configuration Wizard.
Another Tip: Do not start installing SharePoint 2013, without installing first .NET Framework 3.5 manually from Windows Features first. If you are unable to install it because of this error:
“The source files could not be found”
Happy SharePoint coding! 🙂