Hi,
Ok, I think this may be a problem with IIS.
Is this working for you?
Hi,
We have an example: https://github.com/abpframework/abp-samples/blob/master/DomainTenantResolver/OpenIddict/NG/angular/src/environments/environment.ts#L13-L22
Hi,
In ABP we recommend using optimistic concurrency control, you can check the article https://community.abp.io/posts/handle-concurrency-with-ef-core-in-an-abp-framework-project-with-asp.net-core-mvc-jlkc3w8f
Another explanation, hope it helps you understand concurrency
https://stackoverflow.com/questions/52613620/concurrency-across-a-scoped-dbcontext
Hi,
No, I don't think it avoids concurrency conflict.
As I said: https://support.abp.io/QA/Questions/6617/About-background-workers-to-run-at-the-same-time-in-Hangfire-and-the-dbcontext-problem#answer-3a108f37-6ca9-8b3b-f9d1-aec4b6e66687
Hi,
How about comment the CORS code
comment AddCors
// context.Services.AddCors(options =>
// {
// options.AddDefaultPolicy(builder =>
// {
// builder
// .WithOrigins(
// configuration["App:CorsOrigins"]?
// .Split(",", StringSplitOptions.RemoveEmptyEntries)
// .Select(o => o.RemovePostFix("/"))
// .ToArray() ?? Array.Empty<string>()
// )
// .WithAbpExposedHeaders()
// .SetIsOriginAllowedToAllowWildcardSubdomains()
// .AllowAnyHeader()
// .AllowAnyMethod()
// .AllowCredentials();
// });
// });
comment UseCors
// app.UseCors();
Hi,
You can try to allow all origins to locate the problem:
Update YourProjectNameAuthServerModule and YourProjectNameHttiApiHostModule.
And redeploy to check:
context.Services.AddCors(options =>
{
options.AddDefaultPolicy(builder =>
{
builder
.AllowAnyOrigin() // allow any origin.
.WithAbpExposedHeaders()
.SetIsOriginAllowedToAllowWildcardSubdomains()
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials();
});
});
Hi,
This is a bug, we will fix it in the next patch version.
You can try update your app-routing.module
import {
authGuard,
permissionGuard,
ReplaceableComponents,
ReplaceableRouteContainerComponent,
RouterOutletComponent,
} from '@abp/ng.core';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { textTemplateManagementExtensionsResolver, InlineTemplateContentComponent, TemplateContentsComponent , TextTemplatesComponent, eTextTemplateManagementComponents, textTemplateManagementGuard} from '@volo/abp.ng.text-template-management';
const routes: Routes = [
.....
{
path: 'text-template-management',
children: [
{ path: '', redirectTo: 'text-templates', pathMatch: 'full' },
{
path: 'text-templates',
component: RouterOutletComponent,
canActivate: [authGuard, permissionGuard, textTemplateManagementGuard],
resolve: [textTemplateManagementExtensionsResolver],
children: [
{
path: '',
component: ReplaceableRouteContainerComponent,
data: {
requiredPolicy: 'TextTemplateManagement.TextTemplates',
replaceableComponent: {
key: eTextTemplateManagementComponents.TextTemplates,
defaultComponent: TextTemplatesComponent,
} as ReplaceableComponents.RouteData<TextTemplatesComponent>,
},
},
{
path: 'contents',
component: RouterOutletComponent,
canActivate: [permissionGuard],
data: { requiredPolicy: 'TextTemplateManagement.TextTemplates.EditContents' },
children: [
{
path: 'inline/:name',
component: ReplaceableRouteContainerComponent,
data: {
replaceableComponent: {
key: eTextTemplateManagementComponents.InlineTemplateContent,
defaultComponent: InlineTemplateContentComponent,
} as ReplaceableComponents.RouteData<InlineTemplateContentComponent>,
},
},
{
path: ':name',
component: ReplaceableRouteContainerComponent,
data: {
replaceableComponent: {
key: eTextTemplateManagementComponents.TemplateContents,
defaultComponent: TemplateContentsComponent,
} as ReplaceableComponents.RouteData<TemplateContentsComponent>,
},
},
],
},
]
},
]
},
.....
]
Hi,
My email is shiwei.liang@volosoft.com
If I misunderstand something, please let me know.