Wednesday, December 7, 2016

How to: Change team site template to developer site. Sideloading of apps is not enabled on this site

Hi all,

While working on SharePoint Online apps via Visual Studio 2015, you may encounter some issue I faced initially.

1.    Build a simple such as Hello World, if your site is Team Site, you will get an error in  Visual Studio 2015 when deploy your app as below. Sideloading of apps is not enabled on this site


2.    After some research  I found I need to download the SharePoint Online Management Shell.



I checked all the SharePoint Online commands





3.    I directly typed the following command:
Enable-SPFeature e374875e-06b6-11e0-b0fa-57f5dfd72085 –url http://intranet.contoso.com




and received a welcome error: ;). Basically its feature is SharePoint On-Premises environment and not for SharePoint Online.


4.    My research continued and found a script from renowned MVP Colin Phillips and download this script on my laptop.


5.    I again got an error and his script has some extra special characters that PowerShell could not recognise. So I removed all the  extra special characters and ran again.

I again got an error as follows:




6.    I ran the command with unrestricted execution policy and finally converted my team site to developer site.



I hope it helps. This is the corrected script.

Cheers,
Aroh     

No comments:

Low Code Reimagined with AI + Copilot Pitch Deck - Copy Copilot day (Virtual) - 2023

 Hi All,  I presneded a session at Pune UG on Low Code Reimagined with AI + Copilot Pitch Deck.  Video is at this address  https://www.youtu...