I keep getting this error when publishing files. It does not matter if its to a local directory or URL server. The project builds correctly, and I can run the application. I have administrator rights to all locations. I've tried to delete bin an obj directories but same errors.
Any ideas at what is causing this ???
Error Cannot publish because a project failed to build. Speed_And_Flow_Sensors 1
Error Could not copy "bin\Debug\Speed_And_Flow_Sensors.exe.manifest" to "bin\Debug\app.publish\Application Files\Speed_And_Flow_Sensors_1_0_0_0\Speed_And_Flow_Sensors.exe.manifest". Exceeded retry count of 10. Failed. Speed_And_Flow_Sensors
Error Unable to copy file "bin\Debug\app.publish\Speed_And_Flow_Sensors.exe" to "bin\Debug\app.publish\Application Files\Speed_And_Flow_Sensors_1_0_0_0\Speed_And_Flow_Sensors.exe.deploy". Could not find a part of the path 'bin\Debug\app.publish\Application Files\Speed_And_Flow_Sensors_1_0_0_0\Speed_And_Flow_Sensors.exe.deploy'. Speed_And_Flow_Sensors
Error Unable to copy file "App.config" to "bin\Debug\app.publish\Application Files\Speed_And_Flow_Sensors_1_0_0_0\Speed_And_Flow_Sensors.exe.config.deploy". Could not find a part of the path 'bin\Debug\app.publish\Application Files\Speed_And_Flow_Sensors_1_0_0_0\Speed_And_Flow_Sensors.exe.config.deploy'. Speed_And_Flow_Sensors
Error Could not copy "App.config" to "bin\Debug\app.publish\Application Files\Speed_And_Flow_Sensors_1_0_0_0\Speed_And_Flow_Sensors.exe.config.deploy". Exceeded retry count of 10. Failed. Speed_And_Flow_Sensors
Error Could not copy "bin\Debug\app.publish\Speed_And_Flow_Sensors.exe" to "bin\Debug\app.publish\Application Files\Speed_And_Flow_Sensors_1_0_0_0\Speed_And_Flow_Sensors.exe.deploy". Exceeded retry count of 10. Failed. Speed_And_Flow_Sensors
Error Unable to copy file "bin\Debug\Speed_And_Flow_Sensors.exe.manifest" to "bin\Debug\app.publish\Application Files\Speed_And_Flow_Sensors_1_0_0_0\Speed_And_Flow_Sensors.exe.manifest". Could not find a part of the path 'bin\Debug\app.publish\Application Files\Speed_And_Flow_Sensors_1_0_0_0\Speed_And_Flow_Sensors.exe.manifest'. Speed_And_Flow_Sensors