adding exception to windows firewall getting error when app is packed/protected

0

Im making a C# project that is a local proxy and i'm using Themida protector for protect the app. So I want to add my app to Windows firewall exception. When I use my app without themida the Firewall exception is added successfully. But when I use the app with themida I have an exception in this line:

auth.ProcessImageFileName = applicationPath;

And the exception in the catch is: The system cannot find the file specified (0x80070002).

Im checked that the variable applicationPath have the right path to my app, but i don't know why i'm getting the exception.

You think that this problem can be fixed ? maybe using a optional method for add my app to windows firewall exception and avoid ProcessImageFileName.

PS: I'm running the app as a windows service.

c#
windows-services
asked on Stack Overflow Nov 28, 2018 by singularity • edited Nov 28, 2018 by Dale Burrell

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0