Page 1 of 1
protect a DLL in protected Project
Posted: Sun Jul 22, 2012 9:28 am
by zero_g
Hello,
I am trying to protect a selfwritten DLL into my protected Project. I added the DLL into the advanced Input. A protected DLL is beeing created, but during runtime the Application crashes with "System.BadImageFormatException" File or Assembly not found. In the Module a Assemblymanifest is expected.
With the unprotected DLL (excluded from the advanced input) everything works fine.
Any ideas?
Furthermore, is it possible to protect a DLL with lets say 365days within a protected Mainapp with a different limitation of 30days?
I am using VB2010
Kind regards
Tom
Re: protect a DLL in protected Project
Posted: Mon Jul 23, 2012 7:11 am
by Enigma
Hi Tom, looks like you are trying to protect the .NET dll? Enigma does not support protection of .net dll files.
The only way to protect it - adding the dll into Virtual Box - Files feature when protecting main executable.
zero_g wrote:Furthermore, is it possible to protect the Mainapp with limitation of 30days and the DLL with 365days?
Yes, of course, this is possible. Firstly you need to create a project in Enigma Protector, then save it and copy. One copy you will use for protection of main exe, and set it's trial to 30 days. Another copy will be used for protection of dll, it's trial should be set to 365 days. Only note, in both projects you have to have different "Product Name" field in Input panel, this is important.
When you will try to register the dll or exe, registration will affect both modules.
Re: protect a DLL in protected Project
Posted: Thu Jul 26, 2012 7:57 pm
by zero_g
Hello Enigma,
yes indeed the DLL to be protected within the protected Project is a .net DLL. I spent a lot of time but unfortunately without success. I copied the project from the Mainapp and changed only the projectname, the file to be protected and set the trialtime to 365 days. The I protect the "DLL" project. Further I load the Mainapp and integrate the protected DLL via Virtual Box - Files. Then protect again the Mainapp.
To use the DLL(particularly its functions) into the sourcecode of my VB2010 project I try to implement the protected DLL by add reference. Unfortunately VS2010 crashes.
As you see there are some questions remains unclear.
kind regards Tom
Re: protect a DLL in protected Project
Posted: Mon Jul 30, 2012 9:15 am
by Enigma
No Tom, you've made a little mistake there.
The protected NET DLL won't work at all.
To protect such kind of application you should:
- in the input panel select input/output exe files
- in Virtual Box - Files add a NET DLL.
And note, you should not protect DLL before this. DLL should be added only in Virtual Box as it is, without protection like exe file.
If you think it still does not work, please send us non protected sample files at
support@enigmaprotector.com, we will test them out.