EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TSBStorageAccessType.atLocalMachine error

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.
#4305
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 5.2.0.124 of SecureBlackbox but not in version 5.1.0.112

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.

Thanks,

Bob
#4309
Posted: 11/14/2007 06:43:44
by Ken Ivanov (EldoS Corp.)

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.SystemStores.Add("ROOT");
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.

Reply

Statistics

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