Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Aximili 177 posts 278 karma points
    Jun 07, 2011 @ 07:09
    Aximili
    0

    TargetInvocationException when trying Examine

    I was trying to implement site search to my existing Umbraco website, following the video tutorial on Examine.

    Now, everytime I open a document type under Settings, it gives me this error.

    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Input parameter 'controlId' cannot be an empty string.
       at System.Web.Util.StringUtil.CheckAndTrimString(String paramValue, String paramName, Boolean throwIfNull, Int32 lengthToCheck)
       at System.Web.UI.ClientScriptManager.RegisterExpandoAttribute(String controlId, String attributeName, String attributeValue, Boolean encode)
       at System.Web.UI.ScriptRegistrationManager.RegisterExpandoAttribute(Control control, String controlId, String attributeName, String attributeValue, Boolean encode)
       at System.Web.UI.ScriptManager.RegisterExpandoAttribute(Control control, String controlId, String attributeName, String attributeValue, Boolean encode)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at System.Web.UI.WebControls.ValidatorCompatibilityHelper.RegisterExpandoAttribute(Control control, String controlId, String attributeName, String attributeValue, Boolean encode)
       at System.Web.UI.WebControls.BaseValidator.AddAttributesToRender(HtmlTextWriter writer)
       at System.Web.UI.WebControls.RequiredFieldValidator.AddAttributesToRender(HtmlTextWriter writer)
       at System.Web.UI.WebControls.WebControl.RenderBeginTag(HtmlTextWriter writer)
       at System.Web.UI.WebControls.BaseValidator.Render(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
       at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
       at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
       at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
       at umbraco.uicontrols.PropertyPanel.Render(HtmlTextWriter writer)

    I tried restoring ExamineIndex.config and ExamineSettings.config as far as I could remember, but the error persists.

    Any idea how to fix this? Thanks in advance.

  • Aximili 177 posts 278 karma points
    Jun 07, 2011 @ 08:30
    Aximili
    1

    This was because I changed the clientIdMode in web.config

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Jan 09, 2012 @ 20:58
    Rasmus Fjord
    0

    THX so much been looking for why this error was thrown

  • wschwarte 44 posts 73 karma points
    Apr 21, 2015 @ 13:13
    wschwarte
    0

    glad to found this!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies