# Filtering a dropdown throws an error

**URL:** <https://forum.radzen.com/t/filtering-a-dropdown-throws-an-error/16968>\
**Category:** Radzen.Blazor Components\
**Created:** [April 8, 2024, 3:37pm UTC](https://forum.radzen.com/t/filtering-a-dropdown-throws-an-error/16968 "2024-04-08T15:37:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua\_Serwatien](https://forum.radzen.com/user_avatar/forum.radzen.com/joshua_serwatien/32/17936_2.png) [@Joshua\_Serwatien](https://forum.radzen.com/u/Joshua_Serwatien)\
**Post date:** [April 8, 2024, 3:37pm UTC](https://forum.radzen.com/t/filtering-a-dropdown-throws-an-error/16968/1 "2024-04-08T15:37:23Z")

</div>

Hi. This is something I've done a million times, but for some reason in my new project it's not working. I have a dropdown, and every time I try filtering it, it throws an error. Any ideas? I tried filtering a number and a string, and I tried saving the value binding to a string and an int. Thank you

DropDown:  
\<RadzenDropDown FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive" FilterOperator="StringFilterOperator.Contains"  
TValue="int" AllowFiltering="true" TextProperty="UtilityName" ValueProperty="UtilityKey"  
@bind-Value=PageModel.RequestInput.UtilityKey Multiple="false" Placeholder="Selected LDC" Change="FilterZones"  
Data=@AppState.CurrentUser.StartUpObjects.UtilityList  
Class="form-control" /\>

Error:  
blazor.server.js:1 [2024-04-08T15:20:30.218Z] Error: System.IO.FileNotFoundException: Could not load file or assembly 'nunit.framework, Version=2.1.4.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77'. The system cannot find the file specified.  
File name: 'nunit.framework, Version=2.1.4.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77'  
at System.ModuleHandle.ResolveType(QCallModule module, Int32 typeToken, IntPtr\* typeInstArgs, Int32 typeInstCount, IntPtr\* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)  
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle typeInstantiationContext, RuntimeTypeHandle methodInstantiationContext)  
at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type genericTypeArguments, Type genericMethodArguments)  
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(MetadataToken caCtorToken, MetadataImport& scope, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder`1& derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctorWithParameters, Boolean& isVarArg) at System.Reflection.CustomAttribute.IsCustomAttributeDefined(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Int32 attributeCtorToken, Boolean mustBeInheritable) at System.Reflection.CustomAttribute.IsDefined(RuntimeType type, RuntimeType caType, Boolean inherit) at System.Linq.Dynamic.Core.CustomTypeProviders.AbstractDynamicLinqCustomTypeProvider.<>c.<GetAssemblyTypesWithDynamicLinqTypeAttribute>b__3_0(Type t) at System.Linq.Enumerable.WhereArrayIterator`1.MoveNext()  
at System.Linq.Enumerable.DistinctIterator`1.MoveNext() at System.Linq.Dynamic.Core.CustomTypeProviders.AbstractDynamicLinqCustomTypeProvider.GetAssemblyTypesWithDynamicLinqTypeAttribute(IEnumerable`1 assemblies)+MoveNext()  
at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)  
at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer) at System.Linq.Enumerable.DistinctIterator`1.ToArray()  
at System.Linq.Dynamic.Core.CustomTypeProviders.AbstractDynamicLinqCustomTypeProvider.FindTypesMarkedWithDynamicLinqTypeAttribute(IEnumerable`1 assemblies) at System.Linq.Dynamic.Core.CustomTypeProviders.DefaultDynamicLinqCustomTypeProvider.GetCustomTypesInternal() at System.Linq.Dynamic.Core.CustomTypeProviders.DefaultDynamicLinqCustomTypeProvider.GetCustomTypes() at System.Linq.Dynamic.Core.Parser.KeywordsHelper..ctor(ParsingConfig config) at System.Linq.Dynamic.Core.Parser.ExpressionParser..ctor(ParameterExpression[] parameters, String expression, Object[] values, ParsingConfig parsingConfig) at System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(Type delegateType, ParsingConfig parsingConfig, Boolean createParameterCtor, ParameterExpression[] parameters, Type resultType, String expression, Object[] values) at System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(ParsingConfig parsingConfig, Boolean createParameterCtor, ParameterExpression[] parameters, Type resultType, String expression, Object[] values) at System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(ParsingConfig parsingConfig, Boolean createParameterCtor, Type itType, Type resultType, String expression, Object[] values) at System.Linq.Dynamic.Core.DynamicQueryableExtensions.Where(IQueryable source, ParsingConfig config, String predicate, Object[] args) at Radzen.DropDownBase`1.get\_View()  
at Radzen.Blazor.RadzenDropDown`1.BuildRenderTree(RenderTreeBuilder \_\_builder)  
at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)  
log @ blazor.server.js:1

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [April 8, 2024, 3:45pm UTC](https://forum.radzen.com/t/filtering-a-dropdown-throws-an-error/16968/2 "2024-04-08T15:45:49Z")

</div>

> [@Joshua\_Serwatien](#):
>
> TextProperty="UtilityName

Check if you have such property.

---

<div class="post-metadata">

**Author:** ![Joshua\_Serwatien](https://forum.radzen.com/user_avatar/forum.radzen.com/joshua_serwatien/32/17936_2.png) [@Joshua\_Serwatien](https://forum.radzen.com/u/Joshua_Serwatien)\
**Post date:** [April 8, 2024, 3:47pm UTC](https://forum.radzen.com/t/filtering-a-dropdown-throws-an-error/16968/3 "2024-04-08T15:47:01Z")

</div>

Yes. In fact, everything works fine (selecting, etc) except when I try filtering:  
public class UtilityEntity  
{  
public int UtilityKey { get; set; }  
public string UtilityName { get; set; }  
public int SystemID { get; set; }  
public string ISO { get; set; }  
}

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [April 8, 2024, 3:48pm UTC](https://forum.radzen.com/t/filtering-a-dropdown-throws-an-error/16968/4 "2024-04-08T15:48:30Z")

</div>

Not sure in this case what’s causing this exception.

---

<div class="post-metadata">

**Author:** ![Joshua\_Serwatien](https://forum.radzen.com/user_avatar/forum.radzen.com/joshua_serwatien/32/17936_2.png) [@Joshua\_Serwatien](https://forum.radzen.com/u/Joshua_Serwatien)\
**Post date:** [April 15, 2024, 3:31pm UTC](https://forum.radzen.com/t/filtering-a-dropdown-throws-an-error/16968/5 "2024-04-15T15:31:45Z")

</div>

I upgraded the version from 4.16.4 to 4.29.7 and it just started working. Thank you
