Forum Discussion
Does SP 2016 on-premises still require PowerShell script to be run prior to async SC creation?
VesaJuvonen, I did confirm that this is still the case on-premises in SharePoint 2016. However, in following the instructions in the blog, I ran the PowerShell script as directed, but still receive the following error:
{"Cannot find stub for type with id \"{268004ae-ef6b-4e9b-8425-127220d84719}\". The specified server may not support APIs used in this operation."}This error appears http://sharepoint.stackexchange.com/questions/105122/sharepoint-2013-high-trust-app-site-collection-provisioning before running the PowerShell script; that is to say, the assembly is still not being loaded.
I tried updating the script to use version 16.0.5806.1205 of the Microsoft.Online.SharePoint.Client.Tenant.dll assembly (this is now the version included with the PowerShell for SharePoint Online package), but to no avail. I also double-checked that the site collection is in fact set as a TenantAdministration site.
Any pointers? I'm concerned that I am missing a prerequisite somewhere. Could this same error also be thrown if the client context is not properly created?
VesaJuvonen, apologies for being so persistent, but wanted to check to see if you had any comment on this. Everything I'm reading indicates that I need to install version 15 of the Microsoft.Online.SharePoint.Client.Tenant assembly; is this still a necessity, and would NOT having that assembly installed cause this error?
If so, how do I obtain the 15 version? The link in the blogs only provides the latest version, which is 16.x.x.x
- VesaJuvonenNov 24, 2016
Microsoft
Here's the quick additional introduction on how to create site collections with CSOM in SharePoint 2016 environment.
- VesaJuvonenNov 24, 2016
Microsoft
Sorry for small delay on this. Here's a PnP-Tools script for enabling site collection creation with CSOM for SP2013 or SP2016. Reame should have sufficient information for you around the needed setup for SP2016.
I'll also write a quick blog post around this script, so that we get it more visible around the same blogs as the setup for SP2013.