View previous topic :: View next topic |
Author |
Message |
ArcaArtem
Joined: 14 Jul 2008 Posts: 5
|
Posted: Fri Jun 08, 2012 11:13 pm Post subject: Can .NET Encryptor be used to encrypt windows service apps? |
|
|
As per the subject, can I use .NET Encryptor to encrypt my .NET Windows Service applications? If so, could you give an example? |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sat Jun 09, 2012 1:17 am Post subject: |
|
|
Typically you can’t use .NET Encryptor for encrypting Windows Services executables directly. This is because windows services executables are not started like normal executables but instead are loaded by the Windows Service manager and then well known (Start/Stop) entry points are used to communicate with the service. If the executable is encrypted then these entry points are not accessible and the service can’t be started.
It may be possible to have an unencrypted service start and stop a separate encrypted executable which actually implements all the logic. You could also potentially do this by putting the service classes into the Bootstrap project and then have the LicenseService.OnStart method actually call the normal bootstrap ExecuteAssembly method. You would have to work out some way to stop the service. _________________ Infralution Support |
|
Back to top |
|
|
|