Activities of "mithun"

I tried renaming the class getting same exception

Thanks, I'm getting below runtime exception due to dependency injection failure of new custom repository class of stored procedure - IDepartmentsInfoRepository in Application Service class constructor.

How to resolve custom repository dependency injection issue in application service class?

2023-03-30 13:19:18.003 +05:30 [ERR] An exception was thrown while activating Castle.Proxies.DepartmentAppServiceProxy.
Autofac.Core.DependencyResolutionException: An exception was thrown while activating Castle.Proxies.DepartmentAppServiceProxy.
 ---> Autofac.Core.DependencyResolutionException: None of the constructors found with 'Autofac.Core.Activators.Reflection.DefaultConstructorFinder' on type 'Castle.Proxies.DepartmentAppServiceProxy' can be invoked with the available services and parameters:
Cannot resolve parameter 'Departments.IDepartmentsInfoRepository DepartmentInfoRepository' of constructor 'Void .ctor(Castle.DynamicProxy.IInterceptor[], Volo.Abp.Domain.Repositories.IRepository`2[Departments.Department,System.Int32], Departments.IDepartmentsInfoRepository, Volo.Abp.Domain.Repositories.IRepository`2[Departments.DepartmentLOB,System.Int32], Microsoft.Extensions.Logging.ILogger`1[Departments.DepartmentAppService], Volo.Abp.Data.IDataFilter, Volo.Abp.Domain.Repositories.IRepository`1[Departments.FreightClassCode], Volo.Abp.Domain.Repositories.IRepository`2[Departments.SKIGenerationForSupply,System.Int32], Volo.Abp.Domain.Repositories.IRepository`2[Departments.SKIGenerationForPrepack,System.Int32], Volo.Abp.Domain.Repositories.IRepository`2[Departments.DepartmentAssortment,System.Int32], Volo.Abp.Domain.Repositories.IRepository`2[Departments.DepartmentLOB,System.Int32], Volo.Abp.Domain.Repositories.IRepository`2[Departments.SubVendor,System.Int32], Volo.Abp.Domain.Repositories.IRepository`1[Departments.DepartmentVendor], Shared.Lookups.ILookupService, Microsoft.Extensions.Localization.IStringLocalizer`1[Localization.SKIResource])'.
   at Autofac.Core.Activators.Reflection.ReflectionActivator.GetAllBindings(ConstructorBinder[] availableConstructors, IComponentContext context, IEnumerable`1 parameters)
   at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters)
   at Autofac.Core.Activators.Reflection.ReflectionActivator.<ConfigurePipeline>b__11_0(ResolveRequestContext ctxt, Action`1 next)
   at Autofac.Core.Resolving.Middleware.DisposalTrackingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Builder.RegistrationBuilder`3.<>c__DisplayClass41_0.<PropertiesAutowired>b__0(ResolveRequestContext ctxt, Action`1 next)
   at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   --- End of inner exception stack trace ---
   at Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Core.Resolving.Middleware.SharingMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Core.Resolving.Middleware.CircularDependencyDetectorMiddleware.Execute(ResolveRequestContext context, Action`1 next)
   at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, ResolveRequest request)
   at Autofac.Core.Resolving.ResolveOperation.ExecuteOperation(ResolveRequest request)
   at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable`1 parameters, Object& instance)
   at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters)
   at Microsoft.AspNetCore.Mvc.Controllers.ServiceBasedControllerActivator.Create(ControllerContext actionContext)
   at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.&lt;&gt;c__DisplayClass6_0.&lt;CreateControllerFactory&gt;g__CreateController|0(ControllerContext controllerContext)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.&lt;InvokeNextExceptionFilterAsync&gt;g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
2023-03-30 13:19:18.003 +05:30 [ERR] ---------- Exception Data ----------
ActivatorChain = Castle.Proxies.DepartmentAppServiceProxy

Thanks, any altenate approaches for blazorise grid such as server side paging and filtering reference ABP framework implementation

We have large data in two entities - Department (600k) and DepartmentTypes (25K) and below application service method is causing performance issue. Any alternate entity supported approaches to resolve the performance issue?

Ours is a tiered application with Blazor Web Assembly as a UI framework with Entity Framework and SQL Server. • ABP Framework version: v5.3 • UI type: / Blazor Web Assembly • DB provider: EF Core • Tiered (MVC) : Yes • Identity Server Separated : yes

Reference code:

 public async Task<..> GetDepartmentsWithTypeAsync()
        {
            var Departments = await _DepartmentRepository.GetQueryableAsync();
            var DepartmentTypes = await _DepartmentTypeRepository.GetQueryableAsync();

            var query = from p in Departments
                        join pl in DepartmentTypes on p.Id equals pl.DepartmentId
                         into joinGroup
                        from jr in joinGroup.DefaultIfEmpty()
                        orderby p.Id
                        select new
                        {
                           ...                                  
                        };
            var DepartmentDto = (from result in query
                               select new Department()
                               {
                                 ...                                  
                               }).ToList();

            return DepartmentDto;
        }

I tried same approach as sample project. But HttpApi.Host project swagger is throwing attached runtime error. How to see API host runtime exception message?

Please let me know if we can get into a meeting to resolve the issue.

Please share sample code for using SQL Server DB stored procedure accepting input params and returning multiple rows with Entity Framework COre.

Ours is a tiered application with Blazor Web Assembly as a UI framework with Entity Framework and SQL Server. • ABP Framework version: v5.3 • UI type: / Blazor Web Assembly • DB provider: EF Core • Tiered (MVC) : Yes • Identity Server Separated : yes

Any suggestions to improve the first-time page performance load time?

We are using ABP framework with EF and Blazor Web Assembly for implementation. Currently the visual studio solution consists of five module projects and the performance of the blazor web application is slow. We tried to implement lazy loading for one of the modules using the below reference but getting below exception during runtime. Please help in resolving the issue.

Lazy loading reference: https://code-maze.com/lazy-loading-in-blazor-webassembly/

Ours is a tiered application with Blazor Web Assembly as a UI framework. • ABP Framework version: v5.3 • UI type: / Blazor Web Assembly • DB provider: EF Core • Tiered (MVC) : Yes • Identity Server Separated : yes • Exception message and stack trace: browser runtime console exception screenshot attached

Please share how to implement lazy loading modules/assemblies using ABP framework

Update: We also tried below comment solution but it didnt work https://github.com/abpframework/abp/issues/5543#issuecomment-1057630494

How to resolve below visual studio solution build error Severity Code Description Project File Line Suppression State Error NU1101 Unable to find package Volo.Abp.AspNetCore.Components.WebAssembly.LeptonXTheme. No packages exist with this id in source(s): Microsoft Visual Studio Offline Packages, nuget.org 1

Support team,

Using "abp suite" command created new solution. Further how to create modules and identity projects in same solution?

Thanks

Showing 21 to 30 of 31 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11