Please see the 4 issues below. I am aware that this is in a release candidate version, but I am concerned as some are fundamental and have been resolved by now.
Totally agree with #6. I raised this similar issue / suggestion: https://github.com/volosoft/lepton-theme/issues/4
Domain.{Entity}Manager.cs
Recently the Create and Update task was moved into the Manager.cs and this was a nice improvement. The Delete was not moved to the manager. It remains in the application layer.
I would like to see the Delete moved here as well.
Reasons include:
It is easy to replicate. Have you tried?
Just create a new Blazor Server project using ABP Suite.
Create a simple entity.
Add a record
Export. Fail.
I'll share via Google Drive later.
<ItemGroup> <PackageReference Include="AspNetCore.HealthChecks.UI" Version="6.0.1-rc2.4" /> <PackageReference Include="AspNetCore.HealthChecks.UI.Client" Version="6.0.1-rc2.4" /> <PackageReference Include="AspNetCore.HealthChecks.UI.InMemory.Storage" Version="6.0.1-rc2.4" /> <PackageReference Include="Serilog.AspNetCore" Version="4.0.0" /> <PackageReference Include="Serilog.Sinks.Async" Version="1.5.0" /> <PackageReference Include="Blazorise.Bootstrap5" Version="1.0.2" /> <PackageReference Include="Blazorise.Icons.FontAwesome" Version="1.0.2" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.Google" Version="6.0.0" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.MicrosoftAccount" Version="6.0.0" /> <PackageReference Include="Microsoft.AspNetCore.Authentication.Twitter" Version="6.0.0" /> <PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonXTheme" Version="1.0.0-beta.1" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="1.0.0-beta.1" /> </ItemGroup>
<ItemGroup> <ProjectReference Include="..\Cellero522.Application\Cellero522.Application.csproj" /> <ProjectReference Include="..\Cellero522.HttpApi\Cellero522.HttpApi.csproj" /> <ProjectReference Include="..\Cellero522.EntityFrameworkCore\Cellero522.EntityFrameworkCore.csproj" /> <PackageReference Include="Volo.Abp.Autofac" Version="5.2.2" /> <PackageReference Include="Volo.Abp.Swashbuckle" Version="5.2.2" /> <PackageReference Include="Volo.Abp.AspNetCore.Serilog" Version="5.2.2" /> <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton" Version="5.2.2" /> <PackageReference Include="Volo.Abp.AspNetCore.Components.Server.LeptonTheme" Version="5.2.2" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.IdentityServer" Version="5.2.2" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.Blazor.Server" Version="5.2.2" /> <PackageReference Include="Volo.Abp.Account.Pro.Admin.Blazor.Server" Version="5.2.2" /> <PackageReference Include="Volo.Abp.Account.Pro.Public.Web.Impersonation" Version="5.2.2" /> <PackageReference Include="Volo.Abp.AuditLogging.Blazor.Server" Version="5.2.2" /> <PackageReference Include="Volo.Abp.Identity.Pro.Blazor.Server" Version="5.2.2" /> <PackageReference Include="Volo.Abp.LeptonTheme.Management.Blazor.Server" Version="5.2.2" /> <PackageReference Include="Volo.Abp.IdentityServer.Blazor.Server" Version="5.2.2" /> <PackageReference Include="Volo.Abp.LanguageManagement.Blazor.Server" Version="5.2.2" /> <PackageReference Include="Volo.Saas.Host.Blazor.Server" Version="5.2.2" /> <PackageReference Include="Volo.Abp.TextTemplateManagement.Blazor.Server" Version="5.2.2" /> </ItemGroup>
I see 5.2.2 has been released and the LeptonX instructions have had some updates so I have tried again.
Instructions: https://docs.abp.io/en/commercial/5.3/themes/lepton-x/commercial/blazor?UI=BlazorServer
Updates still required on instructions:
I created a new Blazor Server 5.2.2 project using ABP Suite and followed the instructions for LeptonX, but still get this error:
Error: System.NullReferenceException: Object reference not set to an instance of an object. at Volo.Abp.AspNetCore.Components.Web.LeptonXTheme.Components.ApplicationLayout.SideMenu.Navigation.MobileNavbar.BuildRenderTree(RenderTreeBuilder __builder) at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder) at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
@malik.masis you offered to help solve this - yes please.
Since my original attempts, I've updated ABP Suite to 5.3.0-rc1 and tried again. I'm now getting a different issue. Here are the steps followed both on 5.3.0-rc1 and 5.2.1
Create fresh project using ABP Suite. V5.3.0-rc.1
Run DbMigrator, abp install-libs and then Blazor project to confirm running ok
NB: abp install-libs required as nothing exists in wwwrooot\libs folder
LeptonX Setup Following these instructions: https://docs.abp.io/en/commercial/5.3/themes/lepton-x/commercial/blazor?UI=BlazorServer
Modified add-package command to include version number: abp add-package Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX -v 1.0.0-beta.1
End of MVC instructions
Repeat commenting out of the MVC DependsOn as the step above reinstates:
Installation complete.
Run project and its broken:
Autofac.Core.DependencyResolutionException
HResult=0x80131500
Message=An exception was thrown while activating Volo.Abp.IdentityServer.Grants.PersistedGrantStore -> Volo.Abp.ObjectMapping.DefaultObjectMapper1[[Volo.Abp.IdentityServer.AbpIdentityServerDomainModule, Volo.Abp.IdentityServer.Domain, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null]] -> Volo.Abp.AutoMapper.AutoMapperAutoObjectMappingProvider
1[[Volo.Abp.IdentityServer.AbpIdentityServerDomainModule, Volo.Abp.IdentityServer.Domain, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null]] -> λ:Volo.Abp.AutoMapper.IMapperAccessor -> λ:Volo.Abp.AutoMapper.MapperAccessor.
Source=Autofac
StackTrace:
at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.RegistrationPipelineInvokeMiddleware.Execute(ResolveRequestContext context, Action
1 next)
at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt)
at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action1 next) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt) at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action
1 next)
at Autofac.Core.Resolving.Pipeline.ResolvePipelineBuilder.<>c__DisplayClass14_0.<BuildPipeline>b__1(ResolveRequestContext ctxt)
at Autofac.Core.Pipeline.ResolvePipeline.Invoke(ResolveRequestContext ctxt)
at Autofac.Core.Resolving.ResolveOperation.InvokePipeline(ResolveRequest request, DefaultResolveRequestContext requestContext)
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request)
at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request)
at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request)
at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance) at Autofac.ResolutionExtensions.ResolveOptionalService(IComponentContext context, Service service, IEnumerable
1 parameters)
at Autofac.ResolutionExtensions.ResolveOptional(IComponentContext context, Type serviceType, IEnumerable`1 parameters)
at Autofac.ResolutionExtensions.ResolveOptional(IComponentContext context, Type serviceType)
at Autofac.Extensions.DependencyInjection.AutofacServiceProvider.GetService(Type serviceType)
at Microsoft.AspNetCore.Builder.IdentityServerApplicationBuilderExtensions.TestService(IServiceProvider serviceProvider, Type service, ILogger logger, String message, Boolean doThrow)
at Microsoft.AspNetCore.Builder.IdentityServerApplicationBuilderExtensions.Validate(IApplicationBuilder app)
at Microsoft.AspNetCore.Builder.IdentityServerApplicationBuilderExtensions.UseIdentityServer(IApplicationBuilder app, IdentityServerMiddlewareOptions options)
at CelleroPrev20220513.Blazor.CelleroPrev20220513BlazorModule.OnApplicationInitialization(ApplicationInitializationContext context) in D:\Play\CelleroPrev20220513\src\CelleroPrev20220513.Blazor\CelleroPrev20220513BlazorModule.cs:line 358
at Volo.Abp.Modularity.AbpModule.OnApplicationInitializationAsync(ApplicationInitializationContext context)
at Volo.Abp.Modularity.OnApplicationInitializationModuleLifecycleContributor.
This exception was originally thrown at this call stack: [External Code] Inner Exception 1: TargetInvocationException: Exception has been thrown by the target of an invocation.
Inner Exception 2:
MissingMethodException: Method not found: 'Void AutoMapper.IMemberConfigurationExpression3.MapFrom(System.Linq.Expressions.Expression
1<System.Func`2<!0,!!0>>)'.
Other Attempts Apply the Lite version to 5.2.1 ABP Suite project The project runs: