Activities of "alper"

Suite doesn't support n*n relationships. So if your target entity will use some other entities as navigation property like below, then you need to create Author and Publisher entities (you may not want to generate the UIs if you don't manage these from UI). Finally create book entity with Author and Publisher navigation properties.

Book.cs

  • AuthorId
  • PublisherId
Answer

ABP Framework version: v4.3.0 UI type: Angular
DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): Yes Steps to reproduce the issue: I just get source from ABP suite and build. It has this error

@edelivery couldn't understand what you get? is that a module?

Answer

With 4.3.0, the CMS-Kit public page controller not registered, cannot visit a page by slug from public site.

The error logs as below: 2021-04-10 15:30:18.186 +08:00 [INF] Executing endpoint 'Volo.CmsKit.Public.Pages.PagesPublicController.FindBySlugAsync (Volo.CmsKit.Public.HttpApi)' 2021-04-10 15:30:18.201 +08:00 [INF] Route matched with {area = "cms-kit", action = "FindBySlug", controller = "PagesPublic", page = ""}. Executing controller action with signature System.Threading.Tasks.Task1[Volo.CmsKit.Public.Pages.PageDto] FindBySlugAsync(System.String) on controller Volo.CmsKit.Public.Pages.PagesPublicController (Volo.CmsKit.Public.HttpApi). 2021-04-10 15:30:18.264 +08:00 [ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": {}, "validationErrors": null }

2021-04-10 15:30:18.265 +08:00 [ERR] The requested service 'Volo.CmsKit.Public.Pages.PagesPublicController' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency. Autofac.Core.Registration.ComponentNotRegisteredException: The requested service 'Volo.CmsKit.Public.Pages.PagesPublicController' has not been registered. To avoid this exception, either register a component to provide the service, check for service registration using IsRegistered(), or use the ResolveOptional() method to resolve an optional dependency.`

With 4.3.0, this bug still not be fixed, please fix it.

@trendline the issue can be tracked from https://github.com/abpframework/abp/issues/8841 the fix has been merged 3 days ago. so will come to the next patch release.

Answer

Hi support, After I updated suite, when I add a new property to the entity, I get the error in the picture.

@gvnuysal see https://support.abp.io/QA/Questions/671/ABP-Suite-throws-Cannot-read-the-template-VoloAbpCommercialSuiteTemplatesTemplatesXXXX

Answer

Hi

Why can I no longer create properties in Abp Suite of type Guid?

I'm sure this was supported in previous versions?

Thanks W

@wojt because none of the Blazorise components support Guid inputs.

Hi,

I have explained in details at https://support.abp.io/QA/Questions/1259/How-can-I-change-the-database-table-prefix

The table prefix change must be done in BookStoreEfCoreEntityExtensionMappings.cs file. All modules have static variables to be able to change the database table prefix. After changing the table prefix, you need to add a new migration and apply it to the database.

   OneTimeRunner.Run(() =>
    {
        string newDbTablePrefix = "Abc";
        AbpIdentityDbProperties.DbTablePrefix = newDbTablePrefix; //Identity
        AbpIdentityServerDbProperties.DbTablePrefix = newDbTablePrefix; //Identity Server
        AbpAuditLoggingDbProperties.DbTablePrefix = newDbTablePrefix; //Audit Logging
        FileManagementDbProperties.DbTablePrefix = newDbTablePrefix; //File Management
        LanguageManagementDbProperties.DbTablePrefix = newDbTablePrefix; //Language Management
        SaasDbProperties.DbTablePrefix = newDbTablePrefix; //SaaS
        TextTemplateManagementDbProperties.DbTablePrefix = newDbTablePrefix; //Text Template
        PaymentDbProperties.DbTablePrefix = newDbTablePrefix; //Payment
        AbpPermissionManagementDbProperties.DbTablePrefix = newDbTablePrefix; //Permission Management        
    });

See the location where you need to write this code

In the corresponding module document, you can see the static variable of the table prefix. Identity Module: File Management Module:


Add new migration to create the migration script

Answer

@scott7106 I've checked the issue and related Suite template will be updated in v4.31. For a workaround you can update your Suite template. Open Suite, go to Templates tab. Search for AppService.txt

Find the UpdateAsync line and add the autoSave: true argument.

%%entity-name-camelcase%% = await _%%entity-name-camelcase%%Repository.UpdateAsync(%%entity-name-camelcase%%, autoSave: true);

Answer

ABP Framework version: v4.3 UI type: Angular DB provider: EF Core Tiered (MVC) or Identity Server Separated (Angular): no

When we replace the account module with the source code we get the errors below in the angular project.

Error: ./src/main.ts Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Debug error: DtsModuleScopeResolver.read(AccountSettingsModule from E:/Development/abp/Version43/angular/projects/account/admin/src/account-settings.module.ts), but not a .d.ts file
at MetadataDtsModuleScopeResolver.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\dependency.js:52:23) at MetadataDtsModuleScopeResolver.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\dependency.js:100:46) at LocalModuleScopeRegistry.getExportedScope (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:529:51) at LocalModuleScopeRegistry.getScopeOfModuleReference (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:271:44) at LocalModuleScopeRegistry.getScopeOfModule (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:148:22) at LocalModuleScopeRegistry.getScopeForComponent (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:122:22) at ComponentDecoratorHandler.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\annotations\src\component.js:365:42) at TraitCompiler.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\transform\src\compilation.js:392:50) at NgCompiler.resolveCompilation (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\core\src\compiler.js:542:27) at NgCompiler.<anonymous> (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\core\src\compiler.js:423:34) at step (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:143:27) at Object.next (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:124:57) at fulfilled (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:114:62) at process._tickCallback (internal/process/next_tick.js:68:7)

Error: ./src/polyfills.ts Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Debug error: DtsModuleScopeResolver.read(AccountSettingsModule from E:/Development/abp/Version43/angular/projects/account/admin/src/account-settings.module.ts), but not a .d.ts file
at MetadataDtsModuleScopeResolver.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\dependency.js:52:23) at MetadataDtsModuleScopeResolver.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\dependency.js:100:46) at LocalModuleScopeRegistry.getExportedScope (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:529:51) at LocalModuleScopeRegistry.getScopeOfModuleReference (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:271:44) at LocalModuleScopeRegistry.getScopeOfModule (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:148:22) at LocalModuleScopeRegistry.getScopeForComponent (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:122:22) at ComponentDecoratorHandler.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\annotations\src\component.js:365:42) at TraitCompiler.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\transform\src\compilation.js:392:50) at NgCompiler.resolveCompilation (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\core\src\compiler.js:542:27) at NgCompiler.<anonymous> (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\core\src\compiler.js:423:34) at step (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:143:27) at Object.next (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:124:57) at fulfilled (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:114:62) at process._tickCallback (internal/process/next_tick.js:68:7)

Error: (webpack)-dev-server/client?http://0.0.0.0:0&sockPath=/sockjs-node Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Debug error: DtsModuleScopeResolver.read(AccountSettingsModule from E:/Development/abp/Version43/angular/projects/account/admin/src/account-settings.module.ts), but not a .d.ts file
at MetadataDtsModuleScopeResolver.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\dependency.js:52:23) at MetadataDtsModuleScopeResolver.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\dependency.js:100:46) at LocalModuleScopeRegistry.getExportedScope (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:529:51)39m at LocalModuleScopeRegistry.getScopeOfModuleReference (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:271:44) at LocalModuleScopeRegistry.getScopeOfModule (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:148:22) at LocalModuleScopeRegistry.getScopeForComponent (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\scope\src\local.js:122:22) at ComponentDecoratorHandler.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\annotations\src\component.js:365:42) at TraitCompiler.resolve (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\transform\src\compilation.js:392:50) at NgCompiler.resolveCompilation (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\core\src\compiler.js:542:27) at NgCompiler.<anonymous> (E:\Development\abp\Version43\angular\node_modules@angular\compiler-cli\src\ngtsc\core\src\compiler.js:423:34) at step (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:143:27) at Object.next (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:124:57) at fulfilled (E:\Development\abp\Version43\angular\node_modules\tslib\tslib.js:114:62) at process._tickCallback (internal/process/next_tick.js:68:7)

duplicate of https://support.abp.io/QA/Questions/1126#answer-4438182b-8955-8de1-60ff-39fc1869ff5d

Answer

here's the SetCsrfCookie. https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.Swashbuckle/Volo/Abp/Swashbuckle/AbpSwashbuckleController.cs

Showing 871 to 880 of 1868 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 19, 2024, 12:56