-1
Я становлюсь ниже ошибки, что может быть причиной.IBodyModelValidator Вам не хватает типов?
Я только что создал один новый контроллер, для других контроллеров его рабочий режим.
Error:
Resolution of the dependency failed, type = "System.Web.Http.Validation.IBodyModelValidator", name = "(none)".
Exception occurred while: while resolving.
Exception is: InvalidOperationException - The current type, System.Web.Http.Validation.IBodyModelValidator, is an interface and cannot be constructed. Are you missing a type mapping?
-----------------------------------------------
At the time of the exception, the container was:
Resolving System.Web.Http.Validation.IBodyModelValidator,(none)
И его падение в нижней строке.
public object GetService(Type serviceType)
{
if (this.Container == null)
{
throw new ObjectDisposedException("this", "This scope has already been disposed.");
}
try
{
return this.Container.Resolve(serviceType);
}
catch (ResolutionFailedException)
{
return null;
}
}
Может быть, я не понимаю свой вопрос, пожалуйста, дайте мне знать.