hi all, am trying to implement multiple languages for my project.
so am following this article http://jondjones.com/creating-a-multi-language-picker-in-episerver/.
when i am implemented code like above am getting error. the error is
No default Instance is registered and cannot be automatically determined for type 'EPiServerSites.Business.ContentRepository.IContentRepositoryFactory'
There is no configuration specified for EPiServerSites.Business.ContentRepository.IContentRepositoryFactory
1.) new EpiServerDependencies(*Default of IContentRepositoryFactory*, *Default of ILinkResolverFactory*, *Default of IContextResolverFactory*)
2.) EPiServerSites.Business.EpiServerDependencies
3.) Instance of EPiServerSites.Business.EpiServerDependencies
4.) Container.GetInstance(EPiServerSites.Business.EpiServerDependencies)
am getting this error at BaseBlockController.
am using StructureMapDependencyResolver which is came predefind.
and both class files are below.
namespace EPiServerSites.Business.ContentRepository { public interface IContentRepositoryFactory { IContentRepository GetContentRepository(); } } namespace EPiServerSites.Business.ContentRepository { public class ContentRepositoryFactory : IContentRepositoryFactory { internal Injected ContentRepositoryService; public IContentRepository GetContentRepository() { return ContentRepositoryService.Service; } } } Base block controller is public abstract class BaseBlockController : BlockController where TBlockData : BlockData { private Injected epiServerDependencies; private Injected routeHelper; [DefaultConstructor] public BaseBlockController() { } protected PageData CurrentPage { get { return routeHelper.Service.Page; } } protected EpiServerDependencies EpiServerDependencies { get { var value = epiServerDependencies.Service; value.CurrentPage = CurrentPage; return value; } } }