ListCreationInformation does not contain a definition for ListTemplate and no extension method ListTemplate accepting a first argument of type ListCreationInformation could be found

ListCreationInformation does not contain a definition for ListTemplate
SharePoint deveopment training course

In this post, we will discuss how we can resolve the below issue which comes when we were trying to create a SharePoint list from a custom list template using (c#.net) .net managed object model code.

But we got the below error in the below line:

listCreationInfo.ListTemplate = listTemplate;

The error comes as:

‘ListCreationInformation’ does not contain a definition for ‘ListTemplate’ and no extension method ‘ListTemplate’ accepting a first argument of type ‘ListCreationInformation’ could be found (are you missing a using directive or an assembly reference?)



ListCreationInformation does not contain a definition for ListTemplate
ListCreationInformation does not contain a definition for ListTemplate

Solution:
The solution is to use the updated dll (Microsoft.SharePoint.Client.dll).

Here I have used the 16.1.6420.1200 version of Microsoft.SharePoint.Client.dll.

Hope this will be helpful.

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

About Bhawana Rathore

Hello Everyone!! I am Bhawana a SharePoint MVP and having about 8+ years of SharePoint experience as well as in .Net technologies . I have worked in all the versions of SharePoint from wss to Office 365. I have good exposure in Customization and Migration using Nintex, Metalogix tools . Now exploring more in SharePoint 2016 :) Hope here I can contribute and share my knowledge to the fullest. As I believe "There is no wealth like knowledge, and no poverty like ignorance"

View all posts by Bhawana Rathore →