Activities of "liangshiwei"

Can you confirm that the microservice not to be exposed on web but only api gateway?

If you run your microservices locally, they won't be exposed to the network.

If I'm inside the network my swagger definition works fine but if I'm outside it doesn't work but API routing works fine inside and outside the network.

Yes, the swagger will send a request to the backend when you switch the API definition, but the client(browser) doesn't know localhost, so it can't work with your case.

Answer

Hi,

Yes, it's.

Answer

https://docs.abp.io/en/commercial/latest/startup-templates/microservice/add-microservice#updating-administration-microservice

You can ignore the section of Updating Administration Microservice when you add a new service because the dynamic permission is working.

Answer

Hi,

You can create a 6.0 and 7.0 microservice template for comparison. You will see the AdministrationServiceHttpApiHostModule no longer references ApplicationContracts.

Could you provide the steps to reproduce? thanks.

Can you share the error logs?

This seems to solve the problem, but now the files are loaded twice. First in the global bundle and then again separately as CSS files.

How should I do this correctly?

Hi, We use leptonx-blazor-compatibility.js internally to load styles dynamically. you can create a BundleContributor to remove it.

public class MyScriptContributor : BundleContributor
{
    public override void ConfigureBundle(BundleConfigurationContext context)
    {
        context.Files.RemoveAll(x => x.Contains("leptonx-blazor-compatibility.js"));
    }
}


Configure<AbpBundlingOptions>(options =>
{
    options.StyleBundles.Configure(
        BlazorLeptonXThemeBundles.Styles.Global,
        bundle =>
        {
            bundle.AddContributors(typeof(MyScriptContributor));
        }
    );
});

How can I achieve this?

You can try this:

how to add Collection property (Departments) in OrganizationUnity entity?

The OrganizationUnity is built in the identity module, you can't add a Collection property in it.

Hi,

You can try this:

[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(FileDescriptorController), IncludeSelf = true)]
[AllowAnonymous]
public class MyFileDescriptorController : FileDescriptorController
{
    public MyFileDescriptorController(IFileDescriptorAppService fileDescriptorAppService) : base(fileDescriptorAppService)
    {
    }


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

}

Document: https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services#example-overriding-a-controller

Hi @AndrewT

The answer is still

Showing 4281 to 4290 of 6693 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 November 04, 2025, 06:41