EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TSBStorageAccessType.atLocalMachine error

Posted: 11/13/2007 16:11:29
by Sheri Meyer (Standard support level)
Joined: 11/12/2007
Posts: 5

the C# code below:

TElWinCertStorage storage = new TElWinCertStorage(); //ok
storage.StorageType = TSBStorageType.stSystem; //ok
storage.AccessType = TSBStorageAccessType.atLocalMachine;

throws an error in version of SecureBlackbox but not in version

SBUtils.ECertStorageError: Failed to open storage
at SBWinCertStorage.TElWinCertStorage.Open()
at SBWinCertStorage.TElWinCertStorage.HandleStoresChange(Object Sender)
at SBWinCertStorage.TElWinCertStorage.SetAccessType(TSBStorageAccessType Value)
at SBWinCertStorage.TElWinCertStorage.set_AccessType(TSBStorageAccessType value)
at JciSelfCert.Program.Main(String[] args) in C:\4.0_plus_workarea\g3_v4.0_plus\g3_lgs\src\JciSel
fCert\Program.cs:line 47

Any ideas what the difference is?

Also we would please like to change our license back to the .Net version because the ActiveX version does not do what we need.


Posted: 11/14/2007 06:43:44
by Ken Ivanov (Team)

The exception is thrown as no system store is specified. When the value of AccessType is changed, TElWinCertStorage attempts to refresh the certificate list (and fails as SystemStores is empty). Please set the name(s) of the desired system stores before assigning something to AccessType property:

TElWinCertStorage storage = new TElWinCertStorage();
storage.StorageType = TSBStorageType.stSystem;
storage.AccessType = TSBStorageAccessType.atLo­calMachine;

Thank you for pointing us at this. It's not an obvious behaviour, so we will consider implementing some means for suppressing this exception if store list is empty.



Topic viewed 2649 times

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


Back to top

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

Got it!