diff --git a/src/Microsoft.AspNet.Mvc/MvcServices.cs b/src/Microsoft.AspNet.Mvc/MvcServices.cs index 16f81c8cb7..802650cb8d 100644 --- a/src/Microsoft.AspNet.Mvc/MvcServices.cs +++ b/src/Microsoft.AspNet.Mvc/MvcServices.cs @@ -33,9 +33,6 @@ namespace Microsoft.AspNet.Mvc yield return describe.Transient, MvcOptionsSetup>(); - // Only want one ITagHelperActivator so it can cache Type activation information. Types won't conflict. - yield return describe.Singleton(); - yield return describe.Transient(); yield return describe.Singleton(); @@ -69,6 +66,9 @@ namespace Microsoft.AspNet.Mvc // Caches view locations that are valid for the lifetime of the application. yield return describe.Singleton(); + // Only want one ITagHelperActivator so it can cache Type activation information. Types won't conflict. + yield return describe.Singleton(); + yield return describe.Singleton(); // Virtual path view factory needs to stay scoped so views can get get scoped services. yield return describe.Scoped();