Windows error 0x80131040, -2146234304

Detailed Error Information

FUSION_E_REF_DEF_MISMATCH[1]

Message"The located assembly's manifest definition does not match the assembly reference."
Comment The located assembly's manifest definition does not match the assembly reference.

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code4160 (0x1040)

Questions

763votes
53answers

The located assembly's manifest definition does not match the assembly reference

I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error: > System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral, PublicKeyToken=764d581291d764f7' or one of its dependencies. The located assembly's manifest definition does not match the assembly [...] read more
c#
reference
compiler-errors
dependencies
version
239votes
42answers

Could not load file or assembly or one of its dependencies

I'm having another of these "Could not load file or assembly or one of its dependencies" problems. > Additional information: Could not load file or assembly 'Microsoft.Practices.Unity, Version=1.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) [...] read more
c#
.net
reference
compiler-errors
233votes
44answers

Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'

I am getting the Error > System.IO.FileLoadException : Could not load file or assembly 'Newtonsoft.Json, Version=4.5.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) for my CI build Solution which I tried <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" [...] read more
asp.net
json.net
82votes
26answers

Could not load file or assembly 'Antlr3.Runtime (1)' or one of its dependencies

I'm getting this error while trying to run my MVC4 project, it was working fine until last time on my other machines, but when I'm trying to run it from another machine it's giving me this error: > Could not load file or assembly 'Antlr3.Runtime (1)' or one of its [...] read more
.net
asp.net-mvc
67votes
18answers

HRESULT: 0x80131040: The located assembly's manifest definition does not match the assembly reference

The located assembly's manifest definition does not match the assembly reference getting this when running nunit through ncover. Any idea? read more
.net
nunit
ncover
40votes
3answers

Could not load file or assembly Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0

After update to the new package Microsoft.EntityFrameworkCore.SqlServer 1.1.2 I got error when try to create DBContext: > System.IO.FileLoadException occurred HResult=0x80131040 Message=Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) [...] read more
c#
.net
entity-framework
.net-core
entity-framework-core
39votes
9answers

Could not load file or assembly 'WebGrease' or one of its dependencies

When I run my MVC4 Web application it gives the following error: Could not load file or assembly 'WebGrease' 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 [...] read more
c#
asp.net-mvc
asp.net-mvc-4
kendo-ui
36votes
6answers

Could not load file or assembly Microsoft.CodeAnalysis

I have a webproject I am trying to host, but when the server tries to compile it, I get the following error: > Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=1.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the [...] read more
c#
visual-studio
34votes
15answers

Assembly binding redirect does not work

I'm trying to set up an assembly binding redirect, using the following app.config: <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Microsoft.AnalysisServices" PublicKeyToken="89845dcd8080cc91" /> <bindingRedirect oldVersion="10.0.0.0" newVersion="9.0.0.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration> I'm running the program on a machine with version 9.0.242.0 in the GAC, with the specified public key token. The [...] read more
c#
.net
binding
assemblies
reference
24votes
6answers

Could not load file or assembly 'System.Web.Razor' or one of its dependencies

I used Umbraco 4.11.6 in my website(web application).My website is worked in localhost(tested from Visual studio 2012 and IIS(v7)) but when I run it from internet space I got an error. The error was: COULD NOT LOAD FILE OR ASSEMBLY 'SYSTEM.WEB.RAZOR' OR ONE OF ITS DEPENDENCIES. THE LOCATED ASSEMBLY'S MANIFEST [...] read more
c#
asp.net
asp.net-mvc
deployment
umbraco
21votes
3answers

Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation

I am getting this error whenever I try and run a webjob project with application insight and entity framework. > System.IO.FileLoadException: 'Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: [...] read more
c#
azure
azure-application-insights
webjob
interopservices
21votes
9answers

Could not load file or assembly 'Newtonsoft.Json, Version=7.0.0.0

I am facing the error below > Could not load file or assembly 'Newtonsoft.Json, Version=7.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) I could see the below in Web.config <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /> [...] read more
c#
asp.net
asp.net-mvc
json.net
nuget
20votes
3answers

How do you unit test an ASP.NET Core controller or model object?

I am trying to get some controller, model, and repository (data access) C# classes under unit test, in Visual Studio 2015, with ASP.NET Core MVC (ASP.NET 5 during the preview, now called ASP.NET Core) applications. I have the following structure: Solution | src | |-- ITConsole <- main app (ASP.NET [...] read more
c#
asp.net-mvc
visual-studio-2015
asp.net-core-mvc
17votes
8answers

Could not load file or assembly 'EntityFramework, Version=6.0.0.0,

I am working with EF . I am trying to execute this line public ActionResult Edit(string id) { return View(obj.FindSemesterById(id)); } I installed EF Version 5 on my project. But i get this error : > Could not load file or assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its [...] read more
c#
asp.net
asp.net-mvc
entity-framework
nuget
17votes
6answers

Could not load file or assembly EntityFramework

I've deployed an ASP.NET MVC 4 application and the home page loads fine, but when I try to access any other page (which all try to connect to a SQL database) I get this error: > Could not load file or assembly 'EntityFramework, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its [...] read more
c#
asp.net-mvc
entity-framework
17votes
1answer

Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821'

I have added Log4Net in my project using NuGet Package Manager and it is showing Version 2.3 installed on my system. Here is my config entry: <configSections> <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> </configSections> and then reference to this file here <log4net configSource="Log4Net.config" /> [...] read more
asp.net
wcf
log4net
13votes
5answers

Could not load file or assembly 'Microsoft.SqlServer.Types even with Copy Local

I have an internal report on my web application which when I browse to it locally displays as expected. I am using a rdlc and xsd with a standard apsx web page to render the report. I have now deployed to my staging server and when I try to browse [...] read more
c#
reference
12votes
6answers

ambiguity in package references version

In a project, there are several references to Ninject library which have their version, and the unit test fails, this is the error : > Message: System.IO.FileLoadException : Could not load file or assembly 'Ninject, Version=4.0.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7' or one of its dependencies. The located assembly's manifest definition does not [...] read more
c#
.net
dll
nuget
.net-assembly
12votes
1answer

What is Post-Policy reference in assembly binding log?

Trying to understand this assembly binding failure - What is the meaning of "Post-policy reference" in the log below? LOG: This bind starts in default load context. LOG: Using application configuration file: E:\approot\WorkerRole.dll.config LOG: Using host configuration file: LOG: Using machine configuration file from D:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config. LOG: Post-policy reference: Microsoft.WindowsAzure.Diagnostics, Version=2.6.0.0, [...] read more
.net
.net-assembly
fuslogvw
10votes
4answers

`Could not load file or assembly 'Microsoft.Windows.Shell` , Prism - C#

I'm trying to run PRISM (MEF) example project, but get this error: > Managed Debugging Assistant 'BindingFailure' has detected a problem in 'Prism4MefDemo.vshost.exe'. Additional information: The assembly with display name 'Microsoft.Windows.Shell' failed to load in the 'Load' binding context of the AppDomain with ID 1. The cause of the failure [...] read more
c#
wpf
prism
mef
8votes
5answers

Could not load file or assembly 'Microsoft.Owin, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

My code works just fine locally but after I published to server I keep getting this error: Could not load file or assembly 'Microsoft.Owin, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) I don't even [...] read more
c#
.net
asp.net-mvc
owin
5votes
4answers

Could not load file or assembly 'System.IdentityModel.Tokens.Jwt after deploying on Azure

my web app is working fine on localhost, but when I publish it on Azure, I get the following error: > Could not load file or assembly 'System.IdentityModel.Tokens.Jwt' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) On a [...] read more
asp.net-mvc
azure
web-deployment
5votes
2answers

Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0 in combination with Microsoft.AspNet.WebApi.Client

I’m coding a class library (called mylibrary.dll) that itself references some more libraries -> uses the following DLLs (taken from package.config for version overview): <package id="EntityFramework" version="6.0.0" targetFramework="net45" /> <package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net45" /> <package id="Newtonsoft.Json" version="8.0.2" targetFramework="net45" /> <package id="System.Data.SQLite" version="1.0.99.0" targetFramework="net45" /> <package id="System.Data.SQLite.Core" version="1.0.99.0" targetFramework="net45" /> <package [...] read more
c#
dll
reference
json.net
.net-assembly
5votes
2answers

ASP.NET Core app on Ubuntu on Raspberry PI

I've installed Ubuntu Core 16.04 on a Raspberry PI 3 and managed to get a .NET Core console app running on it by using the instructions here and using .NET Core version 1.2.0-beta-001291-00 which is compatible with ARM chips. When I do the same with a basic ASP.NET Core app [...] read more
c#
ubuntu
asp.net-core
raspberry-pi
.net-core
5votes
4answers

FileLoadException: Could not load file or assembly System.Runtime, Version=4.2.0.0

I have an asp.net core 2.0 application that runs on full .net framework 4.6.1. It works fine locally but when I deploy it to Azure I receive the following error: > FileLoadException: Could not load file or assembly 'System.Runtime, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's [...] read more
.net
asp.net-core
.net-core
4votes
2answers

Could not load file or assembly 'Microsoft.SqlServer.Types, Version=12.0.0.0, Culture=neutral, PublicKeyToken=myKey' or one of its dependencies.

After running an ASP.NET C# application with SQL SERVER version 2012, I get the following error message: An error occurred during local report processing. The definition of the report 'C:\inetpub\wwwroot\psla\Reports\PD Listing Report - Per ED.rdlc' is invalid. An unexpected error occurred in Report Processing. Could not load file or assembly [...] read more
c#
asp.net
.net
sql-server
.net-assembly
4votes
5answers

The project requires user input

I am working with a VB.net project that was converted from c#. When I open the project, I see the message: > The project requires user input. Reload the project for more information When I choose Project Reload, I get the message > The operation could not be completed. Unspecified [...] read more
c#
vb.net
4votes
4answers

Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0

I recently installed CsvHelper (https://joshclose.github.io/CsvHelper/) when i try to use the library I get the following error: > Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) In my [...] read more
c#
csvhelper
assembly-binding-redirect
assemblybinding
4votes
3answers

Unable to run Google Cloud PubSub in c#, DLL problems

I am working on integrating Google Cloud PubSub into my c# project, I used NuGet to install 1.0.0-beta11, no errors at all. When I run my project and when it reaches the code that uses pubsub, I get the following error: An unhandled exception of type 'System.IO.FileLoadException' occurred in Google.Api.Gax.dll [...] read more
c#
nuget
google-cloud-pubsub
3votes
4answers

Binding redirect for System.Net.Http doesn't work - why?

The project I'm working on has System.Net.Http version 4.3.3 installed, according to NuGet. It had a binding redirect in the Web.config file to redirect it to version 4.2.0.0, which worked for some reason: <dependentAssembly> <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.2.0.0" newVersion="4.2.0.0" /> </dependentAssembly> I changed it to point to [...] read more
c#
asp.net
nuget
3votes
1answer

Could not load assembly during runtime although binding redirect is correctly set

I have a unit test project .NET 4.6.1 where some tests fail prolly because I added a new project as a new reference to the unit test project. This is the error I am getting: Error: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of [...] read more
c#
.net
visual-studio
unit-testing
assembly-binding-redirect
3votes
1answer

Deployment Error: Could not load file or assembly 'Microsoft.Owin' or one of its dependencies

I am getting this error after the deployment/publishing to server. In my local it works fine but on server i am getting this error. I checked my package.config and .dll version in my bin project folder. At both the places versions are same. Please let me know what can be [...] read more
asp.net
asp.net-mvc-4
asp.net-web-api
owin
.net-assembly
3votes
1answer

Error with adding reference of HtmlAgilityPack to class

I am getting an error while adding this to my class, does somebody know the solution for this? Using 4.5 framework. Could not load file or assembly 'HtmlAgilityPack, Version=1.4.9.0, Culture=neutral, PublicKeyToken=bd319b19eaf3b43a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: [...] read more
c#
html-agility-pack
3votes
6answers

Could not load file or assembly 'System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ASP.NET MVC

I went through many answers that answered before but I'm not lucky to find a solution of my problem. This Could not load file or assembly 'System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and many others I used. ****Here is the runtime error:**** Could not load file or assembly 'System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' [...] read more
asp.net-mvc
2votes
1answer

Deploying MVC 5.1 app on web server

I made ASP.NET application with MVC 5.1 technology and tried to deploy it on Winhost server. When I go to my web site, I get the following error message. Could not load file or assembly 'System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does [...] read more
asp.net
windows
mvc
2votes
1answer

Microsoft.Diagnostics.Tracing.EventSource with the RabbitMQ.Client.dll exception

Why may I be getting the following error and how could I fix it? > An unhandled exception of type 'System.IO.FileLoadException' occurred in RabbitMQ.Client.dll Could not load file or assembly 'Microsoft.Diagnostics.Tracing.EventSource, Version=1.1.28.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. [...] read more
.net
rabbitmq
nuget
runtime-error
assembly-loading
2votes
2answers

Could not load file or assembly System.Runtime.CompilerServices.Unsafe

I created a Visual Studio (Community 2019) project with C# using ServiceStack.Redis. Since it is C#, I use Windows 10 (there is a Redis version for Windows but it is really old and as I know, it is unofficial so I am afraid that might be the problem). Here is [...] read more
c#
visual-studio
redis
nuget
servicestack
2votes
1answer

AjaxControlToolkit.CalendarExtender and System.Web.Extentions version error

I have VS 2005, 2008 on my dev box. New project from other developers who only have 2005 installed. When I build it I get error. > Error 1 Indirect reference is being made to assembly System.Web.Extensions version 3.5.0.0, which contains 'AjaxControlToolkit.CalendarExtender'. This Project references a prior version of System.Web.Extensions [...] read more
visual-studio
ajaxcontroltoolkit
1vote
1answer

Dependency issue when upgrading my computer to mvc4, and trying to deploy mvc3 applications

I am having a very similar problem to this: https://stackoverflow.com/questions/11023923/how-to-fix-this-mvc-website-error-could-not-load-file-or-assembly-system-web-h same exact error message: Could not load file or assembly 'System.Web.Helpers' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) I know this problem has to do with the [...] read more
windows
asp.net
asp.net-mvc
azure
1vote
0answers

F# SqlDataProvider, "The type initializer for 'Main' threw an exception.'

I have been attempting to use the SqlProvider type provider on several different databases where I work. In Visual Studio, intellisense for these different DBs (of types MS Access, SQL Server, and an ODBC connection) all work as shown below: Intellisense working [https://i.stack.imgur.com/hbq7W.png] I've even tried it on the Northwind [...] read more
sql
f#
sqlconnection
type-providers
1vote
1answer

Could not load file or assembly 'System.Buffers, Version=4.0.2.0...'

I'm getting the following exception when trying to call GetDatabase method of the MongoClient class after adding a new configuration using VS config. manager: Could not load file or assembly 'System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. [...] read more
c#
.net
visual-studio
reference
nuget
1vote
2answers

Microsoft SSRS 2012 Report Manager - HTTP 500 error (The website cannot display the page),while Report Server fine

I have a situation in which my Microsoft SSRS 2012 Report Server works fine, but not the Report Manager, which throws HTTP 500 error (The website cannot display the page). SSRS 2012 Report Manager and Report Server were working fine until yesterday, when I successfully installed SQL Server 2016 with [...] read more
sql-server
reporting-services
ssrs-2012
reportserver
reportmanager
1vote
0answers

Assembly dependency error on using Google OCR- google.protobuf

I am trying to integrate Google OCR locally in a project with .Net Framework 4.5. But the error i am running is as below. Error log : > System.IO.FileLoadException: Could not load file or assembly 'Google.Protobuf, Version=3.5.1.0, Culture=neutral, PublicKeyToken=a7d26565bac4d604' or one of its dependencies. The located assembly's manifest definition does [...] read more
c#
asp.net
google-api
ocr
.net-4.5
1vote
1answer

How to Check .Net and F# Core Versions on Target System

I have written a simple F# console applet. It is built against .Net Framework 4.5 and F Sharp Core 4.0. It runs fine on my Windows 10 workstation. On Windows Server 2016 (Version 1607) it throws Unhandled Exception: System.TypeInitializationException: The type initializer for '<StartupCode$VolLib>.$VolLib' threw an exception. ---> System.IO.FileLoadException: Could [...] read more
f#
.net-framework-version
1vote
2answers

Could not load file or assembly Microsoft.CodeAnalysis.CSharp, Version=1.0.0.0 when deploying only

I have a Visual Studio solution with an asp.net web application project and a class library project alongside it. The applications runs fine when I debug it in Visual Studio, however when I deploy it using WebDeploy, I get the following exception when loading the page: System.IO.FileLoadException: Could not load [...] read more
c#
asp.net
.net
visual-studio-2017
webdeploy
1vote
3answers

Could not load file or assembly. The located assembly's manifest definition does not match the assembly reference

I am trying to add one of the google vision API feature in the blue prism but I am getting the error > "Internal: Could not execute code stage because an exception is thrown by code stage: Could not load file or assembly 'Google.Apis.Auth, Version=1.35.1.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab' or one of [...] read more
c#
.net
google-vision
blueprism
1vote
3answers

Web publish can't find Microsoft.Build.Framework

I'm using VS2017 with an ASP.NET project that I've inherited from another developer. I have the publish functionality set up to publish to a folder. This has all been working great until now. The previous developer used EntityFramework, though all of the references were broken when I got the project, [...] read more
c#
asp.net
entity-framework
visual-studio-2017
1vote
1answer

VS Code Omnisharp.MsBuild.Projectmanager can not load assembly System.Numerics.Vectors 4.1.3.0

I'm having a problem with opening a newly created blazorwasm project. Omnisharp will not start correctly. This is the output: [warn]: OmniSharp.MSBuild.ProjectManager Failed to load project file 'c:\VS.NET2010\CoreApp\Server\CoreApp.Server.csproj'. c:\VS.NET2010\CoreApp\Server\CoreApp.Server.csproj(1,1) System.IO.FileLoadException: Kan bestand of assembly System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a of een van de afhankelijkheden hiervan niet laden. De manifestdefinitie van de [...] read more
c#
.net
visual-studio-code
csproj
omnisharp
1vote
1answer

Could not load file or assembly Visual Studio 2019 (Community)

This is going to be one of those questions for which there are hundreds of answers, so please bare with me as I have tried most of them! I have been breaking up a very large project into smaller components with the view to slowly migrate it all to .NET [...] read more
visual-studio
nuget-package
.net-standard
.net-framework-version
servicestack-text
1vote
2answers

System.IO.FileLoadException:

This is the segment of code I used, note the **** is the replacement for my name using System; using ArduinoUploader; using ArduinoUploader.Hardware; namespace SoftwareAssignment { class Program { static void Main(string[] args) { var uploader = new ArduinoSketchUploader( new ArduinoSketchUploaderOptions() { FileName = @"C:\Users\****\OneDrive\Desktop\Blink\Blink.hex", PortName = "COM5", ArduinoModel = [...] read more
c#
visual-studio-code
arduino
1vote
1answer

Moq 4.13.1 incompatibility with Task.Extensions

I am trying to run a unit test that uses Moq. the problem is I keep getting the follwing with Visual studio 2019. > Message: System.TypeInitializationException : The type initializer for 'Moq.DefaultValueProvider' threw an exception. ----> System.IO.FileLoadException : Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one [...] read more
c#
.net
moq
1vote
1answer

How to reference C# UWP Class Library from C++ UWP App

I am getting a COMException when trying to reference a method in a C# UWP class library from a C++ UWP app. This is happening with the most basic of setups, so I must be doing something wrong. Repro: 1. Using Visual Studio (I'm using 16.5.4), Create a new "Blank [...] read more
c#
c++
uwp
win-universal-app
c++-cx
0votes
1answer

BizTalk configuration broken following WCF hotfix installation

I usually post over on StackOverflow, but thought this was probably better suited to ServerFault. Please migrate if I'm wrong! I am developing a WCF service and a BizTalk application on my workstation at the moment. As part of the WCF service, I had to install hotfix 971493 from Microsoft [...] read more
wcf
biztalk-2009
0votes
0answers

Getting this error while trying to retrive authenticator in goole calender api

Could not load file or assembly 'Google.Apis, Version=1.2.4737.25313, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) or anyone can suggest me a better way to use google calendar API for web application. Thank You at this [...] read more
api
calendar
0votes
1answer

Migrations EF Core 3.1

I'm getting the following error trying to create a migration using EF Core 3.1. PM> add-migration InitialDB Unable to resolve startup project ''. Using project 'UI\UI.Web' as the startup project. Build started... Build succeeded. > System.IO.FileLoadException: Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The located assembly's manifest [...] read more
entity-framework-migrations
ef-core-3.1
0votes
0answers

How to reference a unsigned dll with different versions in visual studio 2019

This is a WPF application on the front end which is the migration tool. I have a dll which i'm trying to reference both an older version and new version. The purpose is to use it for migration and de-migration purposes between versions of the product. example (versions numbers are [...] read more
c#
wpf
visual-studio
dll
0votes
0answers

Could not load file or assembly "Microsoft.Diagnostics.Tracing.EventSource" exception

I have an application that uses RabbitMQ.Client library. This library has a dependency on Microsoft.Diagnostics.Tracing.EventSource (v1.1.28) library. Now, I have Microsoft.Diagnostics.Tracing.EventSource library with v2.0.1 in my project. So I get an error whenever RabbitMq.Client tries to load this dependent assembly: > Could not load file or assembly 'Microsoft.Diagnostics.Tracing.EventSource, Version=1.1.28.0, Culture=neutral, [...] read more
c#
.net
dll
rabbitmq
paket
0votes
0answers

Could not load file or assembly Newtonsoft.Json - Legacy Application

Currently our team is maintaining an old codebase built on an old, pre-compiled Web Forms CMS (iAPPS) that we no longer have support for. We're trying to migrate away from this old CMS, but during that time, we still need to keep maintaining it. At this point in time, we're [...] read more
.net
webforms
json.net
0votes
1answer

System.IO.FileLoadException when trying to test Entity Framework Core using MSTest - why?

I cannot unit test an Entity Framework Core project using MSTest. When I do, I always get the following exception when I execute the test: Test method "EF_Tests.CreateDbTests.CreateDb" threw exception: System.IO.FileLoadException: Could not load file or assembly "System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" or one of its dependencies. The located assembly's manifest [...] read more
mstest
entity-framework-core-3.1
0votes
1answer

Azure cloud service: System.Net.Http.Formatting.dll requests old Newtonsoft.Json.dll -> role initialization fails

I have pretty big solution with about 80 projects, running on the Azure cloud service server as Web role using WebAPI (v1). I have created new enhancement regarding content negotiation by implementing custom JsonReader/Writer. When I have tried use it by implementing custom MediaTypeFormatter based on the BaseJsonMediaTypeFormatter it fails [...] read more
c#
nuget
azure-cloud-services
dll-dependency
0votes
0answers

WIX adding dll reference picking wrong version

<Fragment> <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> <Component Id="ProductComponent" Guid="b21e914c-3c08-4876-b825-9a15f273091b"> <File Source="$(var.LenderService.TargetPath)" /> <File Id="Microsoft.Owin.Hosting" Name="Microsoft.Owin.Hosting.dll" Vital="yes" KeyPath="no" DiskId="1" Source="..\LenderService\LenderService\bin\Release\Microsoft.Owin.Hosting.dll" /> <File Id="Microsoft.Owin" Name="Microsoft.Owin.dll" Vital="yes" KeyPath="no" DiskId="1" Source="..\LenderService\LenderService\bin\Release\Microsoft.Owin.dll" /> <File Id="Owin" Name="Owin.dll" Vital="yes" KeyPath="no" DiskId="1" Source="..\LenderService\LenderService\bin\Release\Owin.dll" /> <File Id="Microsoft.Owin.Host.HttpListener" Name="Microsoft.Owin.Host.HttpListener.dll" Vital="yes" KeyPath="no" DiskId="1" Source="..\LenderService\LenderService\bin\Release\Microsoft.Owin.Host.HttpListener.dll" /> <File Id="System.Web.Http" Name="System.Web.Http.dll" Vital="yes" KeyPath="no" DiskId="1" Source="..\LenderService\LenderService\bin\Release\System.Web.Http.dll" /> [...] read more
visual-studio-2015
wix
json.net
0votes
2answers

unable to start windows service after installing using msi

I've created a windows service project. In the post build event, I am copying the output to outside one common directory along with one more project. I am generating a MSI using heat task to copy both directories inside MSI. I'm trying to start service after installation. Both projects use [...] read more
c#
wix
windows-services
0votes
2answers

signalr generating error while creating server.js file

I'm creating Chat Application for Android using Xamarin under Visual Studio 2015 Pro. I want to create a physical file for the SignalR generated proxy describe Here: SignalR Hubs API GuideSo as stated I install the Microsoft.AspNet.SignalR.Utils NuGet package. And I tried: signalr.exe ghp /path:"D:\WORKS\VISUALSTUDIO\ASPWEBSITE\ServerSignalR_ChatHub\ServerSignalR_ChatHub\bin" but it always gives below [...] read more
c#
.net
signalr-hub
0votes
1answer

.NET WinForms: Cound not load System.Runtime

I was writing an app for a friend who wanted an easy way to use Morse Code. I was attempting to use an External Library that I wrote with Morse Code support, and when I try to call it, I get this error, in an External "Control.cs " file. I [...] read more
c#
.net
winforms
0votes
0answers

'Could not load file or assembly 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies

I get the error while trying to compile a WPF Project with Visual Studio 2013. Error 3 Unknown build error, 'Could not load file or assembly 'System.Windows, Version=5.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)' [...] read more
c#
wpf
dll
visual-studio-2013
compiler-errors
0votes
2answers

System.IO.FileLoadException: Could not load file or assembly 'log4net

We are using Crystal Report In MVC.NET project refer to this link : to create a PDF file from the data and export it using Crystal Reports in MVC.NET.• https://www.c-sharpcorner.com/article/use-crystal-report-in-mvc-net/ we have this error after exporting report and try to run it : System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw [...] read more
crystal-reports
0votes
0answers

Is there a way to figure out who is trying to load a given assembly at runtime?

At runtime I am getting: > ERR: The assembly reference did not match the assembly definition found. I was able to gather this information: *** Assembly Binder Log Entry (6/24/2020 @ 9:08:56 AM) *** The operation failed. Bind result: hr = 0x80131040. No description available. Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll [...] read more
c#
.net
windows
.net-assembly
0votes
1answer

Where can i find Oracle.DataAccess.dll?

Can anyone help me how can i find Oracle.dataAccess.all for Oracle Instant Client 11.2.0.4.0? I try to connect my application with database, but i got this error: > Could not load file or assembly 'Oracle.Web, Version=4.112.1.2, Culture=neutral' or one of its dependencies. The located assembly's manifest definition does not match [...] read more
database
oracle
0votes
1answer

HRESULT: 0x80131040 : Could not load file or assembly or one of its dependencies

I have strange symptoms in my project HRESULT: 0x80131040 occured [Microsoft.Azure.Amqp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'] <assemblyIdentity name="Microsoft.Azure.Amqp" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-2.3.0.0" newVersion="2.3.0.0" /> No problem in my PC environment(Win10) also Win7 Problems arise in different device(Win10). I tried to upgrade Nuget version, but prob still remain read more
c#
visual-studio
0votes
0answers

Load .NET Core library to .NET 4.5 Framework, Could not load file or assembly Microsoft.Extensions.DependencyInjection.Abstractions

We have one library .NET Core 3.1 which is used in .NET core app, now we need to use add it to .NET Framework 4.7 app which is not yet migrated to .NET core. I have added <TargetFrameworks>net47;netcoreapp3.1</TargetFrameworks> to the library and be able to install it to .NET Framework [...] read more
asp.net-core-3.1
.net-4.7
0votes
0answers

C# Errors - Impossible to load Assembly

I have problem's with a C# project. The error when i start my application : > URI de démarrage :xxxxxxxxxxxxxxxxxxxxxxxxxxxx.xbap Identité de l'application :xxxxxxxxxxxxxxxxxxxxxxxxxxxx.xbap#xxxxxxxxxx.xbap, Version=1.0.0.212, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil/xxxxxxxxxx.exe, Version=1.0.0.212, Culture=neutral, PublicKeyToken=0000000000000000, processorArchitecture=msil, type=win32 System.Windows.Markup.XamlParseException: Impossible de charger le fichier ou l'assembly 'MaterialDesignThemes.Wpf, PublicKeyToken=null' ou une de ses dépendances. La définition [...] read more
c#
.net
windows
.net-assembly
0votes
0answers

Asterisk ARI implement the component

I am using library AsterNET.ARI and we have asterisk 16.8 as version When I run my code in the part of the construction of the object ARiclient I have a error message below: Environnement: WIndows 10 System.IO.FileLoadException HResult=0x80131040 Message=Impossible de charger le fichier ou l’assembly ‘WebSocket4Net, Version=0.15.0.0, Culture=neutral, PublicKeyToken=null’ ou [...] read more
c#
asterisk-ari
0votes
1answer

Dotnet core 3.1 Identityserver Missing Newtonsoft.Json 12.0.0

I got a problem while trying to run Identityserver4 in my dotnet core 3.1 application I followed the basic configuration guide for Identityserver and wrote this to my configureService method in the Startup file. services.AddIdentityServer((x) => { x.PublicOrigin = Environment.GetEnvironmentVariable("baseUrl"); }) .AddInMemoryApiResources(Config.Apis()) .AddDeveloperSigningCredential() .AddCorsPolicyService<CorsPolicyProvider>() .AddInMemoryClients(Config.Clients) .AddExtensionGrantValidator<AzureLoginGrant>() .AddProfileService<ExtendedProfileService>(); Running this application [...] read more
.net-core
identityserver4
0votes
2answers

Docusign "Could Not load file or Assembly Restsharp" Error

I'm using Docusign in my (.netcore 3.1) project and I'm also using another nuget package which relies on minio. Both seem to rely on Restsharp. When I try to run my app I'm getting this error: System.IO.FileLoadException: 'Could not load file or assembly 'RestSharp, Version=106.3.1.0, Culture=neutral, PublicKeyToken=598062e77f915f75'. The located assembly's [...] read more
c#
.net-core
docusignapi
0votes
2answers

DocuSign API fails when RestSharp is updated to 106.10.1

If I use an API I've written using the DocuSign API in a project with RestSharp updated to 106.10.1, I get the following error: System.IO.FileLoadException : Could not load file or assembly 'RestSharp, Version=106.3.1.0, Culture=neutral, PublicKeyToken=598062e77f915f75' or one of its dependencies. The located assembly's manifest definition does not match the [...] read more
dll
nuget
docusignapi
restsharp
0votes
0answers

VS2019 attempting to load a dll that no longer exists

* Microsoft Visual Studio Community 2019 * Version 16.6.1 * VisualStudio.16.Release/16.6.1+30128.74 * Microsoft .NET Framework * Version 4.8.03761 * Installed Version: Community * Visual C++ 2019 00435-60000-00000-AA486 * Microsoft Visual C++ 2019 VS is attempting to load a dll (eesPhotography.dll) that no longer exits. I'm getting the following message in [...] read more
c#
0votes
0answers

An unhandled exception was thrown. Could not load file or assembly Newtonsoft.Json Version=12.0.0.0 on Azure AppService with .NetCore 3.1

This is an web application which is build on .net core 3.1. The .Net solution has 4 projects in it and each project's target framework is .net core 3.1. The start up project is a combination of MVC and Web API. for example in the action methods of EventController.cs, will [...] read more
c#
azure
json.net
azure-web-app-service
asp.net-core-3.1
0votes
0answers

Exception message: Could not load file or assembly.....redux

Sure, we've all seen this message and usually it's a fairly simple fix, but this time I'm stumped. I've been updating packages on an older solution; not a big deal........until I updated Newtonsoft.Json to 12.0.3 and Microsoft.AspNet.WebApi.Core to 5.2.7. After this attempt, I continually get the error: Could not load [...] read more
exception
dependencies
package
load
.net-assembly
0votes
1answer

Different version for RestSharp reference(106.10.1) in NuGet package & .Net MVC reference (105.2.3)

I have .Net MVC project using user defined NuGet package which has RestSharp version - 105.2.3, also same .Net MVC has reference to RestSharp version - 106.10.1 With this setup I am getting below error: > {"Could not load file or assembly 'RestSharp, Version=105.2.3.0, Culture=neutral, PublicKeyToken=null' or one of its [...] read more
c#
.net
nuget
restsharp
0votes
1answer

Works on WPF. But on VSTO project, throws error: Could not load file or assembly 'SQLitePCLRaw.core, Version=2.0.2.669, Culture=neutral

I've created a .NET Standard 2.0 class library project that works fine when referenced by a WPF App (.NET Framework 4.8) project. But when the same library is referenced by a MS Office VSTO Project (also using .NET Framework 4.8), I get the following error on the code line shown [...] read more
c#
wpf
sqlite
vsto
microsoft.data.sqlite
0votes
0answers

How to reference a WPF .NET Core dll in WPF .net framework

From Visual Studio 2019, I've created a WPF project in .NET Core. The project name is test1. The dll of test1 project is added in WPF .NET framework from Visual Studio 2017 using reference option. enter image description here [https://i.stack.imgur.com/chObC.png] After adding dll, I tried to call MainWindow from Test [...] read more
c#
.net
.net-core
.net-framework-version
0votes
0answers

Is it possible to use binding redirects to replace a nuget package assembly with a custom debug replacement for testing?

In my particular case we're using the RabbitMQ client package from NuGet and having some issues with it's auto-recovery. I want to add some additional logging within the implementation, so I took the source for the version we're using, added a few lines of log messages and built it. Ideally [...] read more
c#
.net
0votes
2answers

Including NGravatar leads to OData.Core dll not found ( and using higher version)

I'm totally flabbergasted by this. I have a Asp.Net MVC v 5.2.3 project. When i include https://github.com/NicoJuicy/ngravatar ( not published on the default nuget repo yet). The NGravatar nuget package sample works on Mvc v. 5.2.3. When i include it in my own project, OData dll gives me an error: [...] read more
c#
visual-studio
dll
nuget
nuget-package
0votes
3answers

YSOD Could not load file or assembly CMS.DataEngine - after Kentico 11.0.0 upgrade to Kentico 12 SP1

Just finished upgrading Kentico 11.0.0 with MVC, to Kentico 12 SP1 using https://docs.kentico.com/k12sp/installation/upgrading-to-kentico-12 No issues during upgrade. Kentico CMS is coming up fine on local IIS and Azure app. MVC site came up fine on local IIS. But staging MVC site is showing this error in Azure app: > Server [...] read more
asp.net-mvc
azure-web-sites
kentico
0votes
0answers

c# Failed to load assembly Google.Api, Version 1.42.0.0

I have an Visual Studoo 2019 C# project where I want to use Google.Cloud.BigQuery.V2. When I install the Nugget Packages, it tells me that I need version 1.44.1.0 of Google.APIS. But when I run the project, il says that it needs version 1.42. Thanks Manu Message in french : Impossible [...] read more
.net-assembly
google-api-dotnet-client
0votes
1answer

XAMARIN ANDROID app got System.ServiceModel.FaultException

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: [...] read more
c#
android
xamarin
0votes
2answers

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or

I tried to use Logging in Enterprise Library 6.0 in VS2015 and the following exception pops up. The reference Microsoft.Practices.EnterpriseLibray.Common is already added in the references of VS2015. Server Error in '/' Application. Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located [...] read more
c#
asp.net
visual-studio-2015
.net-assembly
enterprise-library
0votes
1answer

How to downgrade Microsoft.AspNetCore.Mvc.Core version from 2.1.16 to 2.1.11

I am publishing my .net core application in local machine and deploying to client server. But my application gives below error. > Error:FileLoadException: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Core, Version=2.1.16.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) I observed [...] read more
c#
asp.net-mvc
asp.net-core
asp.net-core-webapi
asp.net-core-2.1
0votes
0answers

While mocking interface using NUnit throws exception of type 'System.IO.FileLoadException'

Currently using NUnit framework 3.12 for writing unit test cases in my .Net project in C#. When I am trying to mock an interface it's gives below error: '((Moq.Mock)InterfaceName).Object' threw an exception of type 'System.IO.FileLoadException'. And getting below coming an inner exception message after adding watch: Could not load file [...] read more
c#
model-view-controller
nunit
0votes
0answers

Could not load file or assembly 'Oracle.DataAccess, Version=2.112.4.0

I received code from my client, the web.config has following entry: <add assembly="Oracle.DataAccess, Version=2.112.4.0, Culture=neutral, PublicKeyToken=89B483F429C47342" /> From the compile time error in Visual Studio 2019 in my vb.net project targeting framework 4.0, it seems I have to install Oracle Data Access component. Error message: Could not load file or [...] read more
.net
oracle
0votes
1answer

System.Data.SQLite.EF6.Migrations: load a wrong version which does not exist (Entity Framework 6, NOT core)

I am trying to use code-first approach to configure a .net 4.5 project with libraries of * System.Data.SQLite * System.Data.SQLite.EF6 * System.Data.SQLite.EF6.Migrations I have everything set up successfully in a POC sandbox and it works fine. Following exactly the same configuration in the production project, I have got error raised [...] read more
c#
.net
sqlite
0votes
0answers

C++/WinRT project crashes when calling into C# Windows Runtime component

I have a Windows Runtime component written in C# (call it TreeDumpLibrary) and a C++/WinRT UWP app. The app references the C# WinRT component and calls a static function in a class in the WinRT component. Everything builds, however at runtime I get an exception > when trying to activate: [...] read more
c#
uwp
c++-winrt
0votes
0answers

FileLoadException from ComponentActivator when resolving a registered class

Building a Plugin system with Castle Windsor, I am relying on the IWindsorContainer.Register(Classes.FromAssemblyInDirectory(...).BasedOn(IMyInterface)) Function. My Main App (into which components should be plugged in) references Castle Windsor 5.0.1 via NuGet. One Plugin-Assembly that implements IMyInterface also references Castle Windsor 5.0.1 directly, plus another NuGet Package, that itself requires Castle Windsor [...] read more
c#
castle-windsor
0votes
0answers

OpenTK GLControl problems

I have recently updated the nuget package of OpenTK to the version 3.2.0 and I have the version 3.1.0 in the OpenTK.GLControl package. Since then I been having seriuos problems to run my app. I´ve tried everything but when I try to add a Glcontrol to the form it dissapears [...] read more
winforms
nuget
opentk
0votes
0answers

Receiving Parser Error saying it could not load file or assembly, I checked and it's using the correct version though?

I'm trying to run an ASP web app but it's throwing a Parser Error. Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load file [...] read more
c#
asp.net
0votes
1answer

Interpretion for Connect.Dnn.Koi.DnnSkinFile.AutoDetect error

I've a DNN 8.0.3 site, with 2sxc 10.25.2 just installed. I had the old FAQ (v1) installed, then installed the latest (v2.x), deleted the old FAQ App. Then when I created a new FAQ app I get the following (KOI?) error. I can go through and edit the FAQ template, [...] read more
dotnetnuke
2sxc
0votes
0answers

Google Apis and Unit Tests

I am using Google Auto Ml in my project and i am creating DLL and making some unit tests for it. When i am trying to create AutoML client inside my dll, while calling it from my unit test, it thorws me this error: > System.IO.FileLoadException: Could not load file [...] read more
c#
google-cloud-automl
fileloadexception
0votes
1answer

JWT Token BouncyCastle exception

I developed a program to use the DocuSign API but I have a problem when I try to receive a JWT Token. I get the following exception: System.IO.FileLoadException: 'Could not load file or assembly 'BouncyCastle.Crypto, Version=1.8.2.0, Culture=neutral, PublicKeyToken=0e99375e54769942' or one of its dependencies. The located assembly's manifest definition does not [...] read more
docusignapi
0votes
0answers

Error : Could not load file or assembly 'System.Web.WebPages.Razor, Version=3.0.0.0 after deploy to IIS

I deployed my code to server and I am facing error Could not load file or assembly 'System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Stack Trace: [FileLoadException: Could not load file or assembly [...] read more
c#
asp.net
asp.net-mvc
iis-7
fileloadexception
0votes
1answer

I get this error Could not load file or assembly "System Threading Tasks Extensions" after installing EF Core 3.1.3

I'm trying to use EF Core in my project so I download the last stable version 3.1.3 I created a DbContext and classes from my database using Scaffold-DbContext command in Package Manager console, and after all thing are establish I try to using this code using (var dbContext = new [...] read more
c#
winforms
devexpress
ef-core-3.1
0votes
1answer

FileNotFoundException (Could not load file or assembly) thrown when using a .NET standard library in a full trust win32 component of UWP app

I'm having my domain logic in a .NET standard library. I'm trying to use it in a full trust win forms tray component defined in an UWP application. My domain logic library is referenced in both the UWP project and the win forms project. Now if I start the win [...] read more
c#
winforms
uwp
.net-standard-2.0
0votes
0answers

PackageReference Redirect underlying package?

I'm using a NuGet package (IdentityModel.OidcClient 3.1.2) and this throws an error Could not load file or assembly 'Newtonsoft.Json, Version=10.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) The version in the bin folder is Newtonsoft.Json.dll [...] read more
nuget
assembly-binding-redirect
packagereference
-1votes
0answers

Build error when using Nodatime 2.3.2 package

I get the following error when building in MS Build 2019. It builds fine locally but not in build server. ASPNETCOMPILER error ASPCONFIG: Could not load file or assembly 'NodaTime, Version=2.3.2.0, Culture=neutral, PublicKeyToken=4226afe0d9b296d1' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception [...] read more
msbuild
.net-framework-version
build-error
nodatime
ical.net

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0