Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug Triggering Build Errors (File Not Found) and Antivirus Program, Visual Basic (V11 2012)

I made some changes in my code and when I went to debug my program I got a build error. The error prompted my anti-virus software (Avast) to block my program as a "suspicious file".

Visual Studio returned this error: Error 1 Could not copy the file "obj\Debug\CopyFile.exe" because it was not found.

Here is a run down of the events that occurred before this error began to happen.

  1. Added new menu item to menu strip.

  2. Replaced instances of radio button references in the code with the new menu items.

  3. Ran a debug, program worked fine, until I clicked a button.

  4. Found the remaining instances of radio button references in the code and replaced them.

  5. Ran a debug, program was working fine. Exited debug.

  6. Deleted the old radio buttons from the GUI. (They no longer had any references in the code.)

  7. Tried to debug, received an error, antivirus software blocks program exe file as suspicious.

  8. Error Could not copy the file "obj\Debug\CopyFile.exe" because it was not found.

What did I do to the code to cause this? Did I possibly delete some other area of the code on accident and I do not know? I can't see why my program won't debug.

like image 528
user2348797 Avatar asked May 07 '13 07:05

user2348797


1 Answers

Why don't you simply tell to your antivirus software to do its business in some other places than your working directory? ( Exclude Paths ) and ignore every action done by Visual Studio executables ?

By the way, this is one of the first things to do to get better performance when working with a complex IDE like VS that can create, move, delete thousands of files when working.

If I remember well, the AVAST has its exclusion list in File System Shield, Expert Settings, Exclusions

like image 119
Steve Avatar answered Oct 01 '22 01:10

Steve