Open棟梁Project - マイクロソフト系技術情報 Wiki
管理特権が必要になります。
管理特権が無い場合、
X509Store store = new X509Store( StoreName.TrustedPublisher, StoreLocation.LocalMachine); store.Open(OpenFlags.ReadWrite); // ← アクセス許可無しでエラー(OpenFlags.ReadOnlyなら動作する)
X509Store store = new X509Store( StoreName.TrustedPublisher, StoreLocation.CurrentUser); // ★ StoreLocation.LocalMachine → StoreLocation.CurrentUser store.Open(OpenFlags.ReadWrite);