I\'m using Web.api and Unity and I am getting the following error when trying to open the default \"help\" area:
[InvalidOperationException: The type String cann
I think a better way is to add InjectionConstructor attribute to the default constructor. This attribute forces unity to use the decorated constructor.
Example:
public class HelpController : Controller
{
private const string ErrorViewName = "Error";
[InjectionConstructor]
public HelpController()
: this(GlobalConfiguration.Configuration)
{
}