pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
415 stars 642 forks source link

Error running c# provisioning example - Object of type 'OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.V202002.Security' cannot be converted to type 'OfficeDevPnP.Core.Framework.Provisioning.Model.SiteSecurity'. #2554

Open ng-jim opened 4 years ago

ng-jim commented 4 years ago

Category [ X] Bug Environment [x ] Office 365 / SharePoint Online

So, I run pretty well the code documented here : https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/provisioning-console-application-sample

Auth seems to work fine, however whenever I run something like : ProvisioningTemplateCreationInformation ptci = new ProvisioningTemplateCreationInformation(web) or var ttt = web.GetProvisioningTemplate();

I get an exception with message

"Object of type 'OfficeDevPnP.Core.Framework.Provisioning.Providers.Xml.V202002.Security' cannot be converted to type 'OfficeDevPnP.Core.Framework.Provisioning.Model.SiteSecurity'.

I'm sure I'm missing something very very basic, if anyone could point me in the right direction I'd be most grateful!

Packages used :

image

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.