I have an app running well, but after I upgrade visual studio 2019 OSX, I got the exception when running the app.
Target _ResolveSatellitePaths:
No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
Target _CopyConfigFiles:
[mono] Unhandled Exception:
[mono] System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Unable to load file or assembly 'DeepCloner, Version=0.10.0.0, Culture=neutral, PublicKeyToken=dc0b95cf99bf4e99' Or one of its dependencies。 The definition of the found component information list does not match the component reference。 (An exception occurred on HRESULT: 0x80131040)
[mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Unable to load file or assembly'DeepCloner, Version=0.10.0.0, Culture=neutral, PublicKeyToken=dc0b95cf99bf4e99' Or one of its dependencies。 The definition of the found component information list does not match the component reference。 (An exception occurred on HRESULT: 0x80131040)
I knew it's a dll conflict issue. but I can't find a way to fix it. thanks for any information.
Have a try with updating DeepCloner to the latest verson 0.10.2to check whether solve this .
In this release we're removed System.Reflection namespace from
cloning, because some classes in System.Reflection.Emit cause
unexpected crashes in runtime. Also, there are no significant reasons
to clone these classes.
Also, checking for empty constructors is improved to reduce number of
exceptions (internally catched, but can slow down copying).
Related
when i tried creating checksum for paytm in my UWP app
paytm.CheckSum.generateCheckSumByJson("OYxxxxxxxxxxxx", first_json);
i am getting the following issue :
paytm.exception.CryptoException: 'Exception occurred while generating
CheckSum. Could not load type
'System.Security.Cryptography.SHA256Managed' from assembly 'mscorlib,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.'
SHA256Managed is part of 'System.Security.Cryptography'. Try installing the nuget package and check if you have the dll's.
I am a newbie and just created a new project of type: ASP.NET Core Web Application (.NET Core) and let VS preload all the defaults. I changed nothing, except set index.cshtml the startup. It built ok, but has a run-time error of:
System.IO.FileNotFoundException occurred
HResult=0x80070002
Message=Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Call Stack (last item):
ntdll.dll!NtWaitForSingleObject() Unknown
What is happening here, and how can it be fixed?
Using Visual Studio Installer, selecting the Repair option solved the problem.
Im having a WebApplication that runs in vs2010 but the target framework is set as 2.0. The application uses enterprise library. when I execute the application in my local I getting an error
Required permissions cannot be acquired.
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.Security.Policy.PolicyException: Required
permissions cannot be acquired.
and in the stack trace I'm getting error
FileLoadException: Could not load file or assembly
'Microsoft.Practices.ObjectBuilder, Version=1.0.51205.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies.
If is set the target framework as 4.0 the code executes fine. I have tried the following steps :
set the 'Copy to output directory' in the objectbuilder dll property as
copy always (earlier it was do not copy)
tried adding the trust tag with
trust level="high" originUrl="" and also trust level="low"
originUrl=""
copied the below tags from the machine.config of 4.0 to machine.config of 2.0
section name="fullTrustAssemblies"
type="System.Web.Configuration.FullTrustAssembliesSection, System.Web,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
allowDefinition="MachineToApplication"/>
section name="partialTrustVisibleAssemblies"
type="System.Web.Configuration.PartialTrustVisibleAssembliesSection,
System.Web, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
allowDefinition="MachineToApplication"/>
but still getting the error. Please let me know what could be the issue..
prob solved.. i took the EL dlls seperately, gave it strong name & registered the assembly in GAC.. and now the code works fine..
I'm running Ubuntu 12.04 and I have the mono-runtime package installed. On my windows machine my NancyFx self hosted application compiles fine with 1 warning but when I try to run it on my VPS I get the following error:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or
assembly 'System.Core, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' or one
of its dependencies.
File name: 'System.Core, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load
file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Core, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'
Any ideas on how I can fix this?
I ran across the same problem when trying to run a Mono app (compiled in Xamarin Studio on my Windows machine) on an Ubuntu 14.04 Docker virtual. I did the same thing as you and installed mono-runtime, and after an hour or two of searching, was able to get it to work after installing mono-complete. However, that also brings down a few hundred MB of additional stuff. Finally I found the package that did the trick: libmono-system-core4.0-cil (see here).
Hope that helps!
The Mono version available in the Ubuntu 12.04 repositories is very old. Try with a newer Mono (e.g. the one in Ubuntu 14.04) and see if that works.
I'm new to Neo4j, when I tried to connect to Neo4j server through neo4jclient in the C#, my code have faced to an exception such as image below:
the Error is :
The type initializer for 'Neo4jClient.GraphClient' threw an
exception.
and the InnerException is:
Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0,
Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its
dependencies. The system cannot find the file
specified.":"Newtonsoft.Json, Version=4.5.0.0, Culture=neutral,
PublicKeyToken=30ad4fe6b2a6aeed
-> also The http://localhost:7474/db/data is the root.
How can I solve this problem?
You can clearly read in the inner exception that it can't load the assembly Newtonsoft.Json. Reference Newtonsoft.Json, preferable by using NuGet.