Forum Discussion
techieg4
Apr 03, 2023Brass Contributor
You do not have permission to view this directory or page.
Hello All, Whenerver I use the "Archive Files" task in the Azure DevOps build pipeline, upon release, I get the following error on my azurewebsite: You do not have permission to view this directo...
- Apr 06, 2023
techieg4 FInally resolved it by unchecking the "Prepend root folder name to archive path" checkbox (see image below), which was zipping up everything within a "build" folder and deploying it as such. So, the website could only see the "build" directory in wwwroot, which triggered the error message since browsing to the url was trying to access this folder rather than the index.html that was supposed to be at the wwwroot.. Once I unchecked that checkbox, no more zipping up in the "build" folder and zipped files get deployed in wwwroot as it should. All is well!
BOiiELITE
Apr 06, 2023Copper Contributor
First, I would check my browser and admin permissions in azure and the admin portal. If all else fails you should check your admin permissions. If you are a global admin, you should only use that feature using more than one admin permission will start to lock you out of accessing site on Microsoft.