I have been deploying to my Azure Web App for about 4 months now, using msdeploy, and everything has been smooth sailing to upload the website. Until recently, there has been n
I got the error (Unable to perform the operation ("Delete Directory") for the specified directory ("2_0_50727")
on a deployment that had been working fine and suddenly broke.
If you're not paying attention '2_0_50727' looks like just a random number.
It turns out it was the folder aspnet_client\system_web\2_0_50727
which didn't even contain any files.
Based on the timestamp of this folder - and the fact that it was in ALL my web applications with this timestamp - it must have been created by Add / Remove Features
when I made some changes to my IIS installed features. So whatever permissions that runs at is what this folder was created as.
As soon as I deleted it I was able to deploy again.