Activelock
September 05, 2010, 03:02:44 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Latest version of Activelock is v3.6.1
 
   Home   Help Search Calendar Login Register  
Pages: [1] 2 3 ... 10
 1 
 on: September 04, 2010, 09:35:51 AM 
Started by perlfan - Last post by ismail
You're lucky besause I experienced the same thing.
It is directly related what I was warning about in my previous post.
The PUB_KEY usage is very important.
If you copy the VCode and use it as PUB_KEY, then you should not use Dec(PUB_KEY) for SoftwareCode
(PUB_KEY=VCode=.SoftwareCode).
But if you'd like to keep the PUB_KEY in encrypted format, then you should keep:
.SoftwareCode=Dec(PUB_KEY)
BUT
you should always have
PUB_KEY= something like 223.213.532.234...... (PUB_KEY encrypted with the Enc() function)
When I did that the Type Mismatch error went away and an automatic 30 day trial kicked in.
Let me know if this helps.

 2 
 on: September 03, 2010, 09:30:15 AM 
Started by perlfan - Last post by ismail
Where is the error triggering? The Acquire method?
Are you passing the correct number of arguments to the Acquire method?

Also, I have to repeat the question: Did you try the VB6 sample app? Were you able to register that app successfully?

When you use the VCode (PUB_KEY) in your app, are encoding and decoding it using the Enc() and Dec() functions or are you using it as plain text? Because if you're using encode, you must remember to decode it before you feed it into Activelock. Likewise, if it's plain text, no encode/decode should be used.

When you generated your VCode/GCode pair in Alugen, did you SAVE them?

You got my curiosity with this problem. Type Mismatch is usually something very simple.
I'll try to migrate David Airey's project as sson as I can.

 3 
 on: September 03, 2010, 08:38:58 AM 
Started by perlfan - Last post by perlfan
Hi Ismail,

thanks for your quick reply.

I am using the Access 2000-2007 Demo by David Airey (Mar 22, 2009) v3.6  Access/VBA in my MS Access 2007 version.
This is the app that doesn't work. What I changed before trying it is: 1. Generated a software entry in the product key generator
of ALUGEN for VB6. Then I inserted the encrypted VCode in the basstartup module. There I also updated the app name and version.
The username I use for registration does only consist of simple letters - like Frank etc. As I said: I am getting the message
Registration successful, but this is not reconized by the app. When I open the app I immediately get the error message (no licence, tpye mismatch),
the same type of error which stands behind the "Registration Status:" in the form frmRegister. Hopefully, this info clarifys my problem
a bit so u might help me. If you are publishing a new version of the Access demo next week anyway, I'll simply wait and retry then.

Thx - Frank

 4 
 on: September 03, 2010, 06:51:35 AM 
Started by perlfan - Last post by ismail
Make sure you don't put "-" and such characters in user names, software names, etc.

I'll try to modify the Access package with v3.6.1 and relese to the community hopefully early next week.

Did you try the VB6 sample as-is? Did that work for you?
Did you implement everything in the Form_Load event of the main form in your Access app?

 5 
 on: September 03, 2010, 03:31:56 AM 
Started by perlfan - Last post by perlfan
Hi!!

I have the feeling that I am almost there. BUT - I am still getting an error message when I start the Access 2007 demo V3.601... Embarrassed

The message pops up when I start the demo file - "No License" and then in German "Typen unverträglich", means "type mismatch".
I assume the error message comes from this line MsgBox Err.Description, vbExclamation, " No License"

Before that I have copied the encrypted VCode and the encrypted CRC value from the activelock.dll into the basstartup module.
I can register a user, I am getting the "Registration successful" message, but then the Registration status shows the Type mismatch
text and also on the main form it says that I still do not have a license.

Help is very appreciated - Thanks in advance

Frank

 6 
 on: September 01, 2010, 06:41:52 PM 
Started by Houdini - Last post by ismail
That's the spirit.

Thank you !

 7 
 on: September 01, 2010, 03:19:22 PM 
Started by Houdini - Last post by Houdini
ismail, certainly.  I'm going on vacation tomorrow, so it will be a week or so before I can get to this, but I'll strip out our company specific parts and post something generic enough that people will find it a great starting point for adding in their own specific code.

- Houdini

 8 
 on: September 01, 2010, 02:01:16 PM 
Started by Houdini - Last post by ismail
Will you consider to share this web service sample with the community?

 9 
 on: September 01, 2010, 11:52:24 AM 
Started by Houdini - Last post by Houdini
Ok, I've figured out how to write an .NET web service that uses the VB6 version of ActiveLock 3.6.1 to properly activate against the VB6 version.  If anyone had tried to use the VB6 DLLs in a .NET web project before they probably received this error when attempting to create new instances of the ActiveLock interfaces:

System.Runtime.InteropServices.COMException was unhandled
Exception from HRESULT: 0x800A0062

To fix this issue you must run all VB6 DLL calls in a single-threaded apartment thread.  To do this, you first need to place all ActiveLock VB6 DLL calls in a separate class.  For example:

Code:
public class ActiveLockGenerator
{
    string m_installation_code;
    string m_app_name;
    string m_app_version;
    string m_software_code;
    string m_features;
    string m_products_path;
    string m_activation_code;
    EventWaitHandle m_event_wait_handle;

    public ActiveLockGenerator(EventWaitHandle event_wait_handle, string products_path, string installation_code, string app_name, string app_version, string software_code, string features)
    {
        m_installation_code = installation_code;
        m_app_name = app_name;
        m_app_version = app_version;
        m_software_code = software_code;
        m_features = features;

        m_products_path = products_path;
        m_event_wait_handle = event_wait_handle;
    }

    public void GenerateActivationCode()
    {
        try
        {
            ActiveLock3.IALUGenerator GeneratorInstance;
            ActiveLock3.AlugenGlobals AlugenGlobals = new ActiveLock3.AlugenGlobals();
            ActiveLock3.ProductInfo ProductInfo = new ActiveLock3.ProductInfo();
            ActiveLock3.Globals Globals = new ActiveLock3.Globals();
            ActiveLock3.ProductLicense ProductLicense;

            // Generate activation code
            ProductLicense = Globals.CreateProductLicense(m_app_name, m_app_version, m_software_code, ActiveLock3.LicFlags.alfSingle, ActiveLock3.ALLicType.allicPermanent, "", m_features, DateTime.Now.AddDays(365), "", DateTime.Now, "", 1, "");

            ActiveLock3.ProductsStoreType store_type = ActiveLock3.ProductsStoreType.alsINIFile;
            GeneratorInstance = AlugenGlobals.GeneratorInstance(ref store_type);
            GeneratorInstance.StoragePath = m_products_path;
            
            ProductInfo = GeneratorInstance.RetrieveProduct(app_name, app_version);
            m_activation_code = GeneratorInstance.GenKey(ref ProductLicense, m_installation_code, m_features) + "aLck" + m_installation_code;
        }
        catch (Exception ex)
        {
            m_activation_code = ex.Message;
        }

        m_event_wait_handle.Set();
    }

    public string GetActivationCode()
    {
        return m_activation_code;
    }
}

After setting up the above you can activate by using this code:
Code:
AutoResetEvent event_wait_handle = new AutoResetEvent(false);
ActiveLockGenerator active_lock_gen = new ActiveLockGenerator(event_wait_handle, Server.MapPath("~") + "\\products.ini", installation_code, features);

// Execute our ActiveLock calls in a single-threaded apartment thread
Thread thread = new Thread(new ThreadStart(active_lock_gen.GenerateActivationCode));
thread.SetApartmentState(ApartmentState.STA);

// Start the thread and wait for it to finish
thread.Start();
event_wait_handle.WaitOne();
event_wait_handle.Reset();

activation_code = active_lock_gen.GetActivationCode();

- Houdini

 10 
 on: August 31, 2010, 01:10:54 PM 
Started by Houdini - Last post by ismail
I have an unfinished Alugen for v3.6.x written by ASP.NET and VB2008
Actually I have two separate Alugen projects unfinished.

They were actually working tools for earlier Activelock (maybe 3.5??) and then I started working on them but never finished, although most of the work was done.

What you need to do is visit both projects and finish them by migrating code and feautes from Alugen for VB2008 in the .NET package.
Not a lot of work left - it just needs to be done.
Each project has its own nice features. One uses AJAX. One of them also uses some components.
Cool projects, you'll like them.
I'll appreciate if you could finish them for me and the community Smiley

Send me an email to alkanism@gmail.com and I'll forward them to you (I am assuming that you'll help me with finishing them Smiley)

Pages: [1] 2 3 ... 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!