System.TypeLoadException: Method 'get_IsTraceEnabled'
See original GitHub issueHi,
I created one sample project under ABP 4.5. But, I got one error when run the project.
thanks for your help in advance.
the detail is as follows,
System.TypeLoadException: Method ‘get_IsTraceEnabled’ in type ‘Abp.Castle.Logging.Log4Net.Log4NetLogger’ from assembly ‘Abp.Castle.Log4Net, Version=4.5.0.0, Culture=neutral, PublicKeyToken=null’ does not have an implementation.
at at Abp.Castle.Logging.Log4Net.Log4NetLoggerFactory.Create(String name)
at at Castle.Facilities.Logging.LoggingFacility.RegisterDefaultILogger(ILoggerFactory factory)
at at Castle.Facilities.Logging.LoggingFacility.Init()
at at Castle.MicroKernel.Facilities.AbstractFacility.Castle.MicroKernel.IFacility.Init(IKernel kernel, IConfiguration facilityConfig)
at at Castle.MicroKernel.DefaultKernel.AddFacility(String key, IFacility facility)
at at Castle.MicroKernel.DefaultKernel.AddFacility(IFacility facility)
at at Castle.MicroKernel.DefaultKernel.AddFacility[T](Action1 onCreate) at at Castle.Windsor.WindsorContainer.AddFacility[T](Action
1 onCreate)
at BaanApi.Web.Startup.Startup.<>c.<ConfigureServices>b__2_3(AbpBootstrapperOptions options) in C:\Gitee\BaanApi\src\BaanApi.Web\Startup\Startup.cs:51
at Abp.AbpBootstrapper…ctor(Type startupModule, Action1 optionsAction) in D:\Github\aspnetboilerplate\src\Abp\AbpBootstrapper.cs:61 at Abp.AbpBootstrapper.Create[TStartupModule](Action
1 optionsAction) in D:\Github\aspnetboilerplate\src\Abp\AbpBootstrapper.cs:87
at Abp.AspNetCore.AbpServiceCollectionExtensions.AddAbpBootstrapper[TStartupModule](IServiceCollection services, Action1 optionsAction) in D:\Github\aspnetboilerplate\src\Abp.AspNetCore\AspNetCore\AbpServiceCollectionExtensions.cs:95 at Abp.AspNetCore.AbpServiceCollectionExtensions.AddAbp[TStartupModule](IServiceCollection services, Action
1 optionsAction) in D:\Github\aspnetboilerplate\src\Abp.AspNetCore\AspNetCore\AbpServiceCollectionExtensions.cs:37
at BaanApi.Web.Startup.Startup.ConfigureServices(IServiceCollection services) in C:\Gitee\BaanApi\src\BaanApi.Web\Startup\Startup.cs:48
at at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
at at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureApplicationServices()
at at Microsoft.AspNetCore.Hosting.Internal.WebHost.Initialize()
at at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at BaanApi.Web.Startup.Program.Main(String[] args) in C:\Gitee\BaanApi\src\BaanApi.Web\Startup\Program.cs:10
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (5 by maintainers)
@maliming use the template generation. After that, I upgrade it to 4.5 with nuget.
And now, I know the problem, it must keep the Castle version under with 4.3 right now.
closed by https://github.com/aspnetboilerplate/aspnetboilerplate/pull/4539