-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
System.InvalidProgramException #50
Comments
Interesting, as I understood whatever is inside |
"whatever is inside Where2 is expression to compile" - Yes, as last time the picture I showed you. (if you remember) "what is the type of w, w.DateType and w.Id?" - w is an Entity "class", w.DateType is "int", w.Id is "string". |
Thanks for the info, I will get it from here. |
Hi @OscarKoo , I have added the sample test here and it is working just fine with the latest source. Did you check on the latest source or v1.5? |
@dadhi Since there is no vs2015 on my machine, so I have to download "msbuild 2015" to build your dll. (https://www.microsoft.com/en-us/download/details.aspx?id=48159) And this Exception only happens on the testing server (not on my machine). and the testing server is windows server 2008 R2 (with .net framework 4.5.1), and my machine is windows7 (with .net framework 4.5.1). I'm not sure whether this Execption only happens in my particular scenario, either the way I built the dll or the testing server environment... If you can not find anything wrong, maybe I have to wait your new upcoming release and try again. Thanks for your investigation. |
Check the v1.6 if it is still reproducible. |
Same exception in v1.6... System.InvalidProgramException: Common Language Runtime detected an invalid program. |
Hi @OscarKoo, Thanks for checking. I will try to reproduce. |
May I ask you to add the Test below with the sample Entity class into Test project with NUnit, targeting the same .net 4.5.1 and try to run it?
|
Hi @OscarKoo, |
Outdated, closing. |
@dadhi
I newly got this Exception on testing server.
"
System.InvalidProgramException: Common Language Runtime detected an invalid program.
at (Closure
5 , TimeSlice ) at System.Linq.Enumerable.WhereEnumerableIterator
1.MoveNext()at System.Linq.Enumerable.Any[TSource](IEnumerable
1 source) at Csh.Hcis.GC.VueScheduler.Common.Extensions.LinqExtensions.<AnyAsync2>d__11
1.MoveNext()"
Here is the code:
Here is the compiled delegate, it has 5 same variables (strange?).
Is there any clue?
The text was updated successfully, but these errors were encountered: