Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've been practicing my C# lately on a new system. Compiling is fine, however when I try to run the generated .exe file, avast! thinks it is malware and runs it in the sandbox for a while (and it doesn't work in the sandbox as it should work normally), and only when it has finished scanning it will it let me run it normally.

When I try to run it again, most of the time the same process happens, whether I make changes to the code or not.

Is there any way I could play around with Avast's settings to stop it attacking my programs?

Note: I'm dealing with very simple, command prompt programs here.

share|improve this question
2  
have you tried setting an exclusion folder for your root code folder? – DiskJunky Feb 22 at 17:34
This doesn't belong here and it's specific to Avast (which is a bad AV solution, but...). Either try at SuperUser or directly contact Avast support and ask them for a solution. You can probably exclude certain directories. – walther Feb 22 at 17:35
I have never, ever dealt with a problem like this. Either your EXE is doing something strange, or you need to dump this Avast app. That said, looks like you're not the only person why may have encountered this. I found several related links using [this Google search](google.com/…. – Jonathan Wood Feb 22 at 17:35
Weird. I run Avast and I'm a .NET developer for a living as well as doing a great deal of development at home in my spare time. I've never had Avast complain about one of my apps. – Pete Feb 22 at 17:57
Disable Avast from scanning the directory where your .exe file is located. The fact your .exe is being blocked by Avast means your doing something nasty or odd enough Avast is flagging it. A normal program would not do this. – Ramhound Feb 22 at 18:43
show 2 more comments

migrated from stackoverflow.com Feb 22 at 18:11

1 Answer

up vote 2 down vote accepted

According to a user manual that I was able to find for version 4.8(see page 40), You need to do as the comments suggest and add your obj directory or bin directory to the exclusions list.

According to a post I found in the Avast forums from 2011 you can also add exclusions for single files by:

...manually edit[ing] the line where the path for the exception is. So, using the "browse" button, select first the folder, and then edit the resulting path and "add" to exclusions. You can also use "*" and "?".

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.