title: Could not load type 'Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ITypeRegistrationsProvider
body: <p>I recently tried to implement authentication using asp.net identity with 4.6.1 framework.
  After installing all the required packages I am getting the following error when running the application.</p>
  
  <blockquote>
    <p>"Could not load type
    'Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ITypeRegistrationsProvider"</p>
  </blockquote>
  
  <p>The same application works fine when all the packages related to identity are uninstalled.</p>
  
  <p>Full stack trace is as follows</p>
  
  <blockquote>
    <p>[TypeLoadException: Could not load type
    'Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ITypeRegistrationsProvider'
    from assembly 'Microsoft.Practices.EnterpriseLibrary.Common,
    Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.]<br>
    System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule
    pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob,
    Int32* pcNamedArgs) +0<br>
    System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module,
    IRuntimeMethodInfo ctor, IntPtr&amp; blob, IntPtr blobEnd, Int32&amp;
    namedArgs) +38<br>
    System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule
    decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount,
    RuntimeType attributeFilterType, Boolean mustBeInheritable, IList
    derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +571 
    System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly
    assembly, RuntimeType caType) +103<br>
    System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit)
    +37    Owin.Loader.DefaultLoader.SearchForStartupAttribute(String friendlyName, IList<code>1 errors, Boolean&amp; conflict) +294<br>
    Owin.Loader.DefaultLoader.GetDefaultConfiguration(String friendlyName,
    IList</code>1 errors) +105<br>
    Owin.Loader.DefaultLoader.LoadImplementation(String startupName,
    IList<code>1 errorDetails) +161    Owin.Loader.DefaultLoader.Load(String
    startupName, IList</code>1 errorDetails) +51<br>
    Microsoft.Owin.Host.SystemWeb.OwinBuilder.GetAppStartup() +238<br>
    Microsoft.Owin.Host.SystemWeb.OwinHttpModule.InitializeBlueprint()
    +103    System.Threading.LazyInitializer.EnsureInitializedCore(T&amp; target, Boolean&amp; initialized, Object&amp; syncLock, Func<code>1 valueFactory)
    +115    System.Threading.LazyInitializer.EnsureInitialized(T&amp; target, Boolean&amp; initialized, Object&amp; syncLock, Func</code>1 valueFactory) +72<br>
    Microsoft.Owin.Host.SystemWeb.OwinHttpModule.Init(HttpApplication
    context) +104<br>
    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
    appContext, HttpContext context, MethodInfo[] handlers) +534<br>
    System.Web.HttpApplication.InitSpecial(HttpApplicationState state,
    MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172<br>
    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
    appContext, HttpContext context) +352<br>
    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
    appContext) +296</p>
    
    <p>[HttpException (0x80004005): Could not load type
    'Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ContainerModel.ITypeRegistrationsProvider'
    from assembly 'Microsoft.Practices.EnterpriseLibrary.Common,
    Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.]<br>
    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9947380 
    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
    +101    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
    wr, HttpContext context) +261</p>
  </blockquote>
  
  <p>It would be a great help if some one helps, I am struck for a week.</p>
  
  <p>please let me know if any more information is required</p>
  
  <p>Thanks in advance.</p>