Server Error in '/' Application.

Unable to convert type `System.Collections.Generic.HashSet`1[Locations.BLL.Entities.Location_Type]` to `System.Collections.Generic.List`1[Locations.BLL.Entities.Location_Type]`

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: Scriban.Syntax.ScriptRuntimeException: Unable to convert type `System.Collections.Generic.HashSet`1[Locations.BLL.Entities.Location_Type]` to `System.Collections.Generic.List`1[Locations.BLL.Entities.Location_Type]`

Source Error:


Line 68: 
Line 69:             Dim tempThing = Template.Parse(input)
Line 70:             Dim resultStuff = tempThing.Render(context)
Line 71: 
Line 72: 

Source File: e:\iisroot\eom-2017\views\locations\location-details.ascx.vb    Line: 70

Stack Trace:


[ScriptRuntimeException: Unable to convert type `System.Collections.Generic.HashSet`1[Locations.BLL.Entities.Location_Type]` to `System.Collections.Generic.List`1[Locations.BLL.Entities.Location_Type]`]
   Scriban.TemplateContext.ToObject(SourceSpan span, Object value, Type destinationType) +1055
   Scriban.Runtime.GenericFunctionWrapper.Invoke(TemplateContext context, ScriptNode callerContext, ScriptArray arguments, ScriptBlockStatement blockStatement) +850

[ScriptRuntimeException: Unable to convert parameter #0 of type `System.Collections.Generic.HashSet`1[Locations.BLL.Entities.Location_Type]` to type `System.Collections.Generic.List`1[Locations.BLL.Entities.Location_Type]`]
   Scriban.Runtime.GenericFunctionWrapper.Invoke(TemplateContext context, ScriptNode callerContext, ScriptArray arguments, ScriptBlockStatement blockStatement) +2294
   Scriban.Syntax.ScriptFunctionCall.Call(TemplateContext context, ScriptNode callerContext, Object functionObject, Boolean processPipeArguments, List`1 arguments) +1242
   Scriban.Syntax.ScriptFunctionCall.Evaluate(TemplateContext context) +96
   Scriban.TemplateContext.Evaluate(ScriptNode scriptNode, Boolean aliasReturnedFunction) +86
   Scriban.Syntax.ScriptIfStatement.Evaluate(TemplateContext context) +131
   Scriban.TemplateContext.Evaluate(ScriptNode scriptNode, Boolean aliasReturnedFunction) +86
   Scriban.Syntax.ScriptBlockStatement.Evaluate(TemplateContext context) +166
   Scriban.TemplateContext.Evaluate(ScriptNode scriptNode, Boolean aliasReturnedFunction) +86
   Scriban.Syntax.ScriptPage.Evaluate(TemplateContext context) +24
   Scriban.TemplateContext.Evaluate(ScriptNode scriptNode, Boolean aliasReturnedFunction) +86
   Scriban.Template.EvaluateAndRender(TemplateContext context, Boolean render) +118
   Scriban.Template.Render(TemplateContext context) +23
   views_location_details.bindDetails() in e:\iisroot\eom-2017\views\locations\location-details.ascx.vb:70
   views_location_details.ControlLoad(Object sender, EventArgs e) in e:\iisroot\eom-2017\views\locations\location-details.ascx.vb:48
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +154
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Control.LoadRecursive() +251
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4082


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