Open Closed

Bugs & Issues v4.1.X #626


User avatar
0
alper created
Support Team Director

Production release of version 4.0.0 has been released on 2020-12-03 Use the below command to update both ABP CLI and ABP Suite

dotnet tool update -g Volo.Abp.Cli && abp suite update
  • Framework Release notes: https://docs.abp.io/en/commercial/latest/release-notes#4-0-0-2020-11-26
  • Commercial Release notes: https://docs.abp.io/en/commercial/latest/release-notes
  • Blog post https://blog.abp.io/abp/ABP.IO-Platform-v4.0-RC-Has-Been-Released-based-on-.NET-5.0
  • Migration guides https://docs.abp.io/en/abp/latest/Migration-Guides/Index

Migration guide from 3x to 4x => https://docs.abp.io/en/abp/latest/Migration-Guides/Abp-4_0


108 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    @bqabani we'll check that. there's 4.1.0-rc.2 , meantime you can test it in the latest RC.


    @willignicolas@gmail.com, assign values to your enum. this is best practise and Suite supports this.

    enum eTest {
      None = 1,
      Standard = 2,
      Anonymous = 3,
    }
    

    @jackmcelhinney can you try this; I guess there's async-await issue.

    [UnitOfWork(IsDisabled = true)]
    [HttpGet]
    [Route("test/{id}")]
    public virtual Task<WorkItemDto> ExampleGetAsync(Guid id)
    {
        return await _workItemAppService.ExampleGetAsync(id);
    }
    
    [UnitOfWork(IsDisabled = true)]
    [AllowAnonymous]
    public virtual async Task<WorkItemDto> ExampleGetAsync(Guid id)
    {
        var test = await _workItemRepository.Where(w => w.Id == id).FirstOrDefaultAsync(); //<<-- Error thrown here
    
        return ObjectMapper.Map<WorkItem, WorkItemDto>(test);
    }
    
  • User Avatar
    0
    armanozak created

    Hi @bqabani,

    This sometimes happens when you have multiple versions of same package installed (due to updating an existing project).

    Could you please try the following steps:

    • Remove node_modules folder
    • Remove yarn.lock (or package-lock.json)
    • Check if all volo and abp packages are v4.0.2 in package.json
    • Re-install all packages

    Thanks.

  • User Avatar
    0
    willignicolas@gmail.com created

    Thanks @alper, we will do that. And for the parsing error when there is comment on enum value ?

  • User Avatar
    0
    jackmcelhinney created

    Thanks @alper. Unfortunately, the same error is still thrown after using FirstOrDefaultAsync(). Let me know if you have any other ideas I could try.

  • User Avatar
    0
    alper created
    Support Team Director

    @jackmcelhinney I adviced you 2 things; one of them is using Async method and one is adding await to ExampleGetAsync

  • User Avatar
    0
    alper created
    Support Team Director

    willignicolas@gmail.com:

    Thanks @alper, we will do that. And for the parsing error when there is comment on enum value ?

    that's not supported. but you can temporarily remove comments before the code generation. then add it again after it completes.

  • User Avatar
    0
    jackmcelhinney created

    @alper I should have clarifed. I made both of these changes based on the code you suggested. It produces the same error.

  • User Avatar
    0
    alper created
    Support Team Director

    @jackmcelhinney sorry but I couldn't reproduce your problem. see my step by step test

  • User Avatar
    0
    jackmcelhinney created

    Hi @alper. I mentioned on my original comment that using the built in repository methods like GetAsync(id) are working properly for me as well. The error is only thrown when querying the repository with a LINQ operator like Where(). While my example code for reproducing the issue could be replaced with GetAsync(id), our actual code where we are disabling the UOW has much more complicated queries that cannot be replaced with the repository method. These queries were working before upgrading to 4.0.2 and no other changes have been made.

    To reproduce the issue, please try replacing the line in WorkItemAppService.cs with this:

    return ObjectMapper.Map<WorkItem, WorkItemDto>(await _workItemRepository.Where(w => w.Id == id).FirstOrDefaultAsync());

    Thank you for your help trying to sort this out.

  • User Avatar
    0
    alper created
    Support Team Director

    @jackmcelhinney see => https://support.abp.io/QA/Questions/740/ObjectDisposedException-when-UnitOfWork-disable

  • User Avatar
    0
    willignicolas@gmail.com created

    Hello,

    "Program" is not a C # reserved keyword and yet when you want to use an entity with this name as an association on another entity the Program.cs file is not listed. However, the creation of the "Program" entity went very well.

    Erratum: It's only related on the filename "Program.cs" If I rename it to "ProgramTest.cs" all is working well.

    Nicolas.

  • User Avatar
    0
    alper created
    Support Team Director

    Hello,

    "Program" is not a C # reserved keyword and yet when you want to use an entity with this name as an association on another entity the Program.cs file is not listed. However, the creation of the "Program" entity went very well.

    Erratum: It's only related on the filename "Program.cs" If I rename it to "ProgramTest.cs" all is working well.

    Nicolas.

    @willignicolas yes it's not a C# reserved keyword but Suite automatic class finder filters it because it's interferring with program.cs in host projects. Also it may break namespaces as there's an existing Program class. I created an internal ticket for that to be able to use Program keyword. I myself had the same situation while creating Program in a School portal. It's being problem with dotnet Program classes (not related to ABP) so I used SchoolProgram. But if you insist on this name, there's a work around. Choose any other class (eg: AppUser) then save it without generating. After, go to aspnet-core\.suite\entities folder and find your entity.json. You'll see the file paths and other properties for the navigation property. Update them and go back to Suite. Refresh it and click save and generate.

  • User Avatar
    0
    gvnuysal created

    Hi support, I updated the Abp Suite with the new version.

    After logging in to the Suite

    Then when I run suite, I get the error in the picture.

  • User Avatar
    0
    info@sebit.si created

    Hi.

    I have same problem when start DBMigrator. I can login to commercial portal, but cannot ABP login using CLI (ABP LOGIN)

  • User Avatar
    1
    developer1 created

    Hi Alper, @alper

    Template

    Frontend.Mvc.Page.Partials.editcshtml_cs_LookupDropdownOnGet.txt
    

    is wrong.

    %%np-entity-name%%LookupList.AddRange((
                            await _%%entity-name-camelcase%%AppService.Get%%np-entity-name%%LookupAsync(new LookupRequestDto 
                            { xxxxxx
                                MaxResultCount = LimitedResultRequestDto.MaxMaxResultCount 
                            })).Items.Select(t => new SelectListItem(t.DisplayName, t.Id.ToString())).ToList()
                );
    

    This is just to simple. You cannot release this as stable to paying customers.

    I have seen other critical responses here. I also feel like I'm a tester. In last version, lookup dropdown did not work at all. I have been patiant. But you cannot ask this from paying customers.

    I dare you to present me an example of an Angular/EF project created with generate-proxy / suite. I never got it towork in the last months.

    This should realy get better Alper. My advise: maintain stable versions, like Telerik does. Now you solve one and create the next issue.

    Erik

  • User Avatar
    0
    alper created
    Support Team Director

    if you get "You are not granted permission to ....." then means your token has been expired. Try to login again.

  • User Avatar
    0
    alper created
    Support Team Director

    @developer1 thanks for your feedback. yoru reported issue has been already fixed in 4.1.1.

    there are 3 database providers (EF Core, MongoDB, Dapper) * 3 Front-Ends (Angular, MVC, Blazor) * Tier/Seperated IDS4 structures. Maybe you are working on one project type, but there these different projects ( cartesian of these options ) it's hard to test all the variants.

    On the other hand, the team is setting up a UI testing devops line now with Playwright We are very close to finish this testing environment. We'll be testing different variants of ABP after each preview. So I hope these issues will be less or zero. Thank you for your understanding.

  • User Avatar
    0
    jackmcelhinney created

    Hello! Two small bugs to report (Angular UI ABP v4.0.2).

    1. The My security logs page is missing a Return to Application link like the Manage your profile page has. So there is no way to return without using the browser back button.
    2. When editing permissions for a role or user, "Identity Management" is misspelled as "Idetity"

  • User Avatar
    0
    alper created
    Support Team Director

    @jackmcelhinney will be fixed in the next version.

  • User Avatar
    0
    murat.yuceer created

    Hello, In commercial document 4.1, when i try to download Easy Crm source code from https://abp.io/api/download/samples/easy-crm

    its throw error like that

  • User Avatar
    0
    dmeagor created

    Multiple errors in the 4.1 suite still.

    Updating nuget packages - Suite
    • Upgrading nuget packages from 4.0.2 to 4.1.0 returns a message saying it successfully updated to 4.0.2, which is the old version and nothing gets changed. If I run the abp update from the powershell it works just fine.
    New module creation - Suite
    • new modules are added but then because they do not have a "host" section the suite fails to work with them any longer.
    • No way to use crud with new modules
    • source is not added for new modules to parent solution, only the project references so there is no way to run them without manually adding the project source into the solution (since the modules do not have the hosts project.
    angular proxy multiple issues reported by my developers.
    • This is just in an early alpha state and needs work.

    Looking at your roadmap I think you could do with a period of feature freeze to get things working properly before attempting new features. As far as developing a billing and invoicing system is concerned, you would be absolutely insaine to try and develop something so complex which has to be entirelly bug free since it's dealing with peoples taxes. You can't do a "basic version" as it either compliant or not. That means EU/UK VAT proof of supply regulations, VEIS verification, US sale tax calculations or Taxjar plugins, API sync to accounting software.

    Please, slow down!

  • User Avatar
    0
    alper created
    Support Team Director

    @dmeagor

    Updating nuget packages - Suite

    1-Created a new project with version 4.0.2

    2-Clicked "Update all ABP packages"

    3-I see the versions are updated to 4.1.0

    check that you have both CLI and Suite updated to 4.1.0. otherwise I don't see a reason not updating to 4.1.0 :/


    New module creation - Suite I reproduced this issue. created an issue. will be fixed in 4.1.1. for a workaround use the CLI. it'll create the host folder. then you can add this module to your solution (or just move the host folder)

    abp new Acme.MyProModule -t module-pro
    

    angular proxy multiple issues reported by my developers. can you provide a concrete issue so that I can report to the team?

    Please, slow down! thanks for your suggestion ;)

  • User Avatar
    0
    alper created
    Support Team Director

    @murat.yuceer

    This is fixed. First login to abp.io and then download sample https://abp.io/api/download/samples/easy-crm

  • User Avatar
    0
    unlonlyness created

    The command get the same problem: 》 dotnet tool update -g Volo.Abp.Suite --add-source https://nuget.abp.io/&lt;MY-private-key>/v3/index.json

  • User Avatar
    0
    alper created
    Support Team Director

    @unlonlyness

    run the following commands :

    dotnet tool uninstall --global Volo.Abp.Cli 
    dotnet tool uninstall --global Volo.Abp.Suite
    dotnet tool install --global Volo.Abp.Cli
    abp suite install
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 18, 2024, 05:54