Starts in:
1 DAY
21 HRS
0 MIN
57 SEC
Starts in:
1 D
21 H
0 M
57 S
Open Closed

Volo.Abp.EntityFrameworkCore.PostgreSql package Version: 7.2.0-rc.1 problem when the project run  #4888


User avatar
0
ilhan.ordukaya created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v7.1.1
  • UI type:
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

log.txt

Volo.Abp.AbpInitializationException: An error occurred during PreConfigureServicesAsync phase of the module Volo.Abp.Validation.AbpValidationModule, Volo.Abp.Validation, Version=7.1.1.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. ---> System.MissingMethodException: Method not found: 'Void Microsoft.Extensions.DependencyInjection.ServiceCollectionRegistrationActionExtensions.OnRegistred(Microsoft.Extensions.DependencyInjection.IServiceCollection, System.Action1<Volo.Abp.DependencyInjection.IOnServiceRegistredContext>)'. at Volo.Abp.Validation.AbpValidationModule.PreConfigureServices(ServiceConfigurationContext context) at Volo.Abp.Modularity.AbpModule.PreConfigureServicesAsync(ServiceConfigurationContext context) at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync() --- End of inner exception stack trace --- at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync() at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action1 optionsAction) at Definition.Program.Main(String[] args) in C:\definitions\Definition\host\Definition.HttpApi.Host\Program.cs:line 35 2023-04-14 10:32:11.018 +03:00 [INF] Starting web host. 2023-04-14 10:32:12.278 +03:00 [FTL] Host terminated unexpectedly! Volo.Abp.AbpInitializationException: An error occurred during PreConfigureServicesAsync phase of the module Volo.Abp.Validation.AbpValidationModule, Volo.Abp.Validation, Version=7.1.1.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. ---> System.MissingMethodException: Method not found: 'Void Microsoft.Extensions.DependencyInjection.ServiceCollectionRegistrationActionExtensions.OnRegistred(Microsoft.Extensions.DependencyInjection.IServiceCollection, System.Action1<Volo.Abp.DependencyInjection.IOnServiceRegistredContext>)'. at Volo.Abp.Validation.AbpValidationModule.PreConfigureServices(ServiceConfigurationContext context) at Volo.Abp.Modularity.AbpModule.PreConfigureServicesAsync(ServiceConfigurationContext context) at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync() --- End of inner exception stack trace --- at Volo.Abp.AbpApplicationBase.ConfigureServicesAsync() at Volo.Abp.AbpApplicationFactory.CreateAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplicationAsync[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.AddApplicationAsync[TStartupModule](WebApplicationBuilder builder, Action1 optionsAction) at Definition.Program.Main(String[] args) in C:\definitions\Definition\host\Definition.HttpApi.Host\Program.cs:line 35

We create an abp project with script. The project we created was created with 7.1.1 version of ABP, but it does not work properly due to the version of the postgresql package (Volo.Abp.EntityFrameworkCore.PostgreSql Version: 7.2.0-rc.1). project and this package have been changed to version 7.1.0-rc.2. When the version is not changed, the migration process gives an error and the 500.30 error is displayed when the project is run. What is the reason why the package that came in the last version does not work? How can we run it?


6 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We create an abp project with script. The project we created was created with 7.1.1 version of ABP, but it does not work properly due to the version of the postgresql package (Volo.Abp.EntityFrameworkCore.PostgreSql Version: 7.2.0-rc.1).

    You should use the stable version. please use version 7.1.1 instead of 7.2.0-rc.1

  • User Avatar
    0
    ilhan.ordukaya created

    Hi,

    We create an abp project with script. The project we created was created with 7.1.1 version of ABP, but it does not work properly due to the version of the postgresql package (Volo.Abp.EntityFrameworkCore.PostgreSql Version: 7.2.0-rc.1).

    You should use the stable version. please use version 7.1.1 instead of 7.2.0-rc.1

    hi I can run the project already. I wonder why the project was installed with the wrong package version? If this is a problem from ABP, when will this problem be fixed?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you share the full steps to reproduce? we will fix it if it's a problem.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Sorry, but I could not understand why there is a 7.2.0-rc package here. Is this generated by ABP CLI or Suite?

  • User Avatar
    0
    ilhan.ordukaya created

    Hi,

    Sorry, but I could not understand why there is a 7.2.0-rc package here. Is this generated by ABP CLI or Suite?

    actually i build it with init file. Its content is as follows

    ` $name = $args[0]

    abp new "$name" -t module --no-ui --database-provider ef --database-management-system PostgreSQL -csf dotnet sln ".$name$name.sln" remove (Get-ChildItem -r **/.Installer.csproj) dotnet sln ".$name$name.sln" remove (Get-ChildItem -r **/.MongoDB.Tests.csproj) dotnet sln ".$name$name.sln" remove (Get-ChildItem -r **/.MongoDB.csproj) dotnet sln ".$name$name.sln" remove (Get-ChildItem -r **/.Host.Shared.csproj) dotnet sln ".$name$name.sln" remove (Get-ChildItem -r **/.AuthServer.csproj) Remove-Item -Recurse -Force (Get-ChildItem -r **/.Installer) Remove-Item -Recurse -Force (Get-ChildItem -r **/.MongoDB.Tests) Remove-Item -Recurse -Force (Get-ChildItem -r **/.MongoDB) Remove-Item -Recurse -Force (Get-ChildItem -r **/.Host.Shared) Remove-Item -Recurse -Force (Get-ChildItem -r **/.AuthServer)

    abp add-module Volo.Abp.EntityFrameworkCore.PostgreSql -s ".$name\host.$name.HttpApi.Host$name.HttpApi.Host.csproj" --skip-db-migrations

    dotnet add ".$name\host$name.HttpApi.Host" package Volo.Abp.EntityFrameworkCore.PostgreSql --prerelease dotnet remove ".$name\host$name.HttpApi.Host" package Volo.Abp.EntityFrameworkCore.SqlServer rm -r -fo .$name\host$name.HttpApi.Host\EntityFrameworkCore\

    `

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    dotnet add ".$name\host$name.HttpApi.Host" package Volo.Abp.EntityFrameworkCore.PostgreSql --prerelease

    You should specify the stable version here instead of -prerelease

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