Activities of "saad.aldulaijan"

Just scaffolded a solution and when i want to run the angular app, it shows an error :

An unhandled exception occurred: ENOENT: no such file or directory, lstat 'C:\myPath\node_modules@volosoft'

  • ABP Framework version: v6.0.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: An unhandled exception occurred: ENOENT: no such file or directory, lstat 'path\node_modules@volosoft'
  • Steps to reproduce the issue:" npm i , then npm start

so this is useless?

https://docs.abp.io/en/abp/latest/Getting-Started-Running-Solution?UI=NG&DB=EF&Tiered=No

Question
  • ABP Framework version: v6.0.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I just scaffolded a new solution, and i did not find an option to enable LDAP login on the settings page, am I missing somethiong?

  • ABP Framework version: v6.0.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

How can i remove this part, i tried with ReplaceableComponentsService https://docs.abp.io/en/abp/latest/UI/Angular/Component-Replacement , i did not find this component.

  • ABP Framework version: v6.0.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

How to remove lpx-toolbar-container completely on Angular ?

I tried replaceable component it did not work.

I am trying to subscribe from (Core.Notifications) to an event sent by (FirstClientApp), however it is not working These are the steps I have followed:

FirstClientApp:

  1. Package installed : Volo.Abp.EventBus.RabbitMQ

  2. appsettings.json:

  3. In FirstClientApp.HttpApi.Host --> FirstClientAppHttpApiHostModule.cs , I added the following: [DependsOn(typeof(AbpEventBusRabbitMqModule))]

  4. In FirstClient.Application --> ProductsAppService.cs I injected IDistributedEventBus , then used it on CreateAsync method like this:

await _distributedEventBus.PublishAsync(new ProductEto(product.Id, product.Name, product.Description, product.Price, product.FileId));

Core.Notifications

  1. Package installed: Volo.Abp.EventBus.RabbitMQ

  2. appsettings.json

  3. In Core.Notifications.HttpApi.Host --> NotificationsHttpApiHostModule.cs, I added the following: [DependsOn(typeof(AbpEventBusRabbitMqModule))]

  4. I added the following class on Core.Notifications.Application:

Breakpoint never hit.

RabbitMQ:

What am I missing ??

Solution is to have shared library between the services. ETO must be exactly the same.

  • ABP Framework version: v7.0.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I am trying to do: abp generate-proxy -m OrderService and it is showing the subjected error message.

I tried with --url , same thing.

  • ABP Framework version: v7.0.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I am using FileManagementModule; and I want to allow anonymous uploads, how can i achieve this.

I tried overriding the following and it didn't work:

I tried to override the controller:

    [ExposeServices(typeof(FileDescriptorController))]
    [AllowAnonymous]
    public class MyFileDescriptorController : FileDescriptorController
    {
        public MyFileDescriptorController(IFileDescriptorAppService fileDescriptorAppService) : base(fileDescriptorAppService)
        {
        }


        [AllowAnonymous]
        [HttpPost]
        [Route("upload")]
        public override Task<FileDescriptorDto> CreateAsync(Guid? directoryId, CreateFileInputWithStream inputWithStream)
        {
            return FileDescriptorAppService.CreateAsync(directoryId, inputWithStream);
        }

    }

overriding the app service


[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(IFileDescriptorAppService), typeof(FileDescriptorAppService), typeof(MyFileDescriptorAppService))]

[AllowAnonymous]
public class MyFileDescriptorAppService : FileDescriptorAppService
{
    public MyFileDescriptorAppService(IFileManager fileManager,
        IFileDescriptorRepository fileDescriptorRepository,
        IBlobContainer<FileManagementContainer> blobContainer,
        IDistributedCache<FileDownloadTokenCacheItem, string> downloadTokenCache)
        : base(fileManager, fileDescriptorRepository, blobContainer, downloadTokenCache)
    {
    }


    [AllowAnonymous]
    public override async Task<FileDescriptorDto> CreateAsync(Guid? directoryId, CreateFileInputWithStream inputWithStream)
    {
        await CheckSizeAsync(inputWithStream.File.ContentLength ?? 0);

        var fileDescriptor = await FileManager.CreateAsync(inputWithStream.Name, inputWithStream.File.ContentType, inputWithStream.File, directoryId, CurrentTenant.Id, overrideExisting: true);

        await CurrentUnitOfWork.SaveChangesAsync();

        fileDescriptor = await FileDescriptorRepository.FindAsync(fileDescriptor.Id);
        inputWithStream.MapExtraPropertiesTo(fileDescriptor);
        await FileDescriptorRepository.UpdateAsync(fileDescriptor);
        return ObjectMapper.Map<FileDescriptor, FileDescriptorDto>(fileDescriptor);

    }
}

I already tried it it didn't work, it returns 401 if not authenticated. It seems fileDescriptorAppService itself is secured.

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