证书找不到
我在mmc.exe中导入了个证书
用以下代码获取证书(StoreName 为 ‘My',StoreLocation为CurrentUser )
var store = new X509Store(StoreName, StoreLocation);
store.Open(OpenFlags.ReadOnly);
var found = store.Certificates.Find(X509FindType, FindValue, ValidOnly);
在调试模式时是能获取证书的
但把网站发布到IIS后就获取不到了,这是为什么?