EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Error 1008 on creating storage in Mapper Sample

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#14998
Posted: 11/10/2010 04:35:19
by Damien Obringer (Standard support level)
Joined: 03/10/2010
Posts: 2

Hi,


The Mapper sample throw an exception, when I try to create a storage.
It occurs when calling
Code
mCbFs.CreateStorage();
in btnCreateStorage_Click event.

Does anyone know the reason of this exception ?

Exception details :
Message : Tentative de référence à un jeton qui n’existe pas.
NativeErrorCode : 1008.


I'am using Visual Studio 2008, under Windows 7 64bits.
CbFS driver : 3.0.78.176.
I am logged as local Administrator of the computer.
#15007
Posted: 11/10/2010 13:15:45
by Volodymyr Zinin (EldoS Corp.)

Hello Damien,

Does the problem exist only on one computer or it's reproducible on other machines? Have you ever had the Mapper sample to work successfully?
#15057
Posted: 11/16/2010 06:58:37
by Damien Obringer (Standard support level)
Joined: 03/10/2010
Posts: 2

Hello Vladimir,

I found the reason of problem.
I was using the wrong license key. I used a specific program license key instead of universal license key.

If I may say so, wouldn't be better to throw an exception on CallbackFileSystem.SetRegistrationKey(sRegKey) with "Wrong license key" as message ?

Thanks for your help.
#15059
Posted: 11/16/2010 07:17:56
by Eugene Mayevski (EldoS Corp.)

The key is processed in the kernel-mode driver, which can't throw exceptions or even report custom errors. It reports the NT Native API error code which is then translated to Win32 error and thrown as an exception.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 1221 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!