I am building a SharePoint Feature to deploy a simple WebPart and a custom list within the "Web" scope.
- When the solution is deployed my list is immediately available in Site Actions -> Site Settings -> Custom Lists.
- If you try and create an instance of the list I receive "File Not Found"
- If you activate the feature a second copy of the list template is added to the Custom Lists heading.
- Neither list can be created with the same "File Not Found" error
- On deactivating the feature one list template disappears
- On retracting the solution the last list template disappears
Files Involved:
- schema.xml is 5000 lines long
feature.xml is as follows
<?xml version="1.0" encoding="utf-8"?>
<Feature Id="78a8eaad-2160-434c-81c2-6c5f7ce94ade" Title="WeekWidget" Description="Displays A, B or H based upon a configurable SharePoint List." Version="1.0.0.0" Creator="Cardinal Newman Catholic School // Richard Slater" Scope="Web" ImageUrl="WeekWidget\WeekWidgetLogo.jpg" xmlns="http://schemas.microsoft.com/sharepoint/&quot; DefaultResourceFile="core">
<ElementManifests>
<ElementManifest Location="ListTemplates\WeekCalendar.xml" />
<ElementFile Location="WeekCalendar\Schema.xml" />
</ElementManifests>
</Feature>WeekCalendar.xml is as follows
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
<ListTemplate Name="WeekCalendar" DisplayName="Week Calendar" Description="List of Weeks." BaseType="0" Type="100" OnQuickLaunch="TRUE" SecurityBits="11" Sequence="410" Image="/_layouts/images/itgen.gif" />
</Elements>
I think the "File Not Found" error is symptomatic of another problem, however the addition of the list template shouldn't happen on solution deployment. What am I doing wrong?