Hello!
I downloaded fresh version from GIT and run example project. After I wrote "a" letter into the search, exception pop up...
I'm trying to solve this problem but it looks like it's too much for an inexperienced developer like me. Any ideas? Leads?
Requested value 'a' was not found.
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.ArgumentException: Requested value 'a' was not found.
Source Error:
Line 8: {
Line 9: private static readonly Func<string, Type, object> ParseValue =
Line 10: (input, t) => t.IsEnum ? Enum.Parse(t, input) : Convert.ChangeType(input, t);
Line 11:
Line 12: internal static string FilterMethod(string q, List parametersForLinqQuery, Type type)
Source File: c:\Users\Tom\Desktop\data tables novo\Mvc.JQuery.Datatables\TypeFilters.cs Line: 10
Stack Trace:
[ArgumentException: Requested value 'a' was not found.]
System.EnumResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument) +4054659
System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult) +10736103
System.Enum.Parse(Type enumType, String value, Boolean ignoreCase) +78
System.Enum.Parse(Type enumType, String value) +6
Mvc.JQuery.Datatables.TypeFilters.<.cctor>b__3(String input, Type t) in c:\Users\Tom\Desktop\data tables novo\Mvc.JQuery.Datatables\TypeFilters.cs:10
Mvc.JQuery.Datatables.TypeFilters.EnumFilter(String q, String columnname, Type type, List1 parametersForLinqQuery) in c:\Users\Tom\Desktop\data tables novo\Mvc.JQuery.Datatables\TypeFilters.cs:172 Mvc.JQuery.Datatables.<>c__DisplayClass1.<Guard>b__0(String q, String c, Type t, List
1 p) in c:\Users\Tom\Desktop\data tables novo\Mvc.JQuery.Datatables\DataTablesFilter.cs:88
Mvc.JQuery.Datatables.<>c__DisplayClassc.b__5(ReturnedFilteredQueryForType f) in c:\Users\Tom\Desktop\data tables novo\Mvc.JQuery.Datatables\DataTablesFilter.cs:101
System.Linq.WhereSelectListIterator2.MoveNext() +104 System.Linq.Enumerable.FirstOrDefault(IEnumerable
1 source, Func2 predicate) +161 Mvc.JQuery.Datatables.<>c__DisplayClass9.<GetFilterClause>b__4(String queryPart) in c:\Users\Tom\Desktop\data tables novo\Mvc.JQuery.Datatables\DataTablesFilter.cs:100 System.Linq.WhereSelectArrayIterator
2.MoveNext() +66
System.Linq.WhereEnumerableIterator1.MoveNext() +85 System.Linq.Buffer
1..ctor(IEnumerable1 source) +216 System.Linq.Enumerable.ToArray(IEnumerable
1 source) +77
Mvc.JQuery.Datatables.DataTablesFilter.GetFilterClause(String query, ColInfo column, List1 parametersForLinqQuery) in c:\Users\Tom\Desktop\data tables novo\Mvc.JQuery.Datatables\DataTablesFilter.cs:104 Mvc.JQuery.Datatables.DataTablesFilter.FilterPagingSortingSearch(DataTablesParam dtParameters, IQueryable data, ColInfo[] columns) in c:\Users\Tom\Desktop\data tables novo\Mvc.JQuery.Datatables\DataTablesFilter.cs:20 Mvc.JQuery.Datatables.DataTablesResult
2.GetResults(IQueryable1 data, DataTablesParam param) in c:\Users\Tom\Desktop\data tables novo\Mvc.JQuery.Datatables\DataTablesResult.cs:109 Mvc.JQuery.Datatables.DataTablesResult
2..ctor(IQueryable1 q, DataTablesParam dataTableParam, Expression
1 transform) in c:\Users\Tom\Desktop\data tables novo\Mvc.JQuery.Datatables\DataTablesResult.cs:73
Mvc.JQuery.Datatables.DataTablesResult.Create(IQueryable1 q, DataTablesParam dataTableParam, Expression
1 transform) in c:\Users\Tom\Desktop\data tables novo\Mvc.JQuery.Datatables\DataTablesResult.cs:17
Mvc.JQuery.Datatables.Example.Controllers.HomeController.GetUsers(DataTablesParam dataTableParam) in c:\Users\Tom\Desktop\data tables novo\Mvc.JQuery.Datatables.Example\Controllers\HomeController.cs:33
lambda_method(Closure , ControllerBase , Object[] ) +180
System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary2 parameters) +214 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary
2 parameters) +27
System.Web.Mvc.<>c__DisplayClass15.b__12() +55
System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func1 continuation) +253 System.Web.Mvc.<>c__DisplayClass17.<InvokeActionMethodWithFilters>b__14() +21 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList
1 filters, ActionDescriptor actionDescriptor, IDictionary2 parameters) +191 System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324 System.Web.Mvc.Controller.ExecuteCore() +106 System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +91 System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10 System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +34 System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +19 System.Web.Mvc.Async.<>c__DisplayClass8
1.b__7(IAsyncResult _) +10
System.Web.Mvc.Async.WrappedAsyncResult`1.End() +62
System.Web.Mvc.<>c__DisplayClasse.b__d() +48
System.Web.Mvc.SecurityUtil.b__0(Action f) +7
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9628700
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155