Got an error “Tenant app deployment is only supported in the app catalog site. The current site is not the app catalog site.”, even if the current site very much IS an app catalog site? There might be an easy fix!
Imagine this: you browse into your fresh SharePoint tenant, open the app catalog, click on an app, try to deploy it, and out comes this error.
Tenant app deployment is only supported in the app catalog site. The current site is not the app catalog site.
Yes, while trying to deploy an app from app catalog, you get an error that the current site is not the app catalog site. Frustrating!
To be more precise, the error seems to sometimes occur imemdiately after you click “Deployment”, sometimes when you’re adding a site collection url to deploy the app to, and sometimes only after clicking “Trust it” after accepting the deployment paths. According to my experiences so far, there’s one thing in common though – the app catalog has been freshly created, or at the very least not actually used earlier.
I’ve found 2 different solutions, first of which is easy, the second one horrendous.
Easy solution: Grab some coffee and wait
It seems to me like this error usually pops up when you’re dealing with a freshly created app catalog. It still takes a while for the app catalog site collection to finish deployment, but Microsoft actually lets you access it quite fast. Chances are Microsoft is still provisioning different parts of the site even though you can access it, and it LOOKS LIKE it’s working.
So, the first solution is easy: wait. After an hour, it might start working. Chances are, that since it took you a while to google this page, it might work already!
Horrendouds solution: do the redeployment dance
Okay, I hope you won’t even actually have to do this step, because it’s questionable at best.
If you keep getting the error after waiting for hours and hours, you might need to accept that the site has gone borked and you’ll need to recreate it. Before removing it, however, undeploy all of your apps and remove the manifest files, and delete the security principals for the apps – and only then remove the app catalog site. Removing the site is easy, but if you forget the cleanup steps, you might break some of your apps forever!
After the cleanup, simply recreate the site, wait for a while, and try the deployment again. This time, you might be in luck.
Latest posts by Antti K. Koskela (see all)
- Fastest way to verify your Client Id and Client Secret are valid with PowerShell - August 9, 2018
- How to get the user count for Azure AD Enterprise Application - August 1, 2018
- Solving “Tenant app deployment is only supported in the app catalog site. The current site is not the app catalog site.” error - July 31, 2018
- Solving “Sorry, your files couldn’t be uploaded. The upload might be too large or the server might be experiencing high network traffic.” in SharePoint - July 24, 2018