{"id":816,"date":"2013-04-29T12:48:07","date_gmt":"2013-04-29T19:48:07","guid":{"rendered":"https:\/\/mmman.itgroove.net\/?p=816"},"modified":"2023-02-24T21:48:45","modified_gmt":"2023-02-24T21:48:45","slug":"office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site","status":"publish","type":"post","link":"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/","title":{"rendered":"Office 365 Small Business &#8220;Sideloading of apps is not enabled on this site&#8221;"},"content":{"rendered":"<p>I began working on a new Office 365 site I had just created, and wanted to use Visual Studio to add an app to the site (using the Visual Studio deployment mechanism).&nbsp; Unfortunately, I ran into the following error when I tried to run a \u201cdeploy\u201d of the app.<\/p>\n<p><font face=\"Courier New\">&#8220;Sideloading of apps is not enabled on this site&#8221;<\/font> <\/p>\n<p>After a bit of pain sifting through the Google on the Internet box, I came across the following forum post on MSDN, <a title=\"http:\/\/social.msdn.microsoft.com\/Forums\/en-US\/appsforsharepoint\/thread\/f30dcfa5-5047-4bd5-9f02-9feb7e935eec\/\" href=\"http:\/\/social.msdn.microsoft.com\/Forums\/en-US\/appsforsharepoint\/thread\/f30dcfa5-5047-4bd5-9f02-9feb7e935eec\/\">http:\/\/social.msdn.microsoft.com\/Forums\/en-US\/appsforsharepoint\/thread\/f30dcfa5-5047-4bd5-9f02-9feb7e935eec\/<\/a>.&nbsp; In that post, there\u2019s a perfect little section of PowerShell that allows you to specify your Office 365 site and credentials, and will then enable the feature for you. <\/p>\n<p>Below is a copy of the code you\u2019ll need to put into a \u201c.ps1\u201d file on your local machine.&nbsp; Note you\u2019ll also need a copy of the \u201cMicrosoft.SharePoint.Client.dll\u201d somewhere  &#8211; so you can run this script from another SharePoint server, alternatively, you can get the <a href=\"http:\/\/www.microsoft.com\/en-ca\/download\/details.aspx?id=35588\">SharePoint Online Management Shell<\/a> (local install on your dev machine) which is exactly where the code below will expect to find the file, or if you have a copy of the DLL on your machine locally, that works too, just change the path to the file in the code.<\/p>\n<p>[code language=&#8221;powershell&#8221;]<br \/>\n#CODE STARTS HERE<\/p>\n<p>$programFiles = [environment]::getfolderpath(&quot;programfiles&quot;)<br \/>\nadd-type -Path $programFiles&#8217;\\SharePoint Online Management Shell\\Microsoft.Online.SharePoint.PowerShell\\Microsoft.SharePoint.Client.dll&#8217;<br \/>\nWrite-Host &#8216;To enable SharePoint app sideLoading, enter Site Url, username and password&#8217;<\/p>\n<p>$siteurl = Read-Host &#8216;Site Url&#8217;<br \/>\n$username = Read-Host &quot;User Name&quot;<br \/>\n$password = Read-Host -AsSecureString &#8216;Password&#8217;<\/p>\n<p>if ($siteurl -eq &#8221;)<br \/>\n{<br \/>\n   $siteurl = &#8216;https:\/\/mytenant.sharepoint.com\/sites\/mysite&#8217;<br \/>\n   $username = &#8216;me@mytenant.onmicrosoft.com&#8217;<br \/>\n   $password = ConvertTo-SecureString -String &#8216;mypassword!&#8217; -AsPlainText -Force<br \/>\n}<br \/>\n$outfilepath = $siteurl -replace &#8216;:&#8217;, &#8216;_&#8217; -replace &#8216;\/&#8217;, &#8216;_&#8217;<\/p>\n<p>try<br \/>\n{<br \/>\n   [Microsoft.SharePoint.Client.ClientContext]$cc = New-Object Microsoft.SharePoint.Client.ClientContext($siteurl)<br \/>\n   [Microsoft.SharePoint.Client.SharePointOnlineCredentials]$spocreds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)<\/p>\n<p>   $cc.Credentials = $spocreds&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host -ForegroundColor Yellow &#8216;SideLoading feature is not enabled on the site:&#8217; $siteurl<br \/>\n   $site = $cc.Site;<\/p>\n<p>   $sideLoadingGuid = new-object System.Guid &quot;AE3A1339-61F5-4f8f-81A7-ABD2DA956A7D&quot;<br \/>\n   $site.Features.Add($sideLoadingGuid, $true, [Microsoft.SharePoint.Client.FeatureDefinitionScope]::None);<br \/>\n   $cc.ExecuteQuery();<br \/>\n   Write-Host -ForegroundColor Green &#8216;SideLoading feature enabled on site&#8217; $siteurl<\/p>\n<p>   #Activate the Developer Site feature<br \/>\n}<br \/>\ncatch<br \/>\n{<br \/>\n   Write-Host -ForegroundColor Red &#8216;Error encountered when trying to enable SideLoading feature&#8217; $siteurl, &#8216;:&#8217; $Error[0].ToString();<br \/>\n}<\/p>\n<p>#CODE ENDS HERE<br \/>\n[\/code] <\/p>\n<p>When run, my output looked similar to the following. <\/p>\n<p><font face=\"Courier New\">PS C:\\Windows\\system32&gt; C:\\scripts\\EnableDevOnO365.ps1<br \/>To enable SharePoint app sideLoading, enter Site Url, username and password<br \/>Site Url: ****<br \/>User Name: ****<br \/>Password: ****<br \/>SideLoading feature is not enabled on the site: <\/font><a href=\"https:\/\/MyPubilcSite.sharepoint.com\"><font face=\"Courier New\">https:\/\/MyPubilcSite.sharepoint.com<\/font><\/a><\/p>\n<p><font face=\"Courier New\">DefinitionId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :<br \/>Context&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : Microsoft.SharePoint.Client.ClientContext<br \/>Tag&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :<br \/>Path&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : Microsoft.SharePoint.Client.ObjectPathMethod<br \/>ObjectVersion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :<br \/>ServerObjectIsNull :<br \/>TypedObject&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : Microsoft.SharePoint.Client.Feature<\/font><\/p>\n<p><font face=\"Courier New\">SideLoading feature enabled on site <\/font><a href=\"https:\/\/MyPubilcSite.sharepoint.com\"><font face=\"Courier New\">https:\/\/MyPubilcSite.sharepoint.com<\/font><\/a><\/p>\n<p>This script nicely enabled the necessary feature for me, and then I was able to deploy my solution to my Office 365 site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I began working on a new Office 365 site I had just created, and wanted to use Visual Studio to add an app to the site (using the Visual Studio deployment mechanism).&nbsp; Unfortunately, I ran into the following error when I tried to run a \u201cdeploy\u201d of the app. &#8220;Sideloading of apps is not enabled &hellip; <a href=\"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/\"><\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[20,31,7],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Office 365 Small Business &quot;Sideloading of apps is not enabled on this site&quot; - Archive<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Office 365 Small Business &quot;Sideloading of apps is not enabled on this site&quot; - Archive\" \/>\n<meta property=\"og:description\" content=\"I began working on a new Office 365 site I had just created, and wanted to use Visual Studio to add an app to the site (using the Visual Studio deployment mechanism).&nbsp; Unfortunately, I ran into the following error when I tried to run a \u201cdeploy\u201d of the app. &#8220;Sideloading of apps is not enabled &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/\" \/>\n<meta property=\"og:site_name\" content=\"Archive\" \/>\n<meta property=\"article:published_time\" content=\"2013-04-29T19:48:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-24T21:48:45+00:00\" \/>\n<meta name=\"author\" content=\"Colin Phillips (Alumni)\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Colin Phillips (Alumni)\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/\",\"url\":\"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/\",\"name\":\"Office 365 Small Business \\\"Sideloading of apps is not enabled on this site\\\" - Archive\",\"isPartOf\":{\"@id\":\"https:\/\/regroove.ca\/archive\/#website\"},\"datePublished\":\"2013-04-29T19:48:07+00:00\",\"dateModified\":\"2023-02-24T21:48:45+00:00\",\"author\":{\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b\"},\"breadcrumb\":{\"@id\":\"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog Archive\",\"item\":\"https:\/\/regroove.ca\/archive\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Office 365 Small Business &#8220;Sideloading of apps is not enabled on this site&#8221;\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/regroove.ca\/archive\/#website\",\"url\":\"https:\/\/regroove.ca\/archive\/\",\"name\":\"Archive\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/regroove.ca\/archive\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b\",\"name\":\"Colin Phillips (Alumni)\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/regroove.ca\/archive\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g\",\"caption\":\"Colin Phillips (Alumni)\"},\"url\":\"https:\/\/regroove.ca\/archive\/author\/cphillips\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Office 365 Small Business \"Sideloading of apps is not enabled on this site\" - Archive","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/","og_locale":"en_US","og_type":"article","og_title":"Office 365 Small Business \"Sideloading of apps is not enabled on this site\" - Archive","og_description":"I began working on a new Office 365 site I had just created, and wanted to use Visual Studio to add an app to the site (using the Visual Studio deployment mechanism).&nbsp; Unfortunately, I ran into the following error when I tried to run a \u201cdeploy\u201d of the app. &#8220;Sideloading of apps is not enabled &hellip;","og_url":"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/","og_site_name":"Archive","article_published_time":"2013-04-29T19:48:07+00:00","article_modified_time":"2023-02-24T21:48:45+00:00","author":"Colin Phillips (Alumni)","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Colin Phillips (Alumni)","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/","url":"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/","name":"Office 365 Small Business \"Sideloading of apps is not enabled on this site\" - Archive","isPartOf":{"@id":"https:\/\/regroove.ca\/archive\/#website"},"datePublished":"2013-04-29T19:48:07+00:00","dateModified":"2023-02-24T21:48:45+00:00","author":{"@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b"},"breadcrumb":{"@id":"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/regroove.ca\/archive\/2013\/04\/29\/office-365-small-business-sideloading-of-apps-is-not-enabled-on-this-site\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Archive","item":"https:\/\/regroove.ca\/archive\/"},{"@type":"ListItem","position":2,"name":"Office 365 Small Business &#8220;Sideloading of apps is not enabled on this site&#8221;"}]},{"@type":"WebSite","@id":"https:\/\/regroove.ca\/archive\/#website","url":"https:\/\/regroove.ca\/archive\/","name":"Archive","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/regroove.ca\/archive\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/adeb0df1cc7a862160be620ca7eace1b","name":"Colin Phillips (Alumni)","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/regroove.ca\/archive\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/14eeab0d377e9630e0983d9c08911979?s=96&d=mm&r=g","caption":"Colin Phillips (Alumni)"},"url":"https:\/\/regroove.ca\/archive\/author\/cphillips\/"}]}},"_links":{"self":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/816"}],"collection":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/comments?post=816"}],"version-history":[{"count":1,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/816\/revisions"}],"predecessor-version":[{"id":1943,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/posts\/816\/revisions\/1943"}],"wp:attachment":[{"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/media?parent=816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/categories?post=816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regroove.ca\/archive\/wp-json\/wp\/v2\/tags?post=816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}