-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Could not load file or assembly System.Core, Version=2.0.5.0 #212
Comments
Are you sure both are running .net 4.5? I think one of your machines have windows xp, does it? It seems that you are running on .net 4.0 and you are missing the latest patch to support portable libraries |
No, that's the weird part, one have Windows 8 and the other Windows 10! |
I've notice that the LiveCharts.Core.dll is a portable library, did you choose this type of project over a shared library for any reason? I just recompile your source code and fix this error, but i created a shared library and reference the wpf view project to the project i create, and the error was gone. |
0.7 is designed to be a cross .net library, and Xamarin says that portable libraries are the preferred method. Xamarin is the main target of this library, this technology is growing really fast, LiveCharts needs to be there! https://xamarinhelp.com/portable-class-library-pcl-vs-shared-projects/ |
So you first used the Nuget .dll and the error was there? then used the dll you compiled with the source code and it got fixed? |
Yes first i was using the nuget dll's, but to fix the error i created a shared project and copied all the files from the Core project. All the pc's i've tested also have .net 4.0 and 4.5 installed, but the patch is not, and because it's a pain to tell all my customers that that have to install a path to continue to use my app, so i preferre not to go that way. It's great to hear that this project has eyes for the future, that's why i've chosen it over others. Other say that the PCL give move pain to the developers |
If you want to take a look in the changes i've made: |
Thanks! |
I really appreciate the code your shared with me, I added the "help wanted" label in case some one is interested in give us his/hers opinion. The problem is totally the patch, portable libraries are only supported in .net 4.0.3 not in 4.0, I need to remove this build since it could fail depending whether the patch is installed in the target machine. With this LiveCharts needs at least WindowsXP SP3, I will add this note to the repo readme file For now I will only stop building for .net 4.0, the build will start at 4.0.3 this way I force your app install this update installed to run LiveCharts. I now maybe it is hard to notify your customers to install this patch, I am not totally sure about it but this could be done telling your installer that you need at least .net 4.0.3 it should force your customers to install the patch "automatically", at least it should notify them. Another helpful link http://stackoverflow.com/questions/11559156/how-can-i-change-the-targeted-framework-from-4-0-to-4-0-3 |
I like this approach of automatically forcing the app to install the patch. I believe we should stick with portable libraries since this is what Microsoft is promoting as well for their future app development and a way to go for every developer |
@beto-rodriguez Good to know that this can be fixed easily on your side. On my side i have no problems using .NET 4.0.3. |
Officially from 0.7.3.1 to next versions support for .net 4.0 was dropped, your app must target 4.0.3 or greater Added a .bat file to help the building process, the build should be available for everyone now, everything is here to build all the net versions and projects just clicking the LiveCharts.pack.bat file |
I am having the same problem despite .net 4.5. (Win7, VS Studio Express 2013) Here is the stack trace: |
This issue is directly related with https://www.microsoft.com/en-us/download/details.aspx?id=3556 If you install that patch you wont have the issue anymore, what scares me the most is the idea that net 4.5 is not patched already! I think if you change your app to target .net 4.5.1 or 4.5.2 will solve the issue also, need to investigate further on this. |
Are you on windows xp sp3? Please check the system requirements of that patch. https://www.microsoft.com/en-us/download/details.aspx?id=3556 Live-Charts requires that patch to run correctly |
No, that is on Windows 7. I finished my project with WPF Toolkit which is not as pretty as Live-Charts, but I met the deadline. |
I hope a 1.0 version is ready in your next project, trying to get high performance ready asap |
I can not run the application on Windows XP. Install updates KB2468871. P.S. Applications compiled with .Net Framework 4.0 are working |
What is the error you get? |
Not a valid Win32 application |
How about if you install https://www.microsoft.com/en-us/download/details.aspx?id=29053 Also ensure you are compiling in .net 4.0.3 |
I installed this update |
|
I am really not sure what could be wrong, I will reopen this issue, and wait for feed back from users, everyone please let us know if you can use the library in XP |
No application wants to work if it is assembled under 4.0.3 (Windows XP) When doing the assembly under 4.0 everything is fine. Only sorry your library doesn't support 4.0 |
Windows XP SP3 right? |
Yes, Windows XP service pack 3. |
I am done with issue, in the referenced commits bellow I added a new project targeting net40, it is just a copy paste of the core project, since it targets 4.0.3, I am sure there should be a way to compile the current code in net 40 since it requires no changes, but for now this works. Since version 0.8 I will provide both builds in the nuget package
|
Thank you! Checked, everything works. |
I've just got this error, on a app using Live-charts.
I tested on 2 pc's and they both have .net 4.5 installed, this error should only if the .net 4.0 not patched is installed?
System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'
at LiveCharts.ChartValues`1.GetLimits()
at LiveCharts.ChartUpdater.Update(Boolean restartsAnimations)
at LiveCharts.Wpf.Components.ChartUpdater.UpdaterTick()
at LiveCharts.Wpf.Components.ChartUpdater.<.ctor>b__0_0(Object sender, EventArgs args)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
The text was updated successfully, but these errors were encountered: