• This email address is being protected from spambots. You need JavaScript enabled to view it.

    Recent items


Thursday, 17 October 2013 17:45

My first Office365 App

Written by
Rate this item
(0 votes)

Today, I started to develop and deploy my first App for SharePoint online into Office 365.

After the creation of some test files, it would be the time to deploy the app and Visual Studio shows me the first error:

"Error occurred in deployment step 'Install app for SharePoint': Sideloading of apps is not enabled on this site."

After some searches on google, I understand that I need to enable an hidden feature if I want to use the development site. I need to download and install the "SharePoint Online Management Shell".

I've installed it, i've run and I've received another error (now from the SharePoint online powershell):

"Import-Module : Could not load type 'Microsoft.SharePoint.Administration.SiteHealth.SiteHealthStatusType' from assembly 'Microsoft.SharePoint.Client, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c'."

At this point, google does not help me.

The solution is to NOT use the SharePoint online shell directly but from the SharePoint 2013 Management Shell and use this script:

Show/Hidden bash code

View source
$programFiles = [environment]::getfolderpath("programfiles")
add-type -Path $programFiles'\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.SharePoint.Client.dll'
Write-Host 'To enable SharePoint app sideLoading, enter Site Url, username and password'
$siteurl = Read-Host 'Site Url'
$username = Read-Host "User Name"
$password = Read-Host -AsSecureString 'Password'
 $outfilepath = $siteurl -replace ':', '_' -replace '/', '_'
 [Microsoft.SharePoint.Client.ClientContext]$cc = New-Object Microsoft.SharePoint.Client.ClientContext($siteurl)
 [Microsoft.SharePoint.Client.SharePointOnlineCredentials]$spocreds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)
 $cc.Credentials = $spocreds
 Write-Host -ForegroundColor Yellow 'SideLoading feature is not enabled on the site:' $siteurl
 $site = $cc.Site;
 $sideLoadingGuid = new-object System.Guid "AE3A1339-61F5-4f8f-81A7-ABD2DA956A7D"
 $site.Features.Add($sideLoadingGuid, $true, [Microsoft.SharePoint.Client.FeatureDefinitionScope]::None);
 Write-Host -ForegroundColor Green 'SideLoading feature enabled on site' $siteurl
 #Activate the Developer Site feature
 Write-Host -ForegroundColor Red 'Error encountered when trying to enable SideLoading feature' $siteurl, ':' $Error[0].ToString();



Read 33368 times Last modified on Tuesday, 12 January 2016 10:32


  • Comment Link SMB Tuesday, 08 April 2014 10:07 posted by SMB

    Hello, I have resolved your issue by installing the "SharePoint Online Management Shell" with the same language as my operating system

  • Comment Link Luca Costante Monday, 14 April 2014 12:47 posted by Luca Costante

    many thanks SMB. My problem was derived because I was using an old version of SP2013.

  • Comment Link Uwe Tuesday, 06 May 2014 17:31 posted by Uwe

    Great, the language hint worked for me!

  • Comment Link script Friday, 16 May 2014 17:10 posted by script

    An impressive share! I have just forwarded this onto a colleague who had been conducting a little homework on this.
    And he in fact bought me lunch due to the fact that I discovered it for him...
    lol. So let me reword this.... Thank YOU for the meal!! But yeah,
    thanks for spending the time to discuss this matter here on your

  • Comment Link Julio Saturday, 28 November 2015 02:40 posted by Julio

    Thanks for finally talking about >Luca Costante - My first Office365 App

  • Comment Link Ellie Thursday, 09 June 2016 22:18 posted by Ellie

    Hey very nice blog!


Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.