Ninject crashes on application start on appharbor

我是研究僧i 提交于 2019-12-03 06:28:58
Remo Gloor

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!