0
Hi Jorge Carlos Iglesias Alvarez,
The System.Reflection.TargetInvocationException
typically indicates that an error occurred during the execution of a method invoked via reflection. In the context of obfuscation with Net Reactor, this can often be attributed to the obfuscation process altering method names or types that are expected by the Windows Service infrastructure.
Here are a few steps to troubleshoot and resolve the issue:
-
Check Obfuscation Settings: Ensure that you are using the correct obfuscation settings for a Windows Service. The "Windows Service" mode should be appropriate, but double-check if any specific options might be causing issues.
-
Exclude Critical Assemblies: If your service relies on certain assemblies (like configuration files or external libraries), consider excluding them from obfuscation. You can do this by adding them to the exclusion list in Net Reactor.
-
Review Logs: Enable detailed logging in your service to capture any exceptions or errors that occur during startup. This can provide more insight into what might be failing.
-
Test Incrementally: Try obfuscating only parts of your service incrementally to identify which specific part is causing the issue. This can help isolate the problem.
-
Consult Documentation: Review the Net Reactor documentation for any known issues or specific configurations related to Windows Services.
