Error occurred in deployment step 'Install SharePoint Add-in': Sideloading of apps is not enabled on this site. SharePointApp1

S.P Singh 1 Reputation point

Getting error while running the PowerShell script for the site using below article. Site uses username, password and Authenticator to approve. After that we login into site.

We have tried a lot, but shell script is not able to enable side loading and every time, we are getting "Sideloading of apps is not enabled on this site."

Kindly help us to fix.

A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,520 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,644 questions
{count} votes

2 answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 30,666 Reputation points Microsoft Vendor

    Hi @shivpratap-3010 ,
    If you are managing a non-developer site collection, you need to enable the app SideLoading feature.

    Visual Studio calls the Microsoft.SharePoint.Client.AppCatalog.IsAppSideloadingEnabled method for the given site collection URL, which returns true if the site is a developer site or if the site has the sideloading feature enabled. For a Site Collection to work which is not a developer site, the sideloading feature must be enabled.

    Enabling app sideloading requires tenant admin permissions (in a multi-tenant environment) or farm admin permissions (in a single tenant environment). When you begin development in Visual Studio against any of the site URLs above without these permissions, the error "Sideloading of apps is not enabled on this site" will appear and the app installation will fail. Please make sure the permission is tenant admin first.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

  2. S.P Singh 1 Reputation point

    This problem has fixed, kindly refer the link for more informaton getting-following-34you-do-not-have-permission-to.html

    0 comments No comments