Error during publishing Unable to delete directory "bin \ Debug \ app.publish"

When I publish, build, rebuild or clean up the solution, the following error occurs:

Error 1 Failed to delete directory "bin \ Debug \ app.publish". Could not find part of the path 'HondaInstantFeedback.exe.config.deploy'. HondaInstantFeedback

But when I run it, it works fine. Its a winform project and I am using vs 2010.

+3


source to share


5 answers


I tried one stupid technique that worked well for me, I tried to build it on another system successfully and replaced the inline code with my old code. Everything is working fine now. Don't know the reason for the solution, but it saved my hours, might help another too.



+1


source


delete folder / app.publish /



+3


source


Have this problem. I just deleted the \ app.publish \ folder in the bin \ debug project folder.

0


source


If you configured Visual Studio to "Delete Existing Files" when publishing, Filezilla, WinSCP, or other FTP programs may throw this error message if the FTP program is open in the publishing directory.

This is because Visual Studio cannot delete a folder when a directory is open in the FTP program.

I just closed my FTP program and then Visual Studio 2017 was able to publish again.

enter image description here

0


source


I just moved the project folder (directory) from my desktop to D:. Now works like a charm. Somehow devenv cannot access the folder on the desktop I guess.

0


source







All Articles