An error occurred in "Install SharePoint application": the solution is not loaded next to the application enabled on this website.

Source: Internet
Author: User

During the development of the SharePoint 2013 app, the system prompts "loading the app next to this website is not enabled" during deployment ",

Error 1: An error occurred in the deployment step "Install SharePoint application": application loading is not enabled on this website.
0 01_pointapp1
"Sideloading of apps is not enabled on this site"

Solution:
1. Download http://www.microsoft.com/en-us/download/details.aspx? Id = 30359
2. Save the following steps as luozhuang. PS1
3. Run powershell
4. Runtime
Enter your SharePoint site URL
Enter the user name in the Microsoft account
Enter the Microsoft account password
Restart the computer and run vs2012 OK.

#CODE STARTS HERE$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'   if ($siteurl -eq '') {     $siteurl = 'https://mytenant.sharepoint.com/sites/mysite'       $username = 'me@mytenant.onmicrosoft.com'       $password = ConvertTo-SecureString -String 'mypassword!' -AsPlainText -Force   }      $outfilepath = $siteurl -replace ':', '_' -replace '/', '_'   try {     [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, $false, [Microsoft.SharePoint.Client.FeatureDefinitionScope]::None);               $cc.ExecuteQuery();               Write-Host -ForegroundColor Green 'SideLoading feature enabled on site' $siteurl     #Activate the Developer Site feature }   catch   {      Write-Host -ForegroundColor Red 'Error encountered when trying to enable SideLoading feature' $siteurl, ':' $Error[0].ToString(); }#CODE ENDS HERE

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.