
C#
LZD_jay
Keep Moving!
展开
-
C# 使用 RSA 加密算法生成证书签名产生“The system cannot find the file specified”异常
这很可能是因为 Cryptographic Service 提供程序试图在用户存储区中存储或加载证书的密钥,并且由于配置文件不可用,因此加密上下文不可用。可在Azure应用程序服务 >> 配置 >> Application settings,增加。) 加密算法生成证书签名进行身份验证,在 VS2022 开发工具本地运行应用程序一切正常。由于应用程序服务(Azure App Serivces)默认没有开启加载用户配置文件设定。若应用程序部署在 Windows IIS 服务器上,则可以在应用程序池开启“原创 2023-10-12 17:11:17 · 1526 阅读 · 0 评论 -
C#枚举权值位运算示例
以下是枚举权值位运行示例: public static void RunSnippet() { //对枚举值进行按位或运算 ClassStatisticsType d = ClassStatisticsType.ApplyAudition | ClassStatisticsType.Approved; ClassStatisticsType k = ClassStatisti原创 2013-06-15 16:08:35 · 3369 阅读 · 0 评论