question

JonathanBrotto-3536 avatar image
0 Votes"
JonathanBrotto-3536 asked JonathanBrotto-3536 published

Could debug a application and test it but could not publish it to make an install file

I can't publish my solution but I could test and debug it. reason why?
105935-image.png

Severity Code Description Project File Line Suppression State
Error Cannot publish because a project failed to build. PJC tab fixer csv older faxinating exact software 1
Error Could not copy "bin\Debug\PJC tab fixer csv older faxinating exact software.exe.manifest" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest". Exceeded retry count of 10. Failed. PJC tab fixer csv older faxinating exact software
Error Unable to copy file "bin\Debug\PJC tab fixer csv older faxinating exact software.exe.manifest" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest". Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest'. PJC tab fixer csv older faxinating exact software
Error Unable to copy file "bin\Debug\app.publish\PJC tab fixer csv older faxinating exact software.exe" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy". Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy'. PJC tab fixer csv older faxinating exact software
Error Could not copy "bin\Debug\app.publish\PJC tab fixer csv older faxinating exact software.exe" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy". Exceeded retry count of 10. Failed. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\app.publish\PJC tab fixer csv older faxinating exact software.exe" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy". Beginning retry 8 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\PJC tab fixer csv older faxinating exact software.exe.manifest" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest". Beginning retry 3 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\PJC tab fixer csv older faxinating exact software.exe.manifest" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest". Beginning retry 8 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\app.publish\PJC tab fixer csv older faxinating exact software.exe" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy". Beginning retry 6 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\PJC tab fixer csv older faxinating exact software.exe.manifest" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest". Beginning retry 7 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\app.publish\PJC tab fixer csv older faxinating exact software.exe" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy". Beginning retry 3 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\app.publish\PJC tab fixer csv older faxinating exact software.exe" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy". Beginning retry 7 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\app.publish\PJC tab fixer csv older faxinating exact software.exe" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy". Beginning retry 5 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\PJC tab fixer csv older faxinating exact software.exe.manifest" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest". Beginning retry 1 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\PJC tab fixer csv older faxinating exact software.exe.manifest" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest". Beginning retry 5 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\app.publish\PJC tab fixer csv older faxinating exact software.exe" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy". Beginning retry 1 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\PJC tab fixer csv older faxinating exact software.exe.manifest" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest". Beginning retry 2 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\app.publish\PJC tab fixer csv older faxinating exact software.exe" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy". Beginning retry 9 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\app.publish\PJC tab fixer csv older faxinating exact software.exe" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy". Beginning retry 2 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\PJC tab fixer csv older faxinating exact software.exe.manifest" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest". Beginning retry 10 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\PJC tab fixer csv older faxinating exact software.exe.manifest" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest". Beginning retry 6 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\PJC tab fixer csv older faxinating exact software.exe.manifest" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest". Beginning retry 4 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\PJC tab fixer csv older faxinating exact software.exe.manifest" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest". Beginning retry 9 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.manifest'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\app.publish\PJC tab fixer csv older faxinating exact software.exe" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy". Beginning retry 10 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy'. PJC tab fixer csv older faxinating exact software
Warning Could not copy "bin\Debug\app.publish\PJC tab fixer csv older faxinating exact software.exe" to "bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy". Beginning retry 4 in 1000ms. Could not find a part of the path 'bin\Debug\app.publish\Application Files\PJC tab fixer csv older faxinating exact software_0_8_0_0\PJC tab fixer csv older faxinating exact software.exe.deploy'. PJC tab fixer csv older faxinating exact software


vs-generaldotnet-visual-basicvs-debugging
image.png (87.1 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This may be a shot in the dark, consider renaming the project so there are no spaces in the project name, do a clean/rebuild then try and publish. I'd say 99 percent of project names have no spaces in their name.

0 Votes 0 ·

What would be the best approach to rename the project. within VS or file explorer?

0 Votes 0 ·
XingyuZhao-MSFT avatar image
0 Votes"
XingyuZhao-MSFT answered XingyuZhao-MSFT commented

Hi @JonathanBrotto-3536 ,
Check if the path is existing.
Try deleting the release folder and running your application as administrator. Make sure these files are not occupied by other programs and you have permission to access the path.

Hope it could be helpful.
Best Regards,
Xingyu Zhao


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I deleted the folder and try under administrator but could publish the files.

106160-image.png


0 Votes 0 ·
image.png (5.9 KiB)

Hi @JonathanBrotto-3536 ,
If files still cannot be published, check the solutions in the following reference:
'Publish failed' but build succeeded?



0 Votes 0 ·

It is not a web application. Will this work on a winforms app?

0 Votes 0 ·
Show more comments
JonathanBrotto-3536 avatar image
0 Votes"
JonathanBrotto-3536 answered XingyuZhao-MSFT commented

Seems the package was not installed.

107675-image.png



image.png (17.8 KiB)
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JonathanBrotto-3536 ,
You can also share your project or a sample on github which can help us reproduce your problem.

0 Votes 0 ·

I don't have a GitHub account. How would I go about it?

0 Votes 0 ·

Hi @ JonathanBrotto-3536 ,
Follow these steps to upload the project.
Besides, you can also upload the project to onedrive.

0 Votes 0 ·
Show more comments
JonathanBrotto-3536 avatar image
0 Votes"
JonathanBrotto-3536 answered XingyuZhao-MSFT commented

I click on build and publish then click next until it finishes.

110011-image.png



image.png (26.1 KiB)
· 9
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JonathanBrotto-3536 ,
It can be successfully published on my computer.
110019-screenshot-2021-06-29-094140.png
Try testing it on another computer to see if it can be published.


0 Votes 0 ·

Would it just be a straight copy and paste?

0 Votes 0 ·

Hi @JonathanBrotto-3536 ,
Considering that you had shared the link to the project, you can download the project on another computer and test if it can be published.

0 Votes 0 ·

I tried on another machine but the same error. Is there some setting in VS I need to change as for the application to compile? I am using windows 10 with full admin non domain user. Personal computer.

VS 2019 newest version.

0 Votes 0 ·

Hi @JonathanBrotto-3536 ,

Here are my test steps:

Open the solution -> Right Click the project -> Publish...

My test environment: Visual Studio 2019 / .NET Framework 4.8 / Windows 10 Enterprise

0 Votes 0 ·

Before it bugs out for the publish I get this window.

running windows 10 V2019 and the project is in .net 4

111094-image.png


0 Votes 0 ·
image.png (5.7 KiB)

Hi @JonathanBrotto-3536 ,
Is running Visual Studio as Administrator helpful to this freeze?

0 Votes 0 ·

Under administrator and not administrator.

0 Votes 0 ·

Hi @JonathanBrotto-3536 ,
Consider posting on this forum for more professional help.


0 Votes 0 ·