Error “Value does not fall within the expected range” when calling GetCustomListTemplates method when creating a custom list from a ListTemplate.

When deploying an .stp file within a feature and trying to use this file within a feature receiver FeatureActivated method the list template will not return in the GetCustomListTemplates method unless two properties are specified for the .stp within the elements.xml. These properties are LanguageDisplay and Version. Shown below.  


Screen clipping taken: 2/18/2009, 12:14 PM

What magical property these properties hold that allow the list template to be seen in the GetCustomListTemplate method I do know. But once I deleted the old .stp file from the gallery, re-deployed and activated the feature all was well.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: