Ninject crashes on application start on appharbor

后端 未结 2 1798
深忆病人
深忆病人 2021-02-07 20:16

I am using Ninject on my MVC 3 project deployed on appharbor. I noticed that I get an exception when the application is started, and it looks like something inside Ninject is th

相关标签:
2条回答
  • 2021-02-07 20:38

    The problem is not caused by Ninject. It is NewRelic.Agent.Core.AgentShim (used by AppHarbor) that is the culprit.

    Although looking at the stacktrace, I think you can work around this problem by disabling Ninject's automatic extenison loading feature and load them manually.

    var kernel = new StandardKernel(new NinjectSettings { LoadExtensions = false })
    kernel.Load(new Ninject.Web.Mvc.MvcModule()); // same for all other extension modules
    
    0 讨论(0)
  • 2021-02-07 20:48

    We've temporarily disabled the New Relic add-on and removed the New Relic agent from AppHarbor servers. We'll re-add New Relic once it's no longer causing problems for applications running on the platform.

    0 讨论(0)
提交回复
热议问题