neo-ConfuserEx icon indicating copy to clipboard operation
neo-ConfuserEx copied to clipboard

Service Crashes at start if used Neo-ConfuserEx

Open amoltarte opened this issue 4 years ago • 2 comments

Describe the bug I have a Windows Service. I build it in release mode and obfuscate it using Neo-ConfuserEx. The service installs but fails to start.

Settings as below...

Expected behavior Service should start as if it is not obfuscated.

Screenshots Neoconfuser1

Neoconfuser2

amoltarte avatar Feb 10 '21 10:02 amoltarte

can you check if its a fatal error, in windows event viewer?

Scortchhh avatar Feb 11 '21 19:02 Scortchhh

Yes. There is an error in Event Viewer.

Application Log

Service cannot be started. System.NullReferenceException: Object reference not set to an instance of an object. at ‍‌‎‮‌‪‎‬‮‏‍‌‎‪‫​‎‍‮‌​‫‪‮.‮‮‮‪‏‫‫​‍‭‏‪‬‏‌‮‮‌‏‫​‎‫‌‮() at System.ServiceProcess.ServiceBase.DeferredStop() at ‍‌‎‮‌‪‎‬‮‏‍‌‎‪‫​‎‍‮‌​‫‪‮.​‏‏‫‍‪‪‪‮‌‪‎‭‏‌‪‪‍‮‍‮​‮‬‌‮(String[] ) at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)

System

The LogicMoCCH24 service terminated with the following error: An exception occurred in the service when handling the control request.

I know what "Object Reference Not Set To An Instance" means, but these errors are not thrown if not Obfuscated.

Please help... let me know if any additional steps are needed to change in code to use obfuscation (Neo-Obfuscator) I am desperately in need.

--

amoltarte avatar Feb 12 '21 04:02 amoltarte