在调用API帮助页上找不到ServiceLocatorImplBase.cs

在调用API帮助页上找不到ServiceLocatorImplBase.cs,api,asp.net-mvc-4,Api,Asp.net Mvc 4,当我为api文档取消注释这一行时 //// Uncomment the following to use the documentation from XML documentation file. config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data/BitCoinWrapperAPI.xml"))); 我收到一个错误:

当我为api文档取消注释这一行时

//// Uncomment the following to use the documentation from XML documentation file.
     config.SetDocumentationProvider(new  XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data/BitCoinWrapperAPI.xml")));
我收到一个错误:

在Microsoft.Practices.ServiceLocation.dll中发生“Microsoft.Practices.ServiceLocation.ActivationException”类型的异常,但未在用户代码中处理

其他信息:尝试获取HelpController类型的实例时发生激活错误,键为“”


当我调用API的
帮助控制器
中的
索引
页面时,有人知道为什么吗?

我添加了这一行,它毫无例外地工作

ObjectFactory.Configure(x => x.SelectConstructor(() => new HelpController()));