1

I am trying to publish my project but when I do it I got an error

I look at here : Error during publish Unable to remove directory "bin\Debug\app.publish\"

I try to delete the "bin" file and "obj" file it's not help I try to delete all my project and start it again on a new location still not work.

When I try to publish another old project it publish a new version fine..

Using visual studio 2019, WPF.

I share a picture of my errors :

enter image description here

Add the error in text

Severity    Code    Description Project File    Line    Suppression State
Error       Failed to copy file '\\files\Departments\ProgDev\lastVersion\ChooseParametersFormationSorting\ChooseParametersFormationSorting\ChooseParametersFormationSorting\bin\Debug\app.publish\Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.config.deploy' to '\\files\~Departments\ProgDev\lastVersion\TestTemp\Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.config.deploy'. Unable to add 'Application Files/ChooseParametersFormationSorting_1_0_0_0/ChooseParametersFormationSorting.exe.config.deploy' to the Web site.  Unable to add file 'Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.config.deploy'.  The system cannot find the path specified.  ChooseParametersFormationSorting        1   
Error       Failed to copy file '\\files\Departments\ProgDev\lastVersion\ChooseParametersFormationSorting\ChooseParametersFormationSorting\ChooseParametersFormationSorting\bin\Debug\app.publish\Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.manifest' to '\\files\~Departments\ProgDev\lastVersion\TestTemp\Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.manifest'. Unable to add 'Application Files/ChooseParametersFormationSorting_1_0_0_0/ChooseParametersFormationSorting.exe.manifest' to the Web site.  Unable to add file 'Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.manifest'.  The system cannot find the path specified.  ChooseParametersFormationSorting        1   
Error       Failed to copy file '\\files\Departments\ProgDev\lastVersion\ChooseParametersFormationSorting\ChooseParametersFormationSorting\ChooseParametersFormationSorting\bin\Debug\app.publish\Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.deploy' to '\\files\~Departments\ProgDev\lastVersion\TestTemp\Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.deploy'. Unable to add 'Application Files/ChooseParametersFormationSorting_1_0_0_0/ChooseParametersFormationSorting.exe.deploy' to the Web site.  Unable to add file 'Application Files\ChooseParametersFormationSorting_1_0_0_0\ChooseParametersFormationSorting.exe.deploy'.  The system cannot find the path specified.  ChooseParametersFormationSorting    

1   

show the target location :

enter image description here

Tell me if you need any more information..

Adding more information

I found that when I open a project on my local machine it able to publish it on the file server: \\files\departments\... But when I open my project on my file server it shows this error. I have to say that more than 2 years all work fine also when I open my project in my file server What can cause that?

hedbisker
  • 179
  • 1
  • 1
  • 15

0 Answers0