Closed ghd258 closed 7 years ago
At the time of the exception, the container was: Resolving System.Web.Mvc.ITempDataProviderFactory,(none)
Source=<无法计算异常源> StackTrace: 在 Unity.UnityContainer.BuildUp(Type typeToBuild, Object existing, String name, ResolverOverride[] resolverOverrides) 在 C:\projects\unity\Container\src\UnityContainer.cs 中: 第 215 行 在 Unity.UnityContainer.Resolve(Type type, String name, ResolverOverride[] resolverOverrides) 在 C:\projects\unity\Container\src\UnityContainer.cs 中: 第 163 行 在 Unity.UnityContainerExtensions.Resolve(IUnityContainer container, Type t, ResolverOverride[] overrides) 在 Unity.Mvc.UnityDependencyResolver.GetService(Type serviceType)
内部异常 1: InvalidOperationException: The current type, System.Web.Mvc.ITempDataProviderFactory, is an interface and cannot be constructed. Are you missing a type mapping?
I am working on this.
Can you please post your code? How are you initializing Unity?
I am guessing it is no longer relevant
Unity.Exceptions.ResolutionFailedException:“Resolution of the dependency failed, type = 'System.Web.Mvc.ITempDataProviderFactory', name = '(none)'. Exception occurred while: while resolving. Exception is: InvalidOperationException - The current type, System.Web.Mvc.ITempDataProviderFactory, 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.Mvc.ITempDataProviderFactory,(none)