Open Closed

Could not load type 'Volo.Abp.TextTemplating.ITemplateRenderer' #1732


User avatar
0
pvaz created
  • ABP Framework version: v4.4.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

After updating my current project from v.4.3.0 to v4.4.0 doing upgrade, npm and nuget update, cleaned binaries and recompiled without any errors, I cannod run the web project.

When starting is giving me the following error:

2021-08-18 22:18:40.474 +01:00 [INF] Starting web host.
2021-08-18 22:18:42.360 +01:00 [FTL] Host terminated unexpectedly!
System.TypeLoadException: Could not load type 'Volo.Abp.TextTemplating.ITemplateRenderer' from assembly 'Volo.Abp.TextTemplating, Version=4.4.0.0, Culture=neutral, PublicKeyToken=null'.
   at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
   at System.Reflection.RuntimeConstructorInfo.get_Signature()
   at System.Reflection.RuntimeConstructorInfo.GetParametersNoCopy()
   at System.Reflection.RuntimeConstructorInfo.GetParameters()
   at Autofac.Core.Activators.Reflection.ConstructorBinder..ctor(ConstructorInfo constructorInfo)
   at Autofac.Core.Activators.Reflection.ReflectionActivator.ConfigurePipeline(IComponentRegistryServices componentRegistryServices, IResolvePipelineBuilder pipelineBuilder)
   at Autofac.Core.Registration.ComponentRegistration.BuildResolvePipeline(IComponentRegistryServices registryServices, IResolvePipelineBuilder pipelineBuilder)
   at Autofac.Core.Registration.ComponentRegistration.BuildResolvePipeline(IComponentRegistryServices registryServices)
   at Autofac.Core.Registration.ComponentRegistryBuilder.Build()
   at Autofac.ContainerBuilder.Build(ContainerBuildOptions options)
   at Volo.Abp.Autofac.AbpAutofacServiceProviderFactory.CreateServiceProvider(ContainerBuilder containerBuilder)
   at Microsoft.Extensions.Hosting.Internal.ServiceFactoryAdapter`1.CreateServiceProvider(Object containerBuilder)
   at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
   at Microsoft.Extensions.Hosting.HostBuilder.Build()
   at G3TechSupport.Web.Program.Main(String[] args) in C:\Dev\GTech\GTechSupport\aspnet-core\src\GTechSupport.Web\Program.cs:line 30

Error is 500.30 - ASP.NET Core app failed to start

Before was working well.

Thanks, Paulo


7 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi pvaz

    Can you confirm whether you have upgraded all abp packages?

    Can you share a simple project to reproduce? liming.ma@volosoft.com

  • User Avatar
    0
    pvaz created

    Hi,

    Yes all packages were upgraded, deleted all binaries, restored and compiled with no errors.

    Going to provide the project to the email next

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Not all.

  • User Avatar
    0
    pvaz created

    I did not check the modules, tought that the abp suite was also upgrading the modules, but seems not.

    I'll do it and try again, thanks

  • User Avatar
    0
    pvaz created

    What is the best way to update the packages on the modules ? I tried to add the solution for each modules on abp suite web and failed.

    Changing directly on the solution also did not solved because on compilation gives error.

    And how to handle with the changes on dbmigration, tables and new fields on project update ? Since on version 4.4.0 the process is changed.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    What is the best way to update the packages on the modules ?

    You can use abp update or use Visual Studio to upgrade the nuget packages, of course you can also update the csproj file manually.

    Usage:
    
      abp update [options]
    
    Options:
    -p|--include-previews                       (if supported by the template)
    --npm                                       (Only updates NPM packages)
    --nuget                                     (Only updates Nuget packages)
    -sp|--solution-path                         (Specify the solution path)
    -sn|--solution-name                         (Specify the solution name)
    --check-all                                 (Check the new version of each package separately)
    -v|--version <version>                      (default: latest version)
    
    Some examples:
    
      abp update
      abp update -p
      abp update -sp "D:\projects\" -sn Acme.BookStore
    
    See the documentation for more info: https://docs.abp.io/en/abp/latest/CLI
    
    

    And how to handle with the changes on dbmigration, tables and new fields on project update ? Since on version 4.4.0 the process is changed.

    You can add the new migratiosn and update it to databatse.

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

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