Activities of "tony.gayter"

So I tested this out on a straight project from scratch.

In Abp Suite I created an entity with a name property called 'Card', I then created another Entity called 'Bank' and again gave it the property of name. I set up Bank as a navigation property of Card. This works all good. I can create some Bank types, and then when i create a Card I have the banks in a drop down selector.

However, If i create a new entity which is a child of Card (something like CardVariant), and then try to view the Card page it blows up on mapping with navigation property.

Same thing If go the other way around, Create a Card, and a CardVariant child and its all good, it shows the page with the sub entity drop down in the table. But then if you add the Bank as a navigation property it blows up on mapping again.

Here is my solution config

  • Template: app
  • Created ABP Studio Version: 2.1.3
  • Current ABP Studio Version: 2.1.3
  • Tiered: No
  • Multi-Tenancy: No
  • UI Framework: blazor-server
  • Theme: leptonx
  • Theme Style: system
  • Theme Menu Placement: side
  • Run Install Libs: No
  • Database Provider: ef
  • Database Management System: sqlserver
  • Separate Tenant Schema: No
  • Mobile Framework: none
  • Public Website: No
  • Social Login: No
  • Include Tests: No
  • Kubernetes Configuration: No
  • Distributed Event Bus: none
  • Use Local References: No
  • Selected Languages: English
  • Default Language: English
  • Create Command: abp new PropTest -t app --ui-framework blazor-server --database-provider ef --database-management-system sqlserver --theme leptonx --skip-migration --skip-migrator --no-tests --without-cms-kit --dont-run-install-libs --dont-run-bundling --no-multi-tenancy --no-social-logins -no-gdpr -no-openiddict-admin-ui -no-audit-logging -no-file-management -no-language-management -no-text-template-management

Exception System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=PropTest.Application StackTrace: at PropTest.MainWithNavigationPropertiesToMainWithNavigationPropertiesDtoMapper.MapToListOfChildOfMainDto(ICollection`1 source) in C:\Dev\Code\Temp\PropTest\src\PropTest.Application\obj\Debug\net10.0\Riok.Mapperly\Riok.Mapperly.MapperGenerator\MainWithNavigationPropertiesToMainWithNavigationPropertiesDtoMapper.g.cs:line 89

Question

Im finding the documentation to be really lacking in a lot of areas which is a shame. Something as simple as showing/hiding things seems to either be missing or impossible to find.

I want to use the boxed layout, and the light style. Ive managed to force the light style like this, but I cant see any options to force boxed layout. I dont need it to be selectable in the app. not do i need any of the options drop down menus or the breadcrumb area but I seem to be forced to use them or have to figure out how to override templates. Surely there should just be an option to hide the bread crumb, or fix the layout?

private void ConfigureTheme()
 {
     Configure<LeptonXThemeOptions>(options =>
     {
         options.DefaultStyle = LeptonXStyleNames.Light;
         options.Styles.Remove(LeptonXStyleNames.Dark);
         options.Styles.Remove(LeptonXStyleNames.System);
         options.Styles.Remove(LeptonXStyleNames.Dim);
     });

     Configure<LeptonXThemeMvcOptions>(options =>
     {
         options.ApplicationLayout = LeptonXMvcLayouts.TopMenu;
     });

     Configure<LeptonXThemeBlazorOptions>(options =>
     {
         options.Layout = LeptonXBlazorLayouts.TopMenu;      

     });
 }

Recently been getting the message along the bottom of my application saying I was using the free version, so went through the docs and found how to get the key from them. However there is no guidance on how to actually register it, I've tried the following 2 ways to register in my Blazor Server project but after cleaning and rebuilding I'm still getting the message saying I'm using the free version?

private void ConfigureBlazorise(ServiceConfigurationContext context)
{

    // tried adding this way
    context.Services
        .AddBlazorise(options =>
        {
            options.Immediate = true;
            options.ProductToken = "<token here>";
        })
        .AddBootstrap5Providers()
        .AddFontAwesomeIcons();

    // Also tried this
    Configure<BlazoriseOptions>(options =>
    {
        options.ProductToken = "<token here>";
        options.Immediate = true;
    });
}

Fairly straight forward, the DB migrator runs fine if I remove all the hangfire related code (the depends on and initialization bits). But if I add them back in I get the following

InvalidOperationException: Current JobStorage instance has not been initialized yet. You must set it before using Hangfire Client or Server API. For .NET Core applications please call the IServiceCollection.AddHangfire extension method from Hangfire.NetCore or Hangfire.AspNetCore package depending on your application type when configuring the services and ensure service-based APIs are used instead of static ones, like IBackgroundJobClient instead of BackgroundJob and IRecurringJobManager instead of RecurringJob.

Ive configured hangfire to use a seperate DB in case that was the issue but it didnt help. And hangfire is setup as standard with the SqlServer package.

I dont want to have to effectivly uninstall hangfire everytime I need to update the db (which is a lot during developement)

Showing 1 to 4 of 4 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.