I have a List template (a stp-file). If I upload it to the list gallery through the UI, it is uploaded and I can create lists based on that template file in the same site.
However, if I bundle it in a module in my project, and try to upload it, the file is added to the gallery, but I can't create lists with the definition! Not through UI, and not programmatically.
I use this method to upload the file to the list template gallery.
My Elements.xml is as follows:
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Url="_catalogs/lt" Name="ListTemplates" Path="ListTemplates">
<File Url="MyList.stp" Path="MyList.stp" Type="GhostableInLibrary" IgnoreIfAlreadyExists="TRUE">
<Property Name="Title" Value="MyList" />
<Property Name="Language" Value="1033" />
<Property Name="FeatureID" Value="{3A71B642-D88C-48A4-BEB7-FC8DD4EFF9FE}" />
</File>
</Module>
</Elements>
Update: I want to add that I created a new list template based on a new custom list, and tried to deploy it the same way, but it didn't work either. So it's not the template file that's corrupt, it's something with the method