Activities of "liangshiwei"

Hi,

Ok, I think this may be a problem with IIS.

Is this working for you?

  • https://manage.accuwebhosting.com/knowledgebase/3414/How-to-setup-Access-Control-Allow-Origin-for-IIS-8-in-web-config.html

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.

Showing 2551 to 2560 of 6693 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on December 17, 2025, 07:08
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.