Open Closed

abp suite code generating error #1303


User avatar
0
lstsair created
  • ABP Framework version: v4.3.0

  • UI type: Blazor

  • DB provider: EF Core / MSSQL

  • Tiered (MVC) or Identity Server Separated (Angular): no

  • Exception message and stack trace:

  • Steps to reproduce the issue: abp suite generate the code error with no argument

  • code below is generated by abp suite protected override async Task OnInitializedAsync() { await SetToolbarItemsAsync(); await SetBreadcrumbItemsAsync(); await SetPermissionsAsync(); await GetNullableStateLookupAsync();
    await GetNullableCountryLookupAsync(); }

      Severity	Code	Description	Project	File	Line	Suppression State
    

Error CS7036 There is no argument given that corresponds to the required formal parameter 'newValue' of 'Towns.GetNullableCountryLookupAsync(string)' SecCloud.Blazor C:\Appl\MyProjects\SecCloud\aspnet-core\src\SecCloud.Blazor\Pages\Towns.razor.cs 59 Active

    Severity	Code	Description	Project	File	Line	Suppression State

Error CS7036 There is no argument given that corresponds to the required formal parameter 'newValue' of 'Towns.GetNullableStateLookupAsync(string)' SecCloud.Blazor C:\Appl\MyProjects\SecCloud\aspnet-core\src\SecCloud.Blazor\Pages\Towns.razor.cs 58 Active

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    lstsair created

    I fixed this by add newValue = null into the code as below:

       private async Task GetNullableStateLookupAsync(string newValue = null )
        {
            StatesNullable = (await TownsAppService.GetStateLookupAsync(new LookupRequestDto { Filter = newValue })).Items;
        }
    
    
        private async Task GetNullableCountryLookupAsync(string newValue = null )
        {
            CountriesNullable = (await TownsAppService.GetCountryLookupAsync(new LookupRequestDto { Filter = newValue })).Items;
        }
        
    

    And then manually do add migration as below: Add-Migration "20210512111200_Added_Town" -Context MigrationsDbContext

    This may help the topic : problem with navigation properties in abp suite #1289

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on September 09, 2026, 11:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.