Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can .NET Encryptor be used to encrypt windows service apps?

 
Post new topic   Reply to topic    Infralution Support Forum Index -> .NET Encryptor Support
View previous topic :: View next topic  
Author Message
ArcaArtem



Joined: 14 Jul 2008
Posts: 5

PostPosted: Fri Jun 08, 2012 11:13 pm    Post subject: Can .NET Encryptor be used to encrypt windows service apps? Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sat Jun 09, 2012 1:17 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> .NET Encryptor Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group