Solved

Antivirus blocking my exe in C#

Posted on 2013-01-16
5
2,573 Views
Last Modified: 2013-11-22
Dear All

I have a query.

Actually I have created an exe in C# code.But when I execute it,Antivirus stops my exe,then the options antivirus provides.Among them,I need to choose " open normally" option, to run my exe normally.

Why antivirus is detecting the exe as malware?Can in C#,we can prevent this stopping?
0
Comment
Question by:BYTECHINDIA
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 38785993
>Can in C#,we can prevent this stopping?
no. otherwise ANY "virus" could do the same.

>Why antivirus is detecting the exe as malware?
is it really antivirus app, or just windows security?
this may be just the "question" as it's a "new" application to the user if the app is trused or not ...
0
 

Author Comment

by:BYTECHINDIA
ID: 38786071
Actually Avast Antivirus is showing a window indicating that "the application can be unsafe ,open it in sandbox",that is why I wrote antivirus.How can I know which line of statement is blocking the application?
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 38786102
you would need to either contact Avast to find out, or debug their scanning tool about what "functions" inside your exe are found "potentially suspiceous.

other than that, you can "remember this decision" when choosing to run the app normally.
0
 
LVL 9

Accepted Solution

by:
the_b1ackfox earned 500 total points
ID: 38786205
I had this same thing happen to me about 6 months ago.  I had repackaged someone elses install to make it easier on the pepole who had to push it out.  Thinkning I was being quite slick, I decided to cleanup the left over icons from the initial install on the desktop.  So I wrote a method to clean only those two icons.  It took about two weeks for it to get flagged as a malicious file, andI had to rewrite it not delete anything.

Check out your methods and see if they are modifying files, registry or checking out ports on external hosts.

Fox
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 38788296
You can manually add your application to Avast's whitelist as well. If you are publishing this to a lot of other people though, then you should make note of this and tell them or find what system stuff you are changing that causes this.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
McAfee ePO 5.3.1 failure to install 2 92
What are MicroServices? 4 65
Put File 6 33
Concurrency Error Persistent using Data Grid View Update C# 2 24
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question