
ABP
文章平均质量分 60
ABP是用于创建现代Web应用程序的完整架构和强大的基础设施! 遵循最佳实践和约定,为你提供SOLID开发经验.
https://abp.io/
大聪
MES FMS
展开
-
No theme registered! Use AbpThemingOptions to register themes
No theme registered! Use AbpThemingOptions to register themes原创 2022-09-07 22:14:37 · 1109 阅读 · 0 评论 -
ABP AuthorizationService No policy found: admin
ABP AuthorizationService No policy found: Portal原创 2022-07-22 11:22:02 · 491 阅读 · 0 评论 -
abp IdentityServer4 RemoteAuthentication: Correlation failed
abp IdentityServer4 RemoteAuthentication: Correlation failed集成问题原创 2022-07-22 10:17:47 · 683 阅读 · 0 评论 -
ABP AutoMapperConfigurationException异常
- Exceptions: - An exception was thrown while activating Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[MOM.MasterData.MasterDataApplicationModule, MOM.MasterData.Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapp.原创 2022-03-16 20:16:30 · 1870 阅读 · 0 评论 -
ABP的IdentityServer4采用Http时在谷歌最新浏览器登录后不跳转
ABP的IdentityServer4采用Http时在谷歌最新浏览器登录后不跳转错误日志:The cookie 'XSRF-TOKEN' has set 'SameSite=None' and must also set 'Secure'解决方案:修改IdentityServer网站项目public void SetSameSite(HttpContext httpContext, CookieOptions options) { if (options.Sa...原创 2022-03-07 09:28:31 · 1068 阅读 · 0 评论 -
ABP微服务示例中ProductManagementHttpApiClient服务地址配置
ABP微服务示例中ProductManagementHttpApiClient服务地址配置ABP微服务MicroserviceDemo示例中ProductManagementHttpApiClient动态C#客户端服务地址是如何配置生效的public class ProductManagementHttpApiClientModule : AbpModule { public const string RemoteServiceName = "ProductManagement...原创 2022-03-01 08:18:32 · 556 阅读 · 0 评论 -
ABP5.0更改默认本地化语言为中文
ABP更改默认本地化语言为中文,abpvnext 5.1版本有效public override void OnApplicationInitialization(ApplicationInitializationContext context) { var app = context.GetApplicationBuilder(); app.ApplicationServices.GetService<SettingDefinitionManager&...原创 2022-02-09 09:33:23 · 1152 阅读 · 0 评论 -
ABP AutoMapper异常AssertConfigurationIsValid
- Exceptions: - An exception was thrown while activating Volo.Abp.ObjectMapping.DefaultObjectMapper -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor. ...原创 2022-02-09 09:30:21 · 1336 阅读 · 0 评论 -
ABP5.x框架T4模板代码生成器
ABP5.x框架T4模板代码生成器,适合Oracle数据库,.Net6.0原创 2022-01-27 16:35:36 · 1626 阅读 · 0 评论 -
Abp项目更改默认主题在Blazorl项目的UI上
Abp项目更改默认主题在Blazorl项目的UI上参考:Replace Basic Bootstrap theme with a free custom Bootstrap themehttps://community.abp.io/posts/replace-basic-bootstrap-theme-with-custom-bootstrap-theme-in-abp-blazor-applications.-n3548bglAbp项目更改默认主题,更改主页上的主菜单、工具条、商标等AB.原创 2022-01-26 10:31:43 · 1251 阅读 · 0 评论 -
Abp5.1默认模板使用sqlite数据库-简明教程
ABP Framework - Open Source Web Application Framework创建项目使用sqlite数据库 更改所有appsettings.json中的数据库配置为绝对路径 F:\\Permission.db数据库迁移 设置MOM.Permission.DbMigrator为启动项目 包控制台,默认项目MOM.Permission.EntityFrameworkCore add-migration Init ...原创 2022-01-22 15:27:29 · 720 阅读 · 0 评论 -
控制台程序使用HttpClient调用ABP Vnext的授权问题
控制台程序使用HttpClient调用ABP Vnext的授权问题,ABP 使用HttpClient调用WebAPI授权问题Unauthorizedpublic static HttpClient GetHttpClient() { var client = new HttpClient(); var disco = client.GetDiscoveryDocumentAsync(new DiscoveryDocumentReques...原创 2021-10-05 08:48:14 · 701 阅读 · 0 评论 -
This is usually caused by different threads concurrently using the same
你忘记await了- A second operation was started on this context before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with .原创 2021-08-13 17:24:47 · 1155 阅读 · 1 评论 -
ABP Framework:移除 EF Core Migrations 项目,统一数据上下文
参考https://www.cnblogs.com/YGYH/p/14977399.html.DbMigrator项目运行问题。'abp' 不是内部或外部命令,也不是可运行的程序或批处理文件。No project was found. Change the current working directory or use the --project option.System.Exception: Migrations failed! A migration command didn't原创 2021-08-13 14:59:54 · 597 阅读 · 0 评论 -
ABP 使用HttpClient调用WebAPI授权问题Unauthorized
ABP 使用HttpClient调用WebAPI授权问题Unauthorizedinstall-package Volo.Abp.Http.Client.IdentityModel -version 4.3.3typeof(AbpHttpClientIdentityModelModule),var isAuth = await identityModelAuthenticationService.TryAuthenticateAsync(client); ...原创 2021-07-23 14:23:48 · 2470 阅读 · 0 评论 -
ABP The required antiforgery cookie
2021-07-08 20:43:47.187 +08:00 [INF] Initialized all ABP modules.2021-07-08 20:43:49.317 +08:00 [ERR] The required antiforgery cookie ".AspNetCore.Antiforgery.O8uYkIqhOQY" is not present.2021-07-08 20:44:39.149 +08:00 [ERR] The required antiforgery cooki原创 2021-07-08 20:51:03 · 1586 阅读 · 0 评论 -
ABP继承自AbpController后路由无效
现象:ABP中,自定义了一个继承自AbpController后路由无效,直接继承Controller就可以正确使用控制器。解决方案:保证你的控制器是抽象的,如下public abstract class MyBaseController:AbpController{}参考:Creating a base class to inherit from AbpController routing is invalidhttps://github.com/abpframewo...原创 2020-12-30 21:29:24 · 887 阅读 · 1 评论 -
如何修复Chrome login issue for the IdentityServer4 HTTPs
How to fix the Chrome login issue for the IdentityServer4IntroductionWhen you use HTTP on your Identity Server 4 enabled website, users may not login because of the changes made by Chrome in the version 8x. This occurs when you use HTTP schema in your转载 2020-08-12 22:33:58 · 504 阅读 · 0 评论 -
ABP VNext纯洁版项目模板
在ABP的https://abp.io/get-started官网“Direct Download”采用"Tiered生成项目模板,删除所有不需要的依赖,包括IdentityServer4。保证项目的纯净。不改变ABP项目的默认结构目录,使用Sqlite本地数据库。...原创 2020-07-27 22:09:22 · 883 阅读 · 0 评论 -
ABP vNext切换到EF Core Oracle 3.1提供程序
ABP vNext切换到EF Core Oracle3.1提供程序删除Volo.Abp.EntityFrameworkCore.SqlServer包解决方案中的.EntityFrameworkCore项目删除Volo.Abp.EntityFrameworkCore.SqlServer包.。nuget,设置默认项目:.EntityFrameworkCoreInstall-Package Oracle.EntityFrameworkCore -Version 3.19.0-...原创 2020-05-30 17:10:11 · 1054 阅读 · 1 评论 -
ABP vNext的JSON返回结果大小写问题
ABP vNext的JSON返回结果大小写问题问题描述:ABP vNext Core版本的API会把JSON返回结果中Dto类的属性第一个字母小写(Camal)。ABP返回结果属性大小写问题,JsonResult返回结果首字母被小写,如何改成原样输出JSON结果集。解决方案:在web项目的xxxxxModule模块配置中public override void ConfigureServices(ServiceConfigurationContext context){ cont..原创 2020-05-18 21:38:54 · 2207 阅读 · 2 评论 -
ABP的IdentityServer4中使用自定义的claim声明
ABP的IdentityServer4使用自定义的claim声明,我是想增加一个部门Id,登录用户的中文名称在 IdentityServer项目的AbpModule中,context.Services.AddScoped<IProfileService, ProfileServices>(); //context.Services // .GetObject<IdentityBuilder>()public c...原创 2020-05-16 22:40:22 · 2875 阅读 · 0 评论 -
ABP Vnext 引入JSON配置文件(AddJsonFile)的方法
ABP Vnext 引入外部JSON配置文件(AddJsonFile)的方法。包括ABP通过JSON配置文件进行动态注入依赖public class WPFAppModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) ...原创 2020-03-27 21:10:52 · 2891 阅读 · 0 评论 -
identityserver4 报错无效的Invalid redirect_uri
使用https://github.com/skoruba/IdentityServer4.Admin的,移植ABP Vnext的identityserver4时。客户端登录时报如下错误(原始的错误找不到了,这个是从网上找的):identityserver4[2020-03-24] Invalid redirect_uri: http://***fail: [0] Invalid re...原创 2020-03-24 21:43:47 · 6288 阅读 · 5 评论 -
ABP切换到EF Core SQLite提供程序
ABP切换到EF Core SQLite提供程序替换Volo.Abp.EntityFrameworkCore.SqlServer包解决方案中的.EntityFrameworkCore项目依赖于Volo.Abp.EntityFrameworkCore.SqlServerNuGet包. 删除这个包。设置默认项目:.EntityFrameworkCoreinstall-packa...转载 2020-03-22 11:28:22 · 632 阅读 · 0 评论 -
ABP使用外部XML文件运行期动态进行依赖注入
ABP使用外部XML文件运行期动态进行依赖注入public class DacongApplicationModule : AbpModule { public override void Initialize() { IocManager.RegisterAssemblyByConvention(Assembly.GetE...原创 2019-08-18 21:54:05 · 527 阅读 · 0 评论 -
ABP动态配置数据库连接字符串 Oracle11g数据库
ABP动态配置数据库连接 Oracle11g数据库ABP的仓储关于数据库连接字符串的配置是从web.config(app.config)的connectionStrings读取的。我想实现的功能是使用Consul的KV加密存储Oracle数据库的连接字符串,在ABP的应用层动态获取。采用的ABP版本4.7,.Net Famework 4.61,Oracle 数据库11.2,vs2019...原创 2019-07-28 09:32:35 · 2230 阅读 · 0 评论