Open Closed

After ABP CLI version downgrade, getting exception while creating new blazor server solution #5842


User avatar
0
mithun created

We have requirement to create new ABP blazor server solution using ABP Community Version 5.3.3.

I had latest ABP suite installed in my laptop so provided the below commands to uninstall commercial and install community version. ABP community version installed succesfully but while creating new blazor server solution getting below exception

ABP Framework version: v5.3.3 UI Type: Blazor Server Database System: EF Core (SQL Server) Tiered (for MVC) or Auth Server Separated (for Angular): yes Exception message and full stack trace: [22:13:22 ERR] Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Volo.Abp.Cli.ProjectBuilding.Templates.RemoveUnnecessaryPortsStep.RemoveUnnecessaryDbMigratorClients(ProjectBuildContext context) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\Templates\RemoveUnnecessaryPortsStep.cs:line 56 at Volo.Abp.Cli.ProjectBuilding.Templates.RemoveUnnecessaryPortsStep.Execute(ProjectBuildContext context) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\Templates\RemoveUnnecessaryPortsStep.cs:line 15 at Volo.Abp.Cli.ProjectBuilding.Building.ProjectBuildPipeline.Execute() in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\Building\ProjectBuildPipeline.cs:line 19 at Volo.Abp.Cli.ProjectBuilding.TemplateProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\TemplateProjectBuilder.cs:line 120 at Volo.Abp.Cli.Commands.NewCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\NewCommand.cs:line 73 at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 161 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 69 Steps to reproduce the issue:

  1. Uninstall ABP suite command: abp suite remove

  2. Uninstall ABP cli command: abp cli remove

  3. Install ABP community version 5.3.3 dotnet tool install -g Volo.Abp.Cli --version 5.3.3

  4. Created new ABP blazor server solution but getting below error D:\SourceCode\Dev_Community\New>abp new Acme.BookStore -u blazor-server --theme basic -csf [22:13:18 INF] ABP CLI (https://abp.io) [22:13:18 INF] Version 5.3.3 (Stable) [22:13:19 WRN] ABP CLI has a newer stable version 7.3.3, please update to get the latest features and fixes. [22:13:19 WRN] [22:13:19 WRN] Update Command: [22:13:19 WRN] dotnet tool update -g Volo.Abp.Cli [22:13:19 WRN] [22:13:19 INF] Creating your project... [22:13:19 INF] Project name: Acme.BookStore [22:13:20 INF] UI Framework: BlazorServer [22:13:20 INF] Output folder: D:\SourceCode\Dev_Community\New\Acme.BookStore [22:13:21 INF] Using cached template: app-pro, version: 7.3.3 [22:13:22 ERR] Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Volo.Abp.Cli.ProjectBuilding.Templates.RemoveUnnecessaryPortsStep.RemoveUnnecessaryDbMigratorClients(ProjectBuildContext context) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\Templates\RemoveUnnecessaryPortsStep.cs:line 56 at Volo.Abp.Cli.ProjectBuilding.Templates.RemoveUnnecessaryPortsStep.Execute(ProjectBuildContext context) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\Templates\RemoveUnnecessaryPortsStep.cs:line 15 at Volo.Abp.Cli.ProjectBuilding.Building.ProjectBuildPipeline.Execute() in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\Building\ProjectBuildPipeline.cs:line 19 at Volo.Abp.Cli.ProjectBuilding.TemplateProjectBuilder.BuildAsync(ProjectBuildArgs args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\ProjectBuilding\TemplateProjectBuilder.cs:line 120 at Volo.Abp.Cli.Commands.NewCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\NewCommand.cs:line 73 at Volo.Abp.Cli.CliService.RunInternalAsync(CommandLineArgs commandLineArgs) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 161 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\ci\Jenkins\workspace\abp-framework-release\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 69

D:\SourceCode\Dev_Community\New>

Also followed below steps to clean uninstall of ABP suite https://docs.abp.io/en/commercial/latest/abp-suite/how-to-uninstall#how-to-do-a-clean-uninstallation-of-abp-suite

Please help me resolve the issue.


3 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello mithun abp new Acme.BookStore -u blazor-server --theme basic -csf app -v 5.3.3 can you please try this command

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello mithun abp new Acme.BookStore -u blazor-server --theme basic -csf app -v 5.3.3 can you please try this command

    Have you tried this one if yes and still it is not working then please Follow the below steps

    dotnet tool uninstall -g volo.abp.cli
    dotnet tool uninstall -g volo.abp.Suite
    abp clear-download-cache
    Delete folder after running uninstall command (C:\Users\VaibhavDeshpande\.abp)
    dotnet tool install -g volo.abp.cli --version 4.2.2
    after this sign in with - abp login **userId** -p **password**
    abp suite install --v 4.2.2
    
    abp new Acme.BookStore -t app -v 4.2.2 -u angular
    

    In my case I downgraded this to 4.2.2 you use your version here. Please do let me know if this helps you. Thank you

  • User Avatar
    0
    mithun created

    Thanks, above solution worked for me.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07