C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Errors and Solutions » General »

Unable to Copy the File ‘ProgramName.exe’ to ‘programName.exe’. The Process Cannot …


Posted Date: 28 Sep 2008    Resource Type: Errors and Solutions    Category: General
Author: Bindu BujjiMember Level: Gold    
Rating: 1 out of 5Points: 5



Usually, this message repeats multiple times. In almost every case, it means you forgot to terminate the program before you rebuilt it. In other words, you did the following:

1). You successfully built your program.

2). When you ran the program by choosing Debug -> Start Without Debugging, you got to the message Press Enter to terminate, but in your haste, you didn't press Enter. So, your program is still executing. Instead, you switched back to Visual Studio to edit the file.

Note: If you run the program by choosing Debug ð Start Debugging and forget to terminate, you're simply asked whether you want to stop debugging.

3). You tried to build the program again with the new updates. At this point, you get this error message in the Error List window.

An executable (.EXE) file is locked by Windows until the program actually quits. Visual Studio cannot overwrite the old .EXE file with the new version until the program terminates.

To get rid of the error, switch to the application and terminate it. In the case of a console application, just press Enter to terminate the program. You can also terminate the program from within Visual Studio by choosing Debug ð Stop Debugging. After the older program has terminated, rebuild the application.

If you can't get rid of the error by terminating the program, the directory may be messed up. Close the solution, exit Visual Studio, reboot, and then reopen the solution



Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
Unable to Copy the File ‘ProgramName.exe’ to ‘programName.exe’. The Process Cannot …  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Error Cannot Inherit From Sealed Class
Previous Resource: SubclassName.MethodName’ Hides Inherited Member ‘BaseclassName. MethodName’. Use the New Keyword if
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use