Open Closed

Facing error while Upgrading ABP 4.4 to 5.0 #2282


User avatar
0
JeganAbpCommercial created
  • ABP Framework version: v5.0

    • UI type: MVC
  • DB provider: EF Core

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

  • Exception message and stack trace: Attached screen shot build error

  • Severity Code Description Project File Line Suppression State Error TS6053 File 'C:/Jegan/Sourcecode/Sprint9/src/src/eFC.Web/wwwroot/libs/datatables.net-bs4/js/dataTables.bootstrap4.js' not found. The file is in the program because: Root file specified for compilation eFC.Web JavaScript Content Files 1 Active

  • Steps to reproduce the issue:" Followed the upgrading steps for ABP 4.4. to ABP 5.0 https://blog.abp.io/abp/ABP-IO-Platform-5.0-RC-1-Has-Been-Released

Build error resolved below error logs 2021-12-20 11:09:17.492 +08:00 [INF] Starting web host. 2021-12-20 11:09:38.993 +08:00 [FTL] Host terminated unexpectedly! Volo.Abp.AbpInitializationException: An error occurred during ConfigureServices phase of the module Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule, Volo.Abp.AspNetCore.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Method 'GetProfilePictureFileAsync' in type 'Volo.Abp.Account.AccountController' from assembly 'Volo.Abp.Account.Pro.Public.HttpApi, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.RuntimeAssembly.get_DefinedTypes() at Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPart.get_Types() at Microsoft.AspNetCore.Mvc.Controllers.ControllerFeatureProvider.PopulateFeature(IEnumerable1 parts, ControllerFeature feature) at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature](TFeature feature) at Microsoft.Extensions.DependencyInjection.MvcCoreMvcBuilderExtensions.AddControllersAsServices(IMvcBuilder builder) at Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule.ConfigureServices(ServiceConfigurationContext context) at Volo.Abp.AbpApplicationBase.ConfigureServices() System.TypeLoadException: Method 'GetProfilePictureFileAsync' in type 'Volo.Abp.Account.AccountController' from assembly 'Volo.Abp.Account.Pro.Public.HttpApi, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. --- End of inner exception stack trace --- at Volo.Abp.AbpApplicationBase.ConfigureServices() at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplication[TStartupModule](IServiceCollection services, Action1 optionsAction) at eFC.Web.Startup.ConfigureServices(IServiceCollection services) in C:\Jegan\Sourcecode\Sprint9\src\src\eFC.Web\Startup.cs:line 11 at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.


3 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Try running abp install-libs under Web project.

  • User Avatar
    0
    JeganAbpCommercial created

    Still facing below error showing in error logs

    2021-12-20 11:09:17.492 +08:00 [INF] Starting web host. 2021-12-20 11:09:38.993 +08:00 [FTL] Host terminated unexpectedly! Volo.Abp.AbpInitializationException: An error occurred during ConfigureServices phase of the module Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule, Volo.Abp.AspNetCore.Mvc, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null. See the inner exception for details. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Method 'GetProfilePictureFileAsync' in type 'Volo.Abp.Account.AccountController' from assembly 'Volo.Abp.Account.Pro.Public.HttpApi, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.RuntimeAssembly.get_DefinedTypes() at Microsoft.AspNetCore.Mvc.ApplicationParts.AssemblyPart.get_Types() at Microsoft.AspNetCore.Mvc.Controllers.ControllerFeatureProvider.PopulateFeature(IEnumerable1 parts, ControllerFeature feature) at Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.PopulateFeature[TFeature](TFeature feature) at Microsoft.Extensions.DependencyInjection.MvcCoreMvcBuilderExtensions.AddControllersAsServices(IMvcBuilder builder) at Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule.ConfigureServices(ServiceConfigurationContext context) at Volo.Abp.AbpApplicationBase.ConfigureServices() System.TypeLoadException: Method 'GetProfilePictureFileAsync' in type 'Volo.Abp.Account.AccountController' from assembly 'Volo.Abp.Account.Pro.Public.HttpApi, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. --- End of inner exception stack trace --- at Volo.Abp.AbpApplicationBase.ConfigureServices() at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create[TStartupModule](IServiceCollection services, Action1 optionsAction) at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.AddApplication[TStartupModule](IServiceCollection services, Action1 optionsAction) at eFC.Web.Startup.ConfigureServices(IServiceCollection services) in C:\Jegan\Sourcecode\Sprint9\src\src\eFC.Web\Startup.cs:line 11 at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Can you check if Account Pro module is updated too or any dependency which depends on account module is updated?

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35