Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Build fails: Unable to remove directory "csx\Debug\"

Box was sitting on breakpoint last night when I went to bed. This morning there are service updates which shuts down VS. I reopen VS, do some work to prep for debug, then build. Build fails with: error MSB3231: Unable to remove directory "csx\Debug\". Access to the path 'Microsoft.WindowsAzure.Diagnostics.dll' is denied.

VS is running in Admin mode.

like image 949
DFBerry Avatar asked Jan 31 '12 13:01

DFBerry


2 Answers

Sometimes Azure Emulator doesn't behave as it shoud and keeps running some processes. You can examine this with ProcessExplorer.

In such cases I re-srtart both emulator services, but in your case restart of the Compute emulator should be enough.

like image 77
Matej Avatar answered Nov 14 '22 08:11

Matej


In Visual Studio 2013 I was able to fix this same error by unloading the Azure project and then reloading and building, this seemed lot easier than the answers already provided hence the reason I am answering an already answered question

like image 32
Jay Avatar answered Nov 14 '22 09:11

Jay