I developed a Windows service using C # .Net, which collects data and sends it to my server using custom APIs on a regular basis with client permissions.
It worked fine until the user installed the anti-virus software (Kaspersky). It falsely positively detected my .exes as PDM:trojan.win32.generic , quarantined it and deleted its service because I am making web requests using HTTPWebRequest and HTTPWebResponse to pull and pull data.
As for the temporary one, I have a white list .exes and a program catalog according to the exclusion rules in the settings of the antivirus programs and the installed service again. Since now it is working fine.
But as for the final decision, I want to know if we can fix this inside the program itself (programmatically). So that any antivirus software does not detect it as a trojan or any other type of virus, as soon as my program and its service are installed.
Edit - June 8, 2015
Earlier, I forgot to mention that in the .exe service he uploads his own latest .exe file to update himself. I wonder if this process makes it appear as a trojan.
Krish source share