[Fixed] #Sitecore – The marketing definition repositories have not been configured.

Posted on Updated on

Been fixing lots of issues with the client project lately, and one of those is the error I encountered in the media library wherein when you click a media item an error will pop up, as show below.

The_marketing_definition_repositories_have_not_been_configured_pop_up_more_details

Pasting the full error traces here.

 

Server Error in ‘/’ Application.

The marketing definition repositories have not been configured.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: The marketing definition repositories have not been configured.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:
[InvalidOperationException: The marketing definition repositories have not been configured.]
Sitecore.Marketing.Definitions.Repository.NotConfiguredRepository.Sitecore.Marketing.Definitions.Repository.IDefinitionRepository<Sitecore.Marketing.Definitions.MarketingAssets.Data.MarketingAssetDefinitionRecord>.Get(ID definitionId, CultureInfo cultureInfo, Boolean includeInactiveVersion) +122
Sitecore.Marketing.Definitions.MarketingAssets.MarketingAssetDefinitionManager.Get(ID id, CultureInfo cultureInfo, Boolean includeInactiveVersion) +103
Sitecore.Marketing.Definitions.MarketingAssets.MarketingAssetDefinitionManager.Get(ID id, CultureInfo cultureInfo) +71
Sitecore.Marketing.Client.Shell.Framework.Commands.Marketing.Assets.DeployAsset.QueryState(CommandContext context) +139
Sitecore.Shell.Framework.Commands.CommandManager.QueryState(Command command, CommandContext context) +38
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.FillParamsFromCommand(CommandContext commandContext, RibbonCommandParams ribbonCommandParams) +284
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.GetCommandParameters(Item controlItem, CommandContext commandContext) +83
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderLargeButton(HtmlTextWriter output, Item button, CommandContext commandContext) +82
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderButton(HtmlTextWriter output, Item button, CommandContext commandContext) +462
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunk(HtmlTextWriter output, Item chunk, CommandContext commandContext) +331
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunk(HtmlTextWriter output, Item chunk, CommandContext commandContext, Boolean isContextual, String id) +205
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunk(HtmlTextWriter output, Item chunk, CommandContext commandContext, Boolean isContextual) +237
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderChunks(HtmlTextWriter output, Item strip, CommandContext commandContext, Boolean isContextual) +437
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderStrips(HtmlTextWriter output, Item ribbon, Boolean isContextual, ListString visibleStripList) +801
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.RenderStrips(HtmlTextWriter output, Item defaultRibbon, Item contextualRibbon, ListString visibleStripList) +283
Sitecore.Web.UI.WebControls.Ribbons.Ribbon.Render(HtmlTextWriter output) +626
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +150
Sitecore.Web.HtmlUtil.RenderControl(Control ctl) +75
Sitecore.Shell.Applications.ContentManager.ContentEditorForm.UpdateRibbon(Item folder, Boolean isCurrentItemChanged, Boolean showEditor) +462
Sitecore.Shell.Applications.ContentManager.ContentEditorForm.Update() +441
Sitecore.Shell.Applications.ContentManager.ContentEditorForm.OnPreRendered(EventArgs e) +212

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +76
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +211
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +35
Sitecore.Reflection.ReflectionUtil.CallMethod(Type type, Object obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Object[] parameters) +37
Sitecore.Reflection.ReflectionUtil.CallMethod(Object obj, String methodName, Boolean includeNonPublic, Boolean includeInherited, Object[] parameters) +66
Sitecore.Shell.Applications.ContentManager.ContentEditorPage.OnPreRender(EventArgs e) +117
System.Web.UI.Control.PreRenderRecursiveInternal() +113
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4297

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34274

Solution:

Make sure that these configurations are existing and enabled.

  1. Sitecore.Marketing.Definitions.MarketingAssets.Repositories.config

Other related configurations you might want to check but they are not mandatory to be able to fix the issue, but still worth noting:

  1. Sitecore.Marketing.Solr.IndexConfiguration.config
  2. Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Solr.Index.Web.config
  3. Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Solr.IndexConfiguration.config
  4. Sitecore.Marketing.Definitions.MarketingAssets.Repositories.Solr.Index.Master.config
  5. Sitecore.Marketing.Search.config
  6. Sitecore.Marketing.Solr.Index.Master.config
  7. Sitecore.Marketing.Solr.Index.Web.config
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s