Restore error: "There are no more files" + COM error 0x80070012
I was recently doing an stsadm –o restore to restore a backup and was able to successfully move my production site collection backup to test. When i went to the site it mostly worked with the exception of one subsite. One subsite was returning a COM error "There are no more files" with a COM error code 0x80070012.
When i investigated it more most of the site was working with the exception of the Pages. My guess was that the pages lost their association to the Page Layouts when i moved the site.
I solved this by deleting all of the pages and recreating them.
Hope this helps someone.