Re: [ActiveLock-Users]Error Initializing ActiveLock 2.0 under VB.Net
Brought to you by:
ialkan
From: Thanh H. T. <th...@sy...> - 2004-11-11 17:34:40
|
> > > .SoftwareCode = "xxx" > Is this actually the code that you're using? Because if it is, it's not a valid code. Also, you forgot to specify a KeyStorePath. /Thanh Jürgen Zimmer wrote on 07/11/2004 8:30 AM: > Hello all, > > > > By initializing ActiveLock under VB.Net occurs following Error: > > > > An unhandled exception of type 'System.InvalidCastException' > occurred in Karte.exe > > Additional information: Die angegebene Umwandlung ist ungültig. > > > > I used this code: > > > > Private MyActiveLock As ActiveLock2.IActiveLock > > Private WithEvents ActiveLockEventSink As > ActiveLock2.ActiveLockEventNotifier > > > > In Form_load > > > > MyActiveLock = New ActiveLock2.Globals > > > > With MyActiveLock > > .SoftwareName = "xxx" > > .SoftwareVersion = "2.0" > > .SoftwareCode = "xxx" > > .AutoRegisterKeyPath = "C:\Programme\ActiveLock Software > Group\ActiveLock2\Bin\activelock.all" > > .LockType = ActiveLock2.ALLockTypes.lockHD > > End With > > ActiveLockEventSink = MyActiveLock.EventNotifier > > MyActiveLock.Init() > > > > What is wrong for the Initializing ?! > > > > Best Regards > > > > Jürgen Zimmer > > > > > > > -- th...@sy... Thanh Hai Tran, HBIT (Human Being In Training) PGP Key: http://lytran.homeip.net/gpg/th2tran.key Web Log: http://www.bloglines.com/blog/th2tran |