Error when rendering search result for custom content type

I have a custom content type that is ISearchableContentType

The content is getting indexed in Solr (I can see the XML document) but when I try search for it on the search results page, I get this ContentFragmentRenderingError - not sure why as i have another content type that works just fine.

UnknownException: An error occurred while rendering the 'results.vm' script from the widget 'Search Result List' (46ece83160e84ca58a06c153e9f4719d) in theme 3fc3f82483d14ec485ef92e206116d49 (An error occurred while trying to render a widget. Details of the issue were logged for review by the administrator.) ---> NVelocity.Exception.MethodInvocationException: Invocation of method 'ViewHtml' in  Telligent.Evolution.Extensibility.Api.Entities.Version1.SearchResult threw exception System.InvalidCastException : Object must implement IConvertible. ---> System.InvalidCastException: Object must implement IConvertible.
   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType, Boolean& coercedToDataFeed, Boolean& typeChanged, Boolean allowStreaming)
   --- End of inner exception stack trace ---
   at NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context)
   at NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context)
   at NVelocity.Runtime.Parser.Node.ASTSetDirective.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Runtime.Parser.Node.ASTBlock.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Runtime.Directive.Foreach.Render(IInternalContextAdapter context, TextWriter writer, INode node)
   at NVelocity.Runtime.Parser.Node.ASTDirective.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Runtime.Parser.Node.ASTBlock.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Runtime.Parser.Node.ASTIfStatement.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Template.Merge(IContext context, TextWriter writer)
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.<>c__DisplayClass38_1.<RenderScriptInternal>b__0()
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentOutputCachingService.Get(ScriptedContentFragment fragment, String cacheKey, Boolean cacheable, Func`1 getRenderedOutput)
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.RenderScriptInternal(ScriptedContentFragment contentFragment, NameValueCollection parameters, IPropertyTemplateOptions propertyOptions, String templateName, String internalId, String wrapperId, Boolean throwExceptions, String cacheKey, ScriptLanguage language, String friendlyTemplateName, IDictionary`2 additionalContext)
   --- End of inner exception stack trace ---
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentLoggingService.LogRenderingError(Exception ex, ScriptedContentFragmentData data, String friendlyScriptName)
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.RenderScriptInternal(ScriptedContentFragment contentFragment, NameValueCollection parameters, IPropertyTemplateOptions propertyOptions, String templateName, String internalId, String wrapperId, Boolean throwExceptions, String cacheKey, ScriptLanguage language, String friendlyTemplateName, IDictionary`2 additionalContext)
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.RenderScript(ScriptedContentFragment fragment, NameValueCollection parameters, String fileName, String internalId, String wrapperId, Boolean throwExceptions, IDictionary`2 additionalContext)
   at Telligent.Evolution.VelocityExtensions.UI.PagedContent(String contentFileName, IDictionary options)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at NVelocity.Runtime.Parser.Node.ASTMethod.Execute(Object o, IInternalContextAdapter context)
   at NVelocity.Runtime.Parser.Node.ASTReference.Execute(Object o, IInternalContextAdapter context)
   at NVelocity.Runtime.Parser.Node.ASTReference.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Runtime.Parser.Node.ASTBlock.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Runtime.Parser.Node.ASTIfStatement.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Runtime.Parser.Node.SimpleNode.Render(IInternalContextAdapter context, TextWriter writer)
   at NVelocity.Template.Merge(IContext context, TextWriter writer)
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.<>c__DisplayClass38_1.<RenderScriptInternal>b__0()
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentOutputCachingService.Get(ScriptedContentFragment fragment, String cacheKey, Boolean cacheable, Func`1 getRenderedOutput)
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.RenderScriptInternal(ScriptedContentFragment contentFragment, NameValueCollection parameters, IPropertyTemplateOptions propertyOptions, String templateName, String internalId, String wrapperId, Boolean throwExceptions, String cacheKey, ScriptLanguage language, String friendlyTemplateName, IDictionary`2 additionalContext)
   at Telligent.Evolution.ScriptedContentFragments.Implementations.ScriptedContentFragmentRenderingService.RenderScript(ScriptedContentFragment fragment, NameValueCollection parameters, ScriptedContentFragmentScriptType scriptType, String internalId, String wrapperId, Boolean throwExceptions, String cacheKey)
   at Telligent.Evolution.ScriptedContentFragments.ScriptedContentFragment.RenderContent(TextWriter writer, ContentFragmentRenderOptions options)
   at Telligent.Evolution.Controls.FragmentWrapper.CreateChildControls()
   at System.Web.UI.Control.EnsureChildControls()
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at Telligent.Evolution.Controls.ContentFragmentContainer.RenderSortableConfiguredContentFragment(SortableConfiguredContentFragment fragment)
   at Telligent.Evolution.Controls.ContentFragmentContainer.BuildPage(LayoutType layoutType, Func`2 contentFragmentFunction, Boolean renderRegions, Boolean renderFragments, Boolean orderResponsively)
   at Telligent.Evolution.Controls.ContentFragmentContainer.CreateChildControls()
   at System.Web.UI.Control.EnsureChildControls()
   at Telligent.Evolution.Controls.ContentFragmentContainer.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
   at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
   at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
   at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)

Parents Reply Children
No Data