Activities of "scott7106"

As a follow up, I made a couple of changes to the Swagger application configuration and it now works. I am not sure why this change removed the windows authentication prompt, but the result now matches the user experience we had with identity server.

I changed the client type to confidential and added a configuration variable to set the secret. With this in place, things now work just like they did in 5.x for me.

  • ABP Framework version: v6.0.0_rc.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

Trying to authorize from the Swagger UI is giving errors which I have not seen before. If I launch the angular project and login, I can eventually get the swagger UI to authenticate but only because I am already logged in.

This is the first error I received.

This is the second issue I encountered. Notice the windows login prompt for accessing the site. If I am already logged in via Angular, I can hit cancel on this and I have access to the authorized endpoints. However, nothing I enter in the prompted authentication works so far.

Is there a workaround prior to RC2?

I noticed a second issue after I opened the dotnet solution. Even though I specified the option "none" for mobile. It still created a .NET MAUI project in the solution.

  • ABP Framework version: v6.0.0-rc.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

I ran the following command after installing the v6.0.0-rc.1 version of the CLI abp new Anlar.Everest -t app-pro -u angular -m none --preview

Once this ran, the following error occurred when running yarn in the Host project.

Here is a screenshot of the settings.

Upgrading the alerts module resolved the issue for me. Thanks for your help.

Interesting. This is an embedded module we use for generating user alerts. This is a different error from what I am seeing which points to the Volo.Abp.Identity.AbpIdentityDomainModule. Did you change something to get the different error? Or is that the initial error you received?

Let me upgrade the module to 5.3.2 and subsequently AutoMapper 11 and see what happens. For what it is worth, here is the AutoMapper code from that module.

using AutoMapper;
using Volo.Abp.AutoMapper;
using OtisEd.Alerts.Messages;

namespace OtisEd.Alerts;

public class AlertsApplicationAutoMapperProfile : Profile
{
    public AlertsApplicationAutoMapperProfile()
    {
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */
        CreateMap< MessageCreateDto, AlertMessage >()
            .IgnoreAuditedObjectProperties()
            .Ignore(x => x.Id)
            .Ignore(x => x.TenantId)
            .ForMember(dest => dest.IsRead, opt => opt.MapFrom(x => false));
        CreateMap< AlertMessage, MessageDto >();
    }
}

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v5.3.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Generated a new project Acme.BookStore using Suite Created an enum for BookType in Domain.Shared Created a new entity "Book" with the generate unit and integration tests checked

The unit tests are missing after the process completes and the following entries are in the suite log file (complete log below). 2022-07-14 10:13:45.569 -04:00 [INF] 8/10 - UnitTestCommandCommand started... 2022-07-14 10:13:45.571 -04:00 [WRN] Cannot find DataSeedContributor so skipping data seeding step! 2022-07-14 10:13:45.571 -04:00 [WRN] Cannot find ApplicationTestFile so skipping application test generation! 2022-07-14 10:13:45.571 -04:00 [WRN] Cannot find RepositoryTestFile so skipping repository test generation! 2022-07-14 10:13:45.571 -04:00 [INF] 8/10 - UnitTestCommandCommand completed. | Duration: 1 ms.

2022-07-14 10:13:31.300 -04:00 [INF] Request starting HTTP/1.1 POST http://localhost:3000/api/abpSuite/crudPageGenerator/e568bef1-65ef-404f-9c2b-041dc0cbf140/save-and-generate-entity application/json 1797
2022-07-14 10:13:31.302 -04:00 [INF] Executing endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite)'
2022-07-14 10:13:31.305 -04:00 [INF] Route matched with {controller = "crudPageGenerator", action = "SaveAndGenerateEntity", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.NoContentResult] SaveAndGenerateEntityAsync(System.Guid, Volo.Abp.Suite.Models.EntityModel) on controller Volo.Abp.Suite.Controllers.CrudPageGeneratorController (Volo.Abp.Suite).
2022-07-14 10:13:42.853 -04:00 [INF] 
=== ENTITY GENERATION STARTED === 
* SOLUTION: Acme.BookStore
* ENTITY:{
  "Id": "d9027e3d-00c8-4f37-87bd-a99924411ac7",
  "Name": "Book",
  "OriginalName": "Book",
  "NamePlural": "Books",
  "DatabaseTableName": "Books",
  "Namespace": "Books",
  "BaseClass": "FullAuditedEntity",
  "PrimaryKeyType": "int",
  "IsMultiTenant": true,
  "CheckConcurrency": false,
  "ShouldCreateUserInterface": true,
  "ShouldCreateBackend": true,
  "ShouldAddMigration": true,
  "ShouldUpdateDatabase": false,
  "CreateTests": true,
  "Properties": [
    {
      "Id": "05a673ec-b8b5-4681-9e62-b38c4261d095",
      "Name": "Name",
      "Type": "string",
      "EnumType": "",
      "EnumNamespace": "",
      "EnumAngularImport": "shared/enums",
      "EnumFilePath": null,
      "IsNullable": false,
      "IsRequired": true,
      "MinLength": 1,
      "MaxLength": 150,
      "SortOrder": 1,
      "SortType": 1,
      "Regex": "",
      "EmailValidation": false,
      "EnumValues": null,
      "IsSelected": true,
      "OrdinalIndex": 0
    },
    {
      "Id": "1ba02516-f18c-44dd-973e-0edc9c5247d6",
      "Name": "Type",
      "Type": "enum",
      "EnumType": "BookType",
      "EnumNamespace": "Acme.BookStore.Books",
      "EnumAngularImport": "shared/enums/book-type",
      "EnumFilePath": "/src/Acme.BookStore.Domain.Shared/Books/BookType.cs",
      "IsNullable": false,
      "IsRequired": false,
      "MinLength": null,
      "MaxLength": null,
      "SortOrder": 0,
      "SortType": 0,
      "Regex": "",
      "EmailValidation": false,
      "EnumValues": {
        "Undefined": null,
        "Adventure": null,
        "Biography": null,
        "Dystopia": null,
        "Fantastic": null,
        "Horror": null,
        "Science": null,
        "ScienceFiction": null,
        "Poetry": null
      },
      "IsSelected": true,
      "OrdinalIndex": 0
    },
    {
      "Id": "4e048e30-9e46-462b-bc87-41c986bfad91",
      "Name": "PublishDate",
      "Type": "DateTime",
      "EnumType": "",
      "EnumNamespace": "",
      "EnumAngularImport": "shared/enums",
      "EnumFilePath": null,
      "IsNullable": false,
      "IsRequired": false,
      "MinLength": null,
      "MaxLength": null,
      "SortOrder": 0,
      "SortType": 0,
      "Regex": "",
      "EmailValidation": false,
      "EnumValues": null,
      "IsSelected": true,
      "OrdinalIndex": 0
    },
    {
      "Id": "88b73a17-ec1f-480c-a080-ffa7fb0e74c2",
      "Name": "Price",
      "Type": "float",
      "EnumType": "",
      "EnumNamespace": "",
      "EnumAngularImport": "shared/enums",
      "EnumFilePath": null,
      "IsNullable": false,
      "IsRequired": false,
      "MinLength": null,
      "MaxLength": null,
      "SortOrder": 0,
      "SortType": 0,
      "Regex": "",
      "EmailValidation": false,
      "EnumValues": null,
      "IsSelected": true,
      "OrdinalIndex": 0
    }
  ],
  "NavigationProperties": [],
  "NavigationConnections": [],
  "PhysicalFileName": "Book.json"
}

2022-07-14 10:13:42.853 -04:00 [INF] 1/10 - EntityGenerateCommand started...
2022-07-14 10:13:45.072 -04:00 [INF] 1/10 - EntityGenerateCommand completed.                           | Duration: 2217 ms.
2022-07-14 10:13:45.072 -04:00 [INF] 2/10 - RepositoryCommand started...
2022-07-14 10:13:45.247 -04:00 [INF] 2/10 - RepositoryCommand completed.                               | Duration: 174 ms.
2022-07-14 10:13:45.247 -04:00 [INF] 3/10 - ManagerCommand started...
2022-07-14 10:13:45.272 -04:00 [INF] 3/10 - ManagerCommand completed.                                  | Duration: 25 ms.
2022-07-14 10:13:45.272 -04:00 [INF] 4/10 - AppServiceCommand started...
2022-07-14 10:13:45.475 -04:00 [INF] 4/10 - AppServiceCommand completed.                               | Duration: 202 ms.
2022-07-14 10:13:45.475 -04:00 [INF] 5/10 - ProxyControllerCommand started...
2022-07-14 10:13:45.500 -04:00 [INF] 5/10 - ProxyControllerCommand completed.                          | Duration: 24 ms.
2022-07-14 10:13:45.500 -04:00 [INF] 6/10 - PermissionCommand started...
2022-07-14 10:13:45.535 -04:00 [INF] 6/10 - PermissionCommand completed.                               | Duration: 34 ms.
2022-07-14 10:13:45.535 -04:00 [INF] 7/10 - ApplicationObjectMappingCommand started...
2022-07-14 10:13:45.569 -04:00 [INF] 7/10 - ApplicationObjectMappingCommand completed.                 | Duration: 34 ms.
2022-07-14 10:13:45.569 -04:00 [INF] 8/10 - UnitTestCommandCommand started...
2022-07-14 10:13:45.571 -04:00 [WRN] Cannot find DataSeedContributor so skipping data seeding step!
2022-07-14 10:13:45.571 -04:00 [WRN] Cannot find ApplicationTestFile so skipping application test generation!
2022-07-14 10:13:45.571 -04:00 [WRN] Cannot find RepositoryTestFile so skipping repository test generation!
2022-07-14 10:13:45.571 -04:00 [INF] 8/10 - UnitTestCommandCommand completed.                          | Duration: 1 ms.
2022-07-14 10:13:45.571 -04:00 [INF] 9/10 - AngularUiGenerateWithSchematicsCommand started...
2022-07-14 10:14:16.900 -04:00 [INF] Running the Angular Schematics command:
node run-schematics.mjs "c:/appdev/test/Acme.BookStore/angular/.suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" app-pro Acme.BookStore "c:/appdev/test/Acme.BookStore/aspnet-core/.suite/entities/Book.json" "c:/appdev/test/Acme.BookStore/angular" 
2022-07-14 10:14:22.924 -04:00 [INF] Angular Schematics command executed successfully.
CREATE src/app/books/book/providers/book-route.provider.ts (545 bytes)
CREATE src/app/books/book/book-routing.module.ts (468 bytes)
CREATE src/app/books/book/book.module.ts (848 bytes)
CREATE src/app/books/book/components/book.component.html (12150 bytes)
CREATE src/app/books/book/components/book.component.ts (3248 bytes)
CREATE src/app/proxy/generate-proxy.json (26502 bytes)
CREATE src/app/proxy/books/book.service.ts (1646 bytes)
CREATE src/app/proxy/books/models.ts (773 bytes)
CREATE src/app/proxy/books/book-type.enum.ts (290 bytes)
CREATE src/app/proxy/books/index.ts (92 bytes)
CREATE src/app/proxy/index.ts (52 bytes)
UPDATE src/app/app-routing.module.ts (2044 bytes)
UPDATE src/app/app.module.ts (2657 bytes)

2022-07-14 10:14:22.939 -04:00 [INF] 9/10 - AngularUiGenerateWithSchematicsCommand completed.          | Duration: 37367 ms.
2022-07-14 10:14:22.939 -04:00 [INF] 10/10 - DbMigrationCommand started...
2022-07-14 10:14:22.940 -04:00 [INF] Adding new migration...
2022-07-14 10:14:22.940 -04:00 [INF] cd /d "c:\appdev\test\Acme.BookStore\aspnet-core\src\Acme.BookStore.EntityFrameworkCore" && dotnet ef migrations add Added_Book --startup-project ../Acme.BookStore.HttpApi.Host --output-dir Migrations --context BookStoreDbContext
2022-07-14 10:14:48.510 -04:00 [INF] Build started...
Build succeeded.
The Entity Framework tools version '6.0.0' is older than that of the runtime '6.0.5'. Update the tools for the latest features and bug fixes. See https://aka.ms/AAc1fbw for more information.
[10:14:44 INF] Starting Acme.BookStore.HttpApi.Host.
[10:14:46 FTL] Host terminated unexpectedly!
Microsoft.Extensions.Hosting.HostFactoryResolver+HostingListener+StopTheHostException: Exception of type 'Microsoft.Extensions.Hosting.HostFactoryResolver+HostingListener+StopTheHostException' was thrown.
   at Microsoft.Extensions.Hosting.HostFactoryResolver.HostingListener.OnNext(KeyValuePair`2 value)
   at System.Diagnostics.DiagnosticListener.Write(String name, Object value)
   at Microsoft.Extensions.Hosting.HostBuilder.Build()
   at Microsoft.AspNetCore.Builder.WebApplicationBuilder.Build()
   at Acme.BookStore.Program.Main(String[] args) in c:\AppDev\Test\Acme.BookStore\aspnet-core\src\Acme.BookStore.HttpApi.Host\Program.cs:line 37
Done. To undo this action, use 'ef migrations remove'

2022-07-14 10:14:48.510 -04:00 [INF] Successfully added migration.
2022-07-14 10:14:48.511 -04:00 [INF] 10/10 - DbMigrationCommand completed.                              | Duration: 25572 ms.
2022-07-14 10:14:48.511 -04:00 [INF] Entity generation completed in 66 sec.
2022-07-14 10:14:48.516 -04:00 [INF] Executing StatusCodeResult, setting HTTP status code 204
2022-07-14 10:14:48.516 -04:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite) in 77211.2944ms
2022-07-14 10:14:48.516 -04:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.SaveAndGenerateEntityAsync (Volo.Abp.Suite)'
2022-07-14 10:14:48.516 -04:00 [INF] Request finished HTTP/1.1 POST http://localhost:3000/api/abpSuite/crudPageGenerator/e568bef1-65ef-404f-9c2b-041dc0cbf140/save-and-generate-entity application/json 1797 - 204 - - 77216.0402ms
2022-07-14 10:14:48.584 -04:00 [INF] Request starting HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/e568bef1-65ef-404f-9c2b-041dc0cbf140/entities application/json -
2022-07-14 10:14:48.584 -04:00 [INF] Executing endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite)'
2022-07-14 10:14:48.584 -04:00 [INF] Route matched with {controller = "crudPageGenerator", action = "GetEntities", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Volo.Abp.Suite.Models.EntityModel]] GetEntitiesAsync(System.Guid) on controller Volo.Abp.Suite.Controllers.CrudPageGeneratorController (Volo.Abp.Suite).
2022-07-14 10:14:48.609 -04:00 [INF] Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Volo.Abp.Suite.Models.EntityModel, Volo.Abp.Suite, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]]'.
2022-07-14 10:14:48.621 -04:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite) in 36.8849ms
2022-07-14 10:14:48.622 -04:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntitiesAsync (Volo.Abp.Suite)'
2022-07-14 10:14:48.622 -04:00 [INF] Request finished HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/e568bef1-65ef-404f-9c2b-041dc0cbf140/entities application/json - - 200 - application/json;+charset=utf-8 37.5436ms
2022-07-14 10:14:48.664 -04:00 [INF] Request starting HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/e568bef1-65ef-404f-9c2b-041dc0cbf140/Book application/json -
2022-07-14 10:14:48.664 -04:00 [INF] Executing endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntityAsync (Volo.Abp.Suite)'
2022-07-14 10:14:48.673 -04:00 [INF] Route matched with {controller = "crudPageGenerator", action = "GetEntity", area = "", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.Suite.Models.EntityModel] GetEntityAsync(System.Guid, System.String) on controller Volo.Abp.Suite.Controllers.CrudPageGeneratorController (Volo.Abp.Suite).
2022-07-14 10:14:48.682 -04:00 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.Suite.Models.EntityModel'.
2022-07-14 10:14:48.683 -04:00 [INF] Executed action Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntityAsync (Volo.Abp.Suite) in 10.2872ms
2022-07-14 10:14:48.683 -04:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.CrudPageGeneratorController.GetEntityAsync (Volo.Abp.Suite)'
2022-07-14 10:14:48.684 -04:00 [INF] Request finished HTTP/1.1 GET http://localhost:3000/api/abpSuite/crudPageGenerator/e568bef1-65ef-404f-9c2b-041dc0cbf140/Book application/json - - 200 - application/json;+charset=utf-8 19.6811ms
2022-07-14 10:14:55.618 -04:00 [INF] Executed endpoint '/notification-hub'
2022-07-14 10:14:55.618 -04:00 [INF] Request finished HTTP/1.1 GET http://localhost:3000/notification-hub?id=GYJTvTGhALK8gDD9DktNHA - - - 101 - - 357709.3731ms

We are using the standard application template with Angular UI and all application services (and their associated tests) fail with what I think is the same issue.

I upgraded all Nuget package references to v5.3.2 and all NPM package references for Angular to 5.3.2 from 5.2.1. After the upgrade, all application unit tests fail with the message below.

EDIT: I can comment out all of mapping defined in my project and I still get this error.

Message: 
Volo.Abp.AbpInitializationException : An error occurred during the initialize Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor phase of the module OtisEd.Zipline.ZiplineTestBaseModule, OtisEd.Zipline.TestBase, Version=0.1.1.0, Culture=neutral, PublicKeyToken=null: An exception was thrown while activating Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.Identity.AbpIdentityDomainModule, Volo.Abp.Identity.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.Identity.AbpIdentityDomainModule, Volo.Abp.Identity.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor.. See the inner exception for details.
---- Autofac.Core.DependencyResolutionException : An exception was thrown while activating Volo.Abp.ObjectMapping.DefaultObjectMapper`1[[Volo.Abp.Identity.AbpIdentityDomainModule, Volo.Abp.Identity.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider`1[[Volo.Abp.Identity.AbpIdentityDomainModule, Volo.Abp.Identity.Domain, Version=5.3.2.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor.
-------- System.Reflection.TargetInvocationException : Exception has been thrown by the target of an invocation.
------------ System.MissingMethodException : Method not found: 'Void AutoMapper.IMemberConfigurationExpression`3.MapFrom(System.Linq.Expressions.Expression`1<System.Func`2<!0,!!0>>)'.

I am having the same issue trying to build an application with the 5.2.1 packages. Looking at the NuGet repository does not show any VoloSoft packages.

Showing 31 to 40 of 91 entries
Made with ❤️ on ABP v9.1.0-rc.1. Updated on January 17, 2025, 14:13