Forum Discussion
Magnus Forsmark
Dec 22, 2017Copper Contributor
Timeout (?) calling ClientSidePage.AvailableClientSideComponents when adding webparts
I'm trying to create a Modern Experience page from a Provider Hosted app in C# and add webparts to it.
The ClientSidePage is created ok and i can add sections to it with ClientSidePage.AddSecti...
Vishwanatha Nayak
Dec 29, 2017Brass Contributor
Hi,
Please verify if the DenyAddAndCustomizePages is set to false or 0
Set-SPOSite -Identity https://<yourdomain>.sharepoint.com -DenyAddAndCustomizePages $false
Magnus Forsmark
Jan 04, 2018Copper Contributor
Hi
The DenyAddAndCustomizePages is set to Disabled.
I ditched the built in AvailableClientSideComponents function and wrote my own using the /_api/web/GetClientSideWebParts API instead and now it's working as expected.