[ActiveLock-Users]Error Initializing ActiveLock 2.0 under VB.Net
Brought to you by:
ialkan
From: <jue...@ya...> - 2004-11-07 13:27:30
|
Hello all, =20 By initializing ActiveLock under VB.Net occurs following Error: =20 An unhandled exception of type 'System.InvalidCastException' occurred = in Karte.exe Additional information: Die angegebene Umwandlung ist ung=FCltig. =20 I used this code: =20 Private MyActiveLock As ActiveLock2.IActiveLock Private WithEvents ActiveLockEventSink As ActiveLock2.ActiveLockEventNotifier =20 In Form_load =20 MyActiveLock =3D New ActiveLock2.Globals =20 With MyActiveLock .SoftwareName =3D "xxx" .SoftwareVersion =3D "2.0" .SoftwareCode =3D "xxx" .AutoRegisterKeyPath =3D "C:\Programme\ActiveLock Software Group\ActiveLock2\Bin\activelock.all" .LockType =3D ActiveLock2.ALLockTypes.lockHD End With ActiveLockEventSink =3D MyActiveLock.EventNotifier MyActiveLock.Init() =20 What is wrong for the Initializing ?! =20 Best Regards=20 =20 J=FCrgen Zimmer =20 =20 =20 |