Activities of "sean.alford"

Answer

I'm receiving the error below after building and running a new ABP Suite 2.5.0 project. Note, I also experienced this issues in 2.4.0

Steps to Reproduce

  1. Create a new project using ABP Suite 2.5.0 or 2.4.0
  2. Build and Run DBMigrator application to deploy database.
  3. Build and Run Web application.

Problem HTTP Error 500.30 - ANCM In-Process Start Failure

Log File

2020-04-13 14:42:30.366 -04:00 [INF] Starting web host.
2020-04-13 14:42:33.465 -04:00 [FTL] Host terminated unexpectedly!
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=3.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.

Solution

  1. Add <i>Microsoft.EntityFrameworkCore</i> to the <i>Acme.Bookstore.EntityFrameworkCore.DbMigrations</i> project.
  2. Rebuild & Run Project.

I am using abp cli and abp suite version 2.6.2.0. As you can see in the domain project below, I followed Alper's instructions Volo.Abp.Commercial.SuiteTemplate.dll from #48. However, I am still receiving this error.

<i>NOTE:</i> I did not receive any errors when restoring NuGet packages.

Module - (Created with abp cli 2.6.2 while logged in)

abp new Eagle.Aery.Core -t module-pro

Answer

I am using abp cli and abp suite version 2.6.2.0. As you can see in the domain project below, I followed Alper's instructions Volo.Abp.Commercial.SuiteTemplate.dll from #48. However, I am still receiving this error.

<i>NOTE:</i> I did not receive any errors when restoring NuGet packages.

Module - (Created with abp cli 2.6.2 while logged in)

abp new Eagle.Aery.Core -t module-pro

Answer

I updated to ABP Suite 2.7.0.0 today. I get this error message when I click 'Save and generate'

NOTES:

  1. The project was originally created with ABP Suite 2.6.2.
  2. ABP Suite 2.7.0.0 Updated ABP Packages completed succfully.
  3. I also updated all of the NuGet packages manualy.

Answer

@Alper, sorry for the delay. I'm just getting started this morning. I'm getting ready to try it now.

Answer

@Alpher, that did not fix the problem.

Here's how I updated/reinstaled ABP Suite

  1. dotnet tool update -g Volo.Abp.Cli
  2. abp login username@domain.com -p ########
  3. abp suite update

Save and generate Result

I'm going to create a new project wiht abp suite 2.7.0.0 and try that next.

Answer

ABP Suite 2.7.0.0

node/yarn Versions

Create Solution

Result

Add Entity

Save and generate Result

Answer

@Alper, it is working now. I don't know why... I starting diggin into the suite logs to find more info for you and it just started working.

Overview

I'm building a simple Help Desk application that will allow us to manager our support tickets and assign them to users who's belong to the Support Technician role. The Ticket entity is pretty simple.

Ticket : FullAuditedAggregateRoot

Properties
  • Number (int) -> auto generated (read/only) identiy field
  • Issue (string)
  • Tags (string)
  • Solution (string)

Number Property Modifications

  1. After creating the Ticket entity with ABP Suite, I added .UseIdentityColumn(1000, 1); to the Ticket's auto generated context model located here: HelpDeskDbContextModelCreatingExtensions.cs
builder.Entity<Ticket>(b =>
{
    b.ToTable(HelpDeskConsts.DbTablePrefix + "Tickets", HelpDeskConsts.DbSchema);
    b.ConfigureByConvention();

    b.Property(x => x.TenantId).HasColumnName(nameof(Ticket.TenantId));
    b.Property(x => x.Number).HasColumnName(nameof(Ticket.Number)).UseIdentityColumn(1000, 1);
    b.Property(x => x.Tags).HasColumnName(nameof(Ticket.Tags));
    b.Property(x => x.Issue).HasColumnName(nameof(Ticket.Issue));
    b.Property(x => x.Solution).HasColumnName(nameof(Ticket.Solution));
});
  1. Next, I removed the Number field from the create UI, and set the Number field to read only on the edit UI. This all works fine! I was able to create a new Ticket, and sure enough the Number field was auto generated to 1000 as expected.

  1. After creating the Ticket, I then click Actions -> Edit, set the Solution to "Turn on RTU."

  1. Next I clicked Save

Error

I suspect this error is caused when the UpdateAsync(Id, Ticket) tries to update the Number identiy field.

Question # 1

How do I correct this issue? Note this also happens when I try to delete the ticket.

I'm assuming I need to modify the TicketAppService Update/Delete

[Authorize(HelpDeskPermissions.Tickets.Edit)]
public virtual async Task<TicketDto> UpdateAsync(Guid id, TicketUpdateDto input)
{
    var ticket = await _ticketRepository.GetAsync(id);
    ObjectMapper.Map(input, ticket);
    var updatedTicket = await _ticketRepository.UpdateAsync(ticket);
    return ObjectMapper.Map<Ticket, TicketDto>(updatedTicket);
}

Support Technication (Owner) Navigation Link

Where is the AppUserDto located?

@AndrewT

https://blog.abp.io/abp/ABP-Framework-v2_7_0-Has-Been-Released

https://github.com/abpframework/abp/releases/tag/2.7.0

Showing 1 to 10 of 57 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11