Starts in:
1 DAY
14 HRS
42 MIN
26 SEC
Starts in:
1 D
14 H
42 M
26 S
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.

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 From https://support.abp.io/QA/Questions/3140/Wrong-path-of-TenantSwitchModal - This is causing 500 Error The login page won't load.

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

    AND

        Configure&lt;AbpBundlingOptions&gt;(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<AbpBundlingOptions>(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?

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06