diff --git a/src/Microsoft.AspNet.Mvc/MvcServices.cs b/src/Microsoft.AspNet.Mvc/MvcServices.cs index 114fba6b45..49a247c7ec 100644 --- a/src/Microsoft.AspNet.Mvc/MvcServices.cs +++ b/src/Microsoft.AspNet.Mvc/MvcServices.cs @@ -79,7 +79,9 @@ namespace Microsoft.AspNet.Mvc // Dataflow - ModelBinding, Validation and Formatting - yield return describe.Transient(); + // The DataAnnotationsModelMetadataProvider does significant caching of reflection/attributes + // and thus needs to be singleton. + yield return describe.Singleton(); yield return describe.Transient(); yield return describe.Scoped();