I have an Android app which uses:
ActionBarSherlock Xamarin component
MvvmCross fragment support.
I just upgraded to MvvmCross 3.1.1 and I get some errors:
Error 2 The type 'Android.Support.V4.App.Fragment' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Error 3 The type 'Android.Support.V4.App.FragmentActivity' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
I delete bin and obj folders just to be sure and rebuilt, same errors.
If I add the Android Support Library v4 Xamarin component, I get a many errors like
Error 11 The type 'Android.Support.V4.App.ActionBarDrawerToggle'
exists in both 'c:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\MonoAndroid\v4.3\Mono.Android.Support.v4.dll'
and
'..\xamandroidsupportv4-18-4.18.1\lib\android\Xamarin.Android.Support.v4.dll'
..MyActionBarDrawerToggle.cs 19 44
If I remove the Mono.Android.Support.v4 I got error which asks me to put it back.
It seems you have an old version of ActionBar Sherlock component that references Mono.Android.Support.v4, the latest version 4.4.0.2 uses the new Android Support Library.
Hope this helps.
Alex
Related
I have existing app that uses MySQL Server. Some errors I was getting when trying to add a new feature led me to upgrading to 'MySql.Data.EntityFramework 8.0.11'.
error I am getting when on:
public CitiesContext() : base("name=CitiesContext"):
An error occurred creating the configuration section handler for entityFramework: Could not load file or assembly 'EntityFramework, Version=4.6.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Under my properties, my target framework is still version 4.6.1.
Is there a 'how to document' somewhere on how to upgrade the EntityFrame work? I know several of the other installed packages were installed while targeting v 4.6.1, so lots of other types of errors using (like hay this was compiled with v 4.6) when trying to compile with a web.congf using
I have installed
PM> Install-Package EntityFramework -Version 6.4.4
Package 'EntityFramework.6.4.4' already exists in project 'Lat34North'
Time Elapsed: 00:00:00.0186347
Please note. This is a hobby for me, not a profession. The app is written using asp.net mvs an first issued in 2018. Do I just need to change the target in the properties and upgrade all the other packages??
Thank you for any help.
I'm trying to get the Codeunit 50000 in this zip file to work: https://kappiwebhosting.blob.core.windows.net/dynamcisis/2015/09/Json.zip
Found here: https://dynamics.is/?p=2303
C/AL Globals
I'm trying to get Dynamics Nav 2009 to recognize the NewtonSoft.Json.dll, but no matter which version i try, i get this error as soon i want to verify the DotNet variable "JsonTextReader"/"JsonTextWriter" when selecting the subtype.
.NET interop: exception occured, 'Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.'.
If i declare a new Test variable of type DonNet and click [...] to select it from scratch i got this error when trying to choose which assembly to use:
.NET interop: exception occured, 'Could not load file or assembly 'C:\Program Files (x86)\Microsoft Dynamics NAV\60\Classic\Add-ins\Newtonsoft.Json.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.'.
The Newtonsoft.Json.dll file is present ind the folder, and "Everyone" have full control to the folder as well as the file.
The Json.zip file contain a single Newtonsoft.Json.dll which i started out with. Same error. The i downloaded the https://github.com/JamesNK/Newtonsoft.Json/releases and tried all versions with the same result.
Why all this? Yes, the company i work for have decided to start using Shopify, and i need to write an interface for getting orders from Shopify etc.
I really cannot figure out why i can't get this to work. There are 3 other DotNet "variables" that's configured and works as intended with no errors.
So any advice is highly appreciated.
Thanx
I spent more hours to fix this problem. I have research all ways in stackoverflow .I updated my json reference but. I couldn't solve this problem. Please help. Thanks in advance,Json version=9.0.0.0 is not fond.
Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
Line 29:
Line 30:
Line 31: var message = MessageResource.Create(
Line 32:
Line 33: to: to,
Source File: C:\Users\TexnoUsta\Documents\Visual Studio
2017\Projects\SANTEKSolutions\SANTEK.Web\Controllers\SmsController.cs
Line: 31
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
Please help. Thanks in advance,Json version=9.0.0.0 is not fond.
Also if the version "9.0.1" exists, I would rather expect "9.0.0" than "9.0.0.0".
But according to github tags of source code: https://github.com/JamesNK/Newtonsoft.Json/tags, the "9.0.0[.0]" never existed, so you will never find it, unless you create your own.
Why? Ask the creator. But if the author of that package versions his code reasonably, then 9.0.1 should be minor bugfix of fictional 9.0.0, i.e. good-enough to be used by you as replacement for non-existing 9.0.0.0.
It looks like that web (?) already did use version 9.0.0.0 ... then ask the creator of the web, where did he get it from, maybe some custom creation, or from different company, building on the Newtonsoft.Json original, but releasing with different versions.
I'm using Dapper, .NET Core 2 and MySql.Data to create a small REST API on Linux. Unfortunately, i keep getting this error on my connection:
Exception has occurred: CLR/System.IO.FileNotFoundException
An exception of type 'System.IO.FileNotFoundException' occurred in MySql.Data.dll but was not handled in user code: 'Could not load file or assembly 'System.Security.Permissions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.'
at MySql.Data.MySqlClient.MySqlConnection.AssertPermissions()
at MySql.Data.MySqlClient.MySqlConnection.Open()
at Dapper.SqlMapper.<QueryImpl>d__124`1.MoveNext()
Does anyone have any idea what is going on?
Try adding System.Security.Permissions, Version=4.0.0.0 from nuget.
I solved by upgrading to 8.0.8-dmr.
I don't know what's happening, but I get the same issue.
I have noticed that if you look at the DEPENDANCICES.NuGET node under the solution and look at the "MySqlData(6.9.9)" and expand it, you'll see a warning messages about something was restored with .net Framework 4.6.1. (in my case anyway)
It looks like to me, something in the NuGet package from the author isn't correct.
Yes, it seems is bug of MySql.Data.dll (My version is 6.10.6 from nugget-repository).
I'm trying to connect to Maria DB and get the same error:
Database not found on server with connection string in settings: Could not load file or assembly 'System.Security.Permissions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
error screenshot
I had solved that: There are 3 kinds of "MySql.Data.dll" lib at Nuget-package mysql.data 6.10.6.0:
netcoreapp 2.0 lib
netstandard 1.3 lib
netstandard 2.0 lib
During using netcoreapp 2.0 or netstandard 2.0 - it cames error.
During using netstandard 1.3 lib - it works finally, and has no error!
I've built an assembly with a public static class and a public static method with a return type of int. Eventually I'll add more methods but for now the assembly contains just one method. I'm trying to use this assembly in my SSRS reports but it results in an error:
[rsErrorLoadingCodeModule]
Error while loading code module: ‘XXX.Calcs, Version=2013.1.21.0, Culture=neutral, PublicKeyToken=null’.
Details: Could not load file or assembly 'XXX.Calcs, Version=2013.1.21.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
I referenced the assembly through Report Properties -> References. When I create an expression that uses the method in the assembly and then build, I get the above error.
I deployed the assembly to:
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies
Thoughts? Am I missing any steps?
I found this and followed the steps exactly.