Abp+signalR产生Abp.Castle.Log4Net问题

abp项目加载了abp.signalR包之后出现的问题,

“/”应用程序中的服务器错误。

程序集“Abp.Castle.Log4Net, Version=4.3.0.0, Culture=neutral, PublicKeyToken=null”中的类型“Abp.Castle.Logging.Log4Net.Log4NetLogger”的方法“get_IsTraceEnabled”没有实现。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.TypeLoadException: 程序集“Abp.Castle.Log4Net, Version=4.3.0.0, Culture=neutral, PublicKeyToken=null”中的类型“Abp.Castle.Logging.Log4Net.Log4NetLogger”的方法“get_IsTraceEnabled”没有实现。

protected override void Application_Start(object sender, EventArgs e)

{

AbpBootstrapper.IocManager.IocContainer.AddFacility(

f => f.UseAbpLog4Net().WithConfig(Server.MapPath("log4net.config"))

);

堆栈跟踪:

[TypeLoadException: 程序集“Abp.Castle.Log4Net, Version=4.3.0.0, Culture=neutral, PublicKeyToken=null”中的类型“Abp.Castle.Logging.Log4Net.Log4NetLogger”的方法“get_IsTraceEnabled”没有实现。]

Abp.Castle.Logging.Log4Net.Log4NetLoggerFactory.Create(String name) +0

Castle.Facilities.Logging.LoggingFacility.RegisterDefaultILogger(ILoggerFactory factory) +339

Castle.Facilities.Logging.LoggingFacility.Init() +67

Castle.MicroKernel.Facilities.AbstractFacility.Castle.MicroKernel.IFacility.Init(IKernel kernel, IConfiguration facilityConfig) +31

Castle.MicroKernel.DefaultKernel.AddFacility(IFacility facility) +176

Castle.MicroKernel.DefaultKernel.AddFacility(Action`1 onCreate) +76

Castle.Windsor.WindsorContainer.AddFacility(Action`1 onCreate) +61

AirCatering.Web.MvcApplication.Application_Start(Object sender, EventArgs e) in E:\DJcompany\AirCatering\src\AirCatering.Web\Global.asax.cs:13

[HttpException (0x80004005): 程序集“Abp.Castle.Log4Net, Version=4.3.0.0, Culture=neutral, PublicKeyToken=null”中的类型“Abp.Castle.Logging.Log4Net.Log4NetLogger”的方法“get_IsTraceEnabled”没有实现。]

System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +475

System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118

System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176

System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +220

System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +303

[HttpException (0x80004005): 程序集“Abp.Castle.Log4Net, Version=4.3.0.0, Culture=neutral, PublicKeyToken=null”中的类型“Abp.Castle.Logging.Log4Net.Log4NetLogger”的方法“get_IsTraceEnabled”没有实现。]

System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +658

System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +89

System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +188

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐