Cryptlex Forums

Windows Vista - Failed to load DLL

A
Argopm

Hello Support,

Is there any minimum version of windows is needed to get Lex working? We facing issue where Lex dll is not loaded by OS and our app is crashing. Below is the detailed info. It says dll not found but its’ in same folder as app and working on win7 and above fine. Please advise.

Log Name: Application
Source: .NET Runtime
Date: 10/20/2016 4:06:55 AM
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: Engineer-PC
Description:
Application: OurApp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException
Stack:
at Cryptlex.LexActivator+Native.SetProductFile(System.String)
at OurApp.LexLicenseCheck.initLex()
at OurApp.MainForm…ctor()
at OurApp.Program.Main()

Event Xml:



1026
2
0
0x80000000000000

523
Application
Engineer-PC



Application: OurApp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.DllNotFoundException
Stack:
at Cryptlex.LexActivator+Native.SetProductFile(System.String)
at OurApp.LexLicenseCheck.initLex()
at OurApp.MainForm…ctor()
at OurApp.Program.Main()


C
Cryptlex Support

HI,

LexActivator is compiled using VS 2010, so VS 2010 runtime (msvcp100.dll, msvcr100.dll) should be present. Ideally you should ship the runtime with your app as it may not be present in your customer’s OS.

To get the runtime dlls you can download them from micrososft’s website or search for them in Windows 7, and make sure they are in same directory as your exe and lexactivator.dll

A
Argopm

Okay I copied both of above DLL from “Windows/System32” folder of windows 7/64 bit system to 32bit vista and getting below exception. This looks like 32/64 bit issue but I can’t find any other dll on my system. Any advise?

Description: The process was terminated due to an unhandled exception.
Exception Info: System.BadImageFormatException
Stack:
at Cryptlex.LexActivator+Native.SetProductFile(System.String)
at OurApp.LexLicenseCheck.initLex()
at OurApp.MainForm…ctor()
at OurApp.Program.Main()

C
Cryptlex Support

You can’t mix the dlls. If your app uses 32 bit LexActivator.dll then you have to ship 32 bit VS 2010 runtime with your app.

You can download the 32 bit runtime from Microsoft’s website.

A
Argopm

Well my app is x86 compiled and will look into x86 compiles binaries then. Do you have direct MS link ?

C
Cryptlex Support

The dll’s have been mailed to your email address.

A
Argopm

That worked, Thanks so much!! I would suggest to make a note on help section or API section on your website to easily help user about it. I tried looking over pages but can’t find anything then had to come to forum.

← Back to all topics · 7 posts · 975 views · opened 2016-10-21