There are no more files. (Exception from HRESULT: 0x80070012)

You restore a SharePoint Site using the stsadm restore command

stsadm –o restore –url http://yoursite -filename C:sitebackup.dat -overwrite


and then try to view the site in a browser…and then you are presented with this error page

There are no more files. (Exception from HRESULT: 0x80070012)

You keep scratching your head so as to what went wrong here???

Let me tell you this is because the restore command is not very well versed with restoring large backup files. And might not restore all the data. This error occurs because the default.aspx page of the site which was backed up was customized and the customizations are stored in database. But since the data in database was not restored the site does not work properly and hence the above error

Steps to resolve:
1.Open sharepoint site in designder
2.Right click on “default.aspx” and select “Reset to site definition”

Your site will start working but the customizations will be gone. You will need to do the customizations again 🙂