Search code examples
c#.netwcfnetnamedpipebinding

WCF and NetNamedPipeBinding - AVG Antivirus


We keep having some customers getting a warning from AVG Antivirus about our application.

Our application opens a standard NetNamedPipeBinding with WCF in C#, just for cross-process communication.

Is this something we can workaround in some way? I'm wondering if there is something we need to set to indicate the WCF service is local to the machine only.

Right now we just setup the binding in C# like so:

        var binding = new NetNamedPipeBinding();
        binding.MaxReceivedMessageSize = int.MaxValue;
        binding.MaxReceivedMessageSize = int.MaxValue;
        binding.ReaderQuotas = XmlDictionaryReaderQuotas.Max;
        binding.ReceiveTimeout = TimeSpan.MaxValue;

I don't see other settings of importance, we just call ServiceHost.AddServiceEndpoint with an address like "net.pipe://localhost/OurEndpoint" to set the binding.

I would like to tell our customers that AVG is a piece of junk--they'd be better off putting a rabbit's foot in their floppy drive, but my conscience won't let me.


Solution

  • We never solved this issue, but stuck with WCF.

    We haven't run into any other client machines with this problem.