question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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
    }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mcintyre321commented, Jul 4, 2017

I think if this is going to cause lots of people problems, it’s probably worth updating the dependency withing Mvc.Jquery.DataTables - can you send me a PR with the updated dependency? I’ll merge it and get a new version out ASAP.

On 4 July 2017 at 01:44, Csaba Toth notifications@github.com wrote:

If I modify the binding redirect (since it is trippin’ about the major version) to

then the app starts. But then I have the runtime error again. Maybe the Mvc.Jquery Datatables package needs a binding redirect internally as well?

[image: screenshot_2017-07-03_17-42-01] https://user-images.githubusercontent.com/744949/27811110-33fabd4a-6017-11e7-82d0-7088a39939a7.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mcintyre321/mvc.jquery.datatables/issues/165#issuecomment-312755212, or mute the thread https://github.com/notifications/unsubscribe-auth/AAQ0-o2rghJS6_fCTcPKfgEno0wGo5P4ks5sKYrWgaJpZM4OLvNI .

0reactions
mcintyre321commented, Jul 4, 2017

You’re right, although there is no guarantee that a minor version isn’t breaking - just an intention (and even then only if the developer is intending to use SemVer)…

Anyhow, the new package should be out there now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Posting jQuery Datatable in ASP.NET Core causes 400 error
I've set up the Ajax call as below to post back to an MVC controller in the same application. Ajax call: ajax: {...
Read more >
Common .NET Software Errors and How to Fix Them - Stackify
NET software errors from around the web. It includes exceptions, broken data bindings, memory leaks, LINQ issues, mistyping errors, ...
Read more >
Using Dynamic LINQ With System.Linq.Dynamic.Core Library -
Core or Dynamic LINQ is an open-source query library that extends the functionalities of LINQ by making the queries dynamic. It's not included ......
Read more >
NuGet Warning NU1605 - Microsoft Learn
A dependency package specified a version constraint on a higher ... NET Core 3.0 or higher project, and a RuntimeIdentifier is specified.
Read more >
ASP.NET - CodeProject
Open source framework for monitoring Asp.Net Web Api 2 and MVC5 applications performance without using windows performance counters, automates performance ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found