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()
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
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()
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.