-
-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatibility with System.Linq.Dynamic.Library #35
Comments
This library is indeed a fork from the deleted library from Nathan. It should be compatible, except for some namespaces. |
Awesome. I pulled it using nugit and the only thing I had to do was change the using to have the correct namespace and it builds perfectly. I get the error below when I run the app immediately after building:
The odd thing is, if I run the app again (without building it), it works without an error. The error occurs the first time I make a call to the dynamic linq api. This is the stacktrace: at System.Reflection.RuntimeModule.GetTypes() This happened for the first time this morning (I have had the app in prod since February). I was hoping migrating to your api would fix it but it did not. Do you have any idea what is causing this? |
Which dotnet framework do you use ? And regarding this CustomTypeProvider error, it could be that some small business logic is different when loading external libraries. |
I use 4.5.1 |
When we look in the code from Nathan: (he deleted his branch) https://github.com/jogibear9988/System.Linq.Dynamic/blob/master/Src/System.Linq.Dynamic/DynamicLinqTypeProvider.cs The difference is this line: assemblies = assemblies.Where(x => !x.IsDynamic).ToArray(); But do we need that ".ToArray" ? |
Maybe also we could make the default "CustomTypeProvider" exception friendly. |
i think this could now be closed? |
@jwperez1 ; can you please verify ? |
Closing issue. |
Is it resolved I am also facing same issue? |
What issue? |
@jogibear9988 I am having below issue System.IO.FileLoadException: 'Could not load file or assembly 'System.Linq.Dynamic.Core, Version=1.0.17.0, Culture=neutral, PublicKeyToken=0f07ec44de6ac832'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)' here is my code details |
Is this backwards compatible with System.Linq.Dynamic.Library by Nathan Arnott? That lib seems to have disappeared and I am looking for a way to migrate my code. I think I see you started with a fork from there.
The text was updated successfully, but these errors were encountered: