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
2022-02-11T14:08:09.327+00:00

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.

https://learn.microsoft.com/en-gb/archive/blogs/officeapps/enable-app-sideloading-in-your-non-developer-site-collection

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.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 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,810 questions
{count} votes

2 answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 33,641 Reputation points Microsoft Vendor
    2022-02-14T01:49:18.343+00:00

    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
    2022-03-09T07:54:20.777+00:00

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

    0 comments No comments