question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

System.TypeLoadException: Method 'get_IsTraceEnabled'

See original GitHub issue

Hi,

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](Action1 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](Action1 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, Action1 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:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
univerisecommented, Apr 11, 2019

@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.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - TypeLoadException says 'no implementation', but it is ...
One method, targetting .NET 2, returned a type from v2 of System.Windows.Forms. Its overridden implementation in a .NET 4-targetted assembly ...
Read more >
TypeLoadException Class (System)
TypeLoadException is thrown when the common language runtime cannot find the assembly, the type within the assembly, or cannot load the type.
Read more >
"System.TypeLoadException[...]" while attempting to start ...
Issue: Users reported that Dynamo and Dynamo Player cannot be launched from Revit. The following message is displayed: System.TypeLoadException: ...
Read more >
System.TypeLoadException: Method ' ...
I have a fresh VS2019 installation. I create a new console app (.NET Core or .NET 4.6.1). In both cases I get an...
Read more >
Method 'DisposeAsync' in type 'System.Text.Json. ...
I'm using Start Job activity, but I keep getting this error even though I've downgraded the version. This does not happen in my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found