Skip to content

Mvc.JQuery.DataTables.Common's dependency on System.Linq.Dynamic.Core causes run-time error in an ASP.NET app #165

@MrCsabaToth

Description

@MrCsabaToth

Mvc.JQuery.DataTables.Common (latest is 1.5.34) depends on System.Linq.Dynamic.Core.1.0.6.13. Problem is that System.Linq.Dynamic.Core now has version 1.0.7.5. Even though these are stepping version changes only, when I upgrade System.Linq.Dynamic.Core to the latest I get a run-time error:

System.IO.FileLoadException: 'Could not load file or assembly 'System.Linq.Dynamic.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0f07ec44de6ac832' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'

When I try to create the return data:

 public DataTablesResult<CheckItemModel> GetCalculationCheckData(DataTablesParam dataTableParam)
    {
        ...
        var calculationChecks = EngineController.getCalculationChecks(id);
        var queryable = calculationChecks.AsQueryable().InterceptWith(new SetComparerExpressionVisitor(StringComparison.CurrentCultureIgnoreCase));
        return DataTablesResult.Create(queryable, dataTableParam, null);  // Here I get the error
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions