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
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!
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 :