Avatar of Victor  Charles
Victor Charles
Flag for United States of America asked on

Help with solving error

Hi,

When attempting to run my application I receive the following 2 errors. How do I fix those two errors?

1. Could not copy "obj\x86\Debug\AP29_XMLA.exe" to "bin\Debug\AP29_XMLA.exe". Exceeded retry count of 10.

2. Unable to copy file "obj\x86\Debug\AP29_XMLA.exe" to "bin\Debug\AP29_XMLA.exe". The process cannot access the file 'bin\Debug\AP29_XMLA.exe' because it is being used by another process.      AP29_XML

thanks,

Victor
.NET ProgrammingVisual Basic.NET

Avatar of undefined
Last Comment
Victor Charles

8/22/2022 - Mon
SOLUTION
AndyAinscow

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
AndyAinscow

ps.  A reboot should also cure it.
Fernando Soto

Hi Victor;

This could also happen if in your code you open a file then you quit the application in the middle of debugging and that leaves the file in use. So when you run your application again you can't access the file because it is being held by another process. Every time you run your app it starts a new process and the cause of the error.

By the way if you terminate Visual Studio and restart it, it will work again until you hit the problem again. Place code like that in a using statement and make sure you are not in that block when you terminate the debug session.
Victor Charles

ASKER
Hi Fernando,

I will try it, noticed if zi rename the assembly and rootname thr the error fors noy occur. According to task manager there are no other instances running.

Victor
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Fernando Soto

According to task manager there are no other instances running.
And yet the OS see one.
Victor Charles

ASKER
Yes, that is very strange.
AndyAinscow

Leave the names the same.  Reboot.  Does the error still happen?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Victor Charles

ASKER
I will try it later and get back to you.
SOLUTION
AndyAinscow

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Fernando Soto

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Victor Charles

ASKER
Thank you for all the comments.

Victor