Hi, though not always , I keep getting the error The Directory is not empty, when i try to publish my azure project, and publish fails, nothing I do, like clean, build rebuild, solution , role or cloud project helps. Please help.
Error 150 The directory is not empty.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Windows Azure Tools\1.4\Microsoft.WindowsAzure.targets 2854 5 MyCastingAzure
It is known that some anti-virus software realtime scan can cause this error. I suggest you to adding proper virus scanning isolation on the related paths for a quick test.
If the problem is not solved, you can run csPack command to test the packaging task. Use
process monitor to trace the command execution and examine the file system operations. I suggest this because the error message points to some file system access failure.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if
a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Hi, thanks a million for your suggestions, i tried disabling my antivirus and package it worked twice , so I am hoping that is the solution, will try it a few more times but I think the antivirus was the problem. thanks a lot again. had me frustrated for
I have also being frustrated by this exact same problem for weeks. It would work maybe 2 out of every 10 attempts, and the rest of the time I would encounter “The Directory is not empty” error.
To troubleshoot I proceeded to stop every single windows service one by one to attempt to identify the problem, which I finally did. In my case it was not the AV software, it was a process called IDriveE which is part of an online backup solution called
As Emma Em pointed out above, I suspect this process is interfering with file system access in some way. As soon as I stopped this process, I can publish straight from Visual Studio without any more of these errors.
If you are having the same problem and come across this thread, I recommend that you inspect your system for any services or processes that might be affecting the file system, or doing some sort of a continuous scan on the drive. This is most likely the