I'm having some trouble creating a new site template on a customer's system using a site template I've created against our UAT system. Both are using SharePoint 2010 Foundation. The site template creates without any trouble.

When I try to create the new site I see the following errors in the 14/LOGS file:-

When I rename the .wsp to .cab and check, there is an EditForm.aspx listed under the List/CaseNotes folder. When I check the list via SharePoint Designer, the EditForm.aspx is not shown as an associated form. But if I try to create one it tells me that the file already exists.

Prior to this point it has happily created some of the other custom lists on the site. So it certainly looks like the EditForm.aspx is the source of the problem but I'm stumped as to where to look for a solution and I've found nothing via Googling.

Has anybody else had this problem and can offer a possible solution?

Cheers!

* UPDATE 04/10/2011 *
I've managed to get past this error by creating the EditForm.aspx again. I've created just a standard edit form against the list in SharePoint Designer. Previously it was a customised edit form. Changing this has allowed the site template to be successfully used to create a new site. However, when I try to access the site I get a new error message:-

System.Runtime.InteropServices.COMException: List does not exist.
List does not exist.
The page you selected contains a list that does not exist. It may have been deleted by another user.<nativehr>0x81020026</nativehr><nativestack></nativestack>

2 Answers
2

After some digging around it turned out this problem (part 2) was caused by the use of a web part in our custom master page. I haven't checked whether this would be a problem for coded web parts as well, but for now I've removed the web part and the site template works fine.