ListInstance with Scope at Site ERROR

Found this out the hard way today, and found little posts that explained exactly what this does.  If you have a ListTemplate in a feature to define your list (which is Hidden) and then have a separate feature with a ListInstance inside, the ListInstance/@RootWebOnly attribute is only available when the Feature/@Scope=’Web’.  If you set the Feature/@Scope=’Site’ and have the ListInstance/@RoowWebOnly=’TRUE’, you will get the lovely "Object reference not set to an instance of an object".
 
Hope this helps someone…
Advertisements