Open Closed

Tenant switch not working on production #6071


User avatar
1
vipulbuoyancy created
  • ABP Framework version: v7.4.0

  • UI Type: Angular

  • Database System: EF Core (SQL Server)

  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

  • Exception message and full stack trace:

  • Steps to reproduce the issue:

HI ,

I get the error when click on tenant switch on login page.
image.png

I tried to multiple solution but its not work. please help for resolve this issue.

thanks


3 Answer(s)
  • User Avatar
    0
    HDaoud created

    This tried
    image.png
    From https://support.abp.io/QA/Questions/3140/Wrong-path-of-TenantSwitchModal - This is causing 500 Error The login page won't load.

            Configure(options =>
            {
                options.ScriptBundles.Configure(
                    LeptonXThemeBundles.Scripts.Global,
                    bundle =>
                    {
                        bundle.AddFiles("/Pages/Abp/MultiTenancy/tenant-switch.js");
                    });
            });
            
    

    AND

        Configure<AbpBundlingOptions>(options =>
        {
            options.ScriptBundles.Configure(
                StandardBundles.Scripts.Global,
                bundleConfiguration =>
                {
                    bundleConfiguration.AddContributors(typeof(TenantSwitchBundle));
                }
            );
        });
    
  • User Avatar
    0
    HDaoud created

    This is resolved after combining the two Configure<AbpBundlingOptions> scripting and style in one.

    Configure(options =>
            {
                options.StyleBundles.Configure(
                    LeptonXThemeBundles.Styles.Global,
                    bundle =>
                    {
                        bundle.AddFiles("/global-styles.css");
                    }
                );
                options.ScriptBundles.Configure(
                    LeptonXThemeBundles.Scripts.Global,
                    bundle =>
                    {
                        bundle.AddFiles("/Pages/Abp/MultiTenancy/tenant-switch.js");
                    }
                );
            });
    
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    I've tried both local debug & and Production Release environments and it's working as expected. I need to reproduce to understand the problem.

    Can you please share the minimum reproduction steps?

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08