EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SecureException when open session using Silverlight

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#29733
Posted: 06/09/2014 10:11:59
by Fernando  (Basic support level)
Joined: 06/06/2014
Posts: 2

I'm having problem when i try to open session and populate a TElPKCS11SessionInfo object.

The visual studio show the following exception:

Delegate 'SBPKCS11Base.TPKCS11NotifyCallback' must be bound to a method in a fully-trusted assembly and the method must have the AllowReversePinvokeCallsAttribute.

I tryed to put AllowReversePInvokeCalls attribute on my OpenSession method, but it doesn't work.
I copied the OpenSession method from the CryptoTokenDemo sample, so my method is very similar.
The Application.Current.HasElevatedPermissions is returning true, so i believe that my application is running in trust mode.
#29734
Posted: 06/09/2014 10:25:08
by Eugene Mayevski (EldoS Corp.)

Unfortunately we are not experts in Silverlight security constraints, but maybe this StackOverflow question/answer will help you.


Sincerely yours
Eugene Mayevski
#29737
Posted: 06/09/2014 11:26:18
by Fernando  (Basic support level)
Joined: 06/06/2014
Posts: 2

Quote
fernandoht wrote:
I'm having problem when i try to open session and populate a TElPKCS11SessionInfo object.

The visual studio show the follow exception:

Delegate 'SBPKCS11Base.TPKCS11NotifyCallback' must be bound to a method in a fully-trusted assembly and the method must have the AllowReversePinvokeCallsAttribute.

I tried to put AllowReversePInvokeCalls attribute on my OpenSession method, but it doesn't work.
I copied the OpenSession method from the CryptoTokenDemo sample, so my method is very similar.
The Application.Current.HasElevatedPermissions is returning true, so i believe that my application is running in trust mode.
#31175
Posted: 10/29/2014 08:44:22
by Alexssandro Aquino (Basic support level)
Joined: 10/27/2014
Posts: 19

hello,

I having the same problem, but my app is able to run out-of-browser.
In this case, What Can I do?
#31183
Posted: 10/29/2014 10:58:59
by Alexssandro Aquino (Basic support level)
Joined: 10/27/2014
Posts: 19

is the same problem with TinySignerPKCS11 Demo, located in the following directory: \EldoS\SecureBlackbox.NET\Samples\C#\XMLBlackbox\Desktop\TinySignerPKCS11?
#31184
Posted: 10/29/2014 11:01:29
by Alexssandro Aquino (Basic support level)
Joined: 10/27/2014
Posts: 19

is it possible to use a SecureBlackbox PKCS 11 on silverlight 5.0?
#31185
Posted: 10/29/2014 11:20:26
by Eugene Mayevski (EldoS Corp.)

NotifyCallback event is optional. Try just removing it.


Sincerely yours
Eugene Mayevski
#31188
Posted: 10/29/2014 11:39:28
by Alexssandro Aquino (Basic support level)
Joined: 10/27/2014
Posts: 19

I didn't place this event. but the exception occour the same way.

I Only call the OpenSession method from the TElPKCS11CertStorage object.

my code is similiar to TinySignerPKCS11 example project.
#31189
Posted: 10/29/2014 11:40:58
by Alexssandro Aquino (Basic support level)
Joined: 10/27/2014
Posts: 19

but, on silverlight.
#31197
Posted: 10/30/2014 02:48:57
by Ken Ivanov (EldoS Corp.)

Hi Alexssandro,

It seems that you won't be able to make it work without introducing lower-level changes to SecureBlackbox code. We are investigation the issue now. If there's anything we can do about it, we will include the workaround into the future SecureBlackbox update.

Ken
Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.

Reply

Statistics

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