zoukankan      html  css  js  c++  java
  • ABP Zero示例项目问题总结

    1.ABP Zero项目,登录时出现如图“Empty or invalid anti forgery header token.”错误提示

    ABP Zero项目,登录时出现如图“Empty or invalid anti forgery header token.”错误提示的解决方法:

    在 WebModule.cs的PreInitialize方法中加

    Configuration.Modules.AbpWeb().AntiForgery.IsEnabled = false;

    需要添加引用:

    using Abp.Configuration.Startup;

     原文:http://www.cnblogs.com/changyou7/p/6122190.html

    2. ABP学习 解决:Update-Database : 无法将“Update-Database”项识别为 cmdlet、函数、脚本文件或可运行程序的名称的问题

    遇到两次这个问题,在此记录一下

    原因:

    没有引用EntityFramework命令

    解决:

    在程序包管理器控制台执行如下命令:
    Import-Module 项目路径packagesEntityFramework.6.1.3(EF版本) oolsEntityFramework.psd1

    另一特殊原因:第一次还原packages后出现这个问题,重启VS即可

    3.Method not found: 'System.String Abp.Runtime.Security.SimpleStringCipher.Decrypt(System.String, System.String, Byte[])'

    原因:

    官方解释:我们已经修改了v2.0中的SimpleStringCipher,它不是向后兼容的,一些开发人员在解密在v2.0之前被加密的文本时遇到问题。
    所以,在#2070中,我们为.net461框架进行了回滚,并且仅为.netstandard使用新版本。(We have changed SimpleStringCipher in v2.0 which was not backward compatible and some of developers had problems while decrypting texts which are encrypted before v2.0.So, in #2070 we made a rollback for .net461 framework and using new version only for .netstandard.)

    解决:

    这是Abp.Zero的一个问题。升级到与ABP v2.0.2兼容的Abp.Zero v2.0.2即可

  • 相关阅读:
    LeetCode Arithmetic Slices
    LeetCode Number of Longest Increasing Subsequence
    LeetCode Longest Increasing Subsequence
    shrio注解的方式进行权限控制
    30分钟学会如何使用Shiro(转自:http://www.cnblogs.com/learnhow/p/5694876.html)
    eclipse逆向生成实体类
    redis2.3.7安装时出现undefined reference to `clock_gettime'
    使用Nginx+Lua(OpenResty)开发高性能Web应用
    shrio初体验(2)Realm
    shrio初体验(1)
  • 原文地址:https://www.cnblogs.com/webenh/p/7985377.html
Copyright © 2011-2022 走看看