EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Error: Key validation handler is not assigned

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#10104
Posted: 05/21/2009 11:27:16
by Oscar Zanin (Basic support level)
Joined: 05/21/2009
Posts: 3

Hello.

VB2008 Standard - SP 1.

Sorry my poor English.

I downloaded and installed SecureBlackbox ver. 7.
I did request and received the key to unlock.
SimpleSftpDemo_VS2008 I tried and it worked.
Then I created my project by copying the code from SimpleSftpDemo_VS2008 but when I try to connect to the server I generates an exception:
"Key validation handler is not assigned. Please handle the OnKeyValidate event and implement proper key validation code there."

I referenced the following libraries:
C:\Program Files (x86)\EldoS\SecureBlackbox.NET\Assemblies\NET_20\SecureBlackbox.dll
C:\Program Files (x86)\EldoS\SecureBlackbox.NET\Assemblies\NET_20\SecureBlackbox.SFTP.dll
C:\Program Files (x86)\EldoS\SecureBlackbox.NET\Assemblies\NET_20\SecureBlackbox.SFTPCommon.dll
C:\Program Files (x86)\EldoS\SecureBlackbox.NET\Assemblies\NET_20\SecureBlackbox.SSHClient.dll
C:\Program Files (x86)\EldoS\SecureBlackbox.NET\Assemblies\NET_20\SecureBlackbox.SSHCommon.dll
C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll
C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll
C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll

I have used in both cases the same connection parameters and the same key to unlock. The example works but my code no.

I attach the code that I wrote.

What's wrong?

Thanks for the help.


[ Download ]
#10105
Posted: 05/21/2009 12:39:33
by Eugene Mayevski (EldoS Corp.)

Please re-read the error message. It explains everything, when you read it.


Sincerely yours
Eugene Mayevski
#10121
Posted: 05/22/2009 03:49:29
by Oscar Zanin (Basic support level)
Joined: 05/21/2009
Posts: 3

Quote
Eugene Mayevski wrote:
Please re-read the error message. It explains everything, when you read it.


Excuse me but the key is to use what I sent you via mail. I tried to use but also that the example does not change anything.
These are the attempts that I made for the allocation of key:
SBUtils.Unit.SetLicenseKey(SBUtils.Unit.BytesOfString("7576...C51E"))
SBUtils.Unit.SetLicenseKey("1708...C6EF")
SBUtils.Unit.SetLicenseKey(SBUtils.Unit.BytesOfString("1708...C6EF"))

The rest of the code is what I attached.
With none of the 3 runs.
If you want help me please ...
#10124
Posted: 05/22/2009 04:16:31
by Ken Ivanov (EldoS Corp.)

Please handle the OnKeyValidate event of the TElSimpleSFTPClient component and implement proper key validation code inside the handler.
#10125
Posted: 05/22/2009 04:39:19
by Oscar Zanin (Basic support level)
Joined: 05/21/2009
Posts: 3

Quote
Innokentiy Ivanov wrote:
Please handle the OnKeyValidate event of the TElSimpleSFTPClient component and implement proper key validation code inside the handler.


OK, now it works!
Thank you very much Ivanov.

Bye

Oscar
#10126
Posted: 05/22/2009 04:54:49
by Ken Ivanov (EldoS Corp.)

I am pretty sure that the original error message stated exactly the same ;).
Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.

Reply

Statistics

Topic viewed 3143 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!