Abp项目InternalServerError,SimpleStringCipher.Decrypt()找不到

从ABP框架官网(http://www.aspnetboilerplate.com/),自动生成了一个解决方案,按步骤配置好之后,没有报任何错误,但运行打开的网页却显示“InternalServerError”。后来通过Test中提供的单元测试测试代码发现问题:

System.MissingMethodException : 找不到方法:“System.String Abp.Runtime.Security.SimpleStringCipher.Decrypt(System.String, System.String, Byte[])”。


后在官方问题2070中找到答案。

If we encrypted a text before upgrade to v2.0, we can not decryt it with v2.0 even if we use the same encryption key. This happens because SimpleStringCipher is changed to be able to support .netstandard and introduces a Salt argument.

Solution: We will use the old code for .net46 and new code for .netstandard1.6. Thus, upgrading will not cause problems. If you then want to switch to .net core, you need to develop a tool that makes the conversion. We may create such a code to help to the community.

解决:

我们只需要将Abp.Zero升级到与ABP v2.0.2兼容的Abp.Zero v2.0.2即可

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值