tags:

views:

88

answers:

0

I'm currently have a Could not load ExternalIdentityProvider when i tried to run my ioc class

container = new UnityContainer();
UnityConfigurationSection unitySection = ConfigurationManager.GetSection(unitySectionName) as UnityConfigurationSection;
unitySection.Containers.Default.Configure(container);

Could not load type 'ExternalIdentityProvider' from assembly 'Microsoft.Practices.Unity.Configuration, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

This is my unity configuration:

  <!-- User-defined type aliases -->

  <!--Repositories interfaces-->
  <typeAlias alias="ICrudeVideoRepository"
           type="DalCore.Repository.ICrudeVideoRepository, DalCore" />

  <!--Repositories Classes-->
  <typeAlias alias="CrudeVideoSqlRepository"
             type="SqlServerDAL.Repository.CrudeVideoSqlRepository, SqlServerDAL" />

</typeAliases>

<containers>
  <container>
    <types>

      <!--Repositories Maps-->
      <type type="ICrudeVideoRepository" mapTo="CrudeVideoSqlRepository" />
        </typeConfig>
      </type>
    </types>
  </container>
</containers>