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

735votes
50answers

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
234votes
39answers

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
231votes
42answers

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
208votes
31answers

Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies. Manifest definition does not match the assembly reference

Things I've tried after searching: 1. in Web.Config put a binding on the old version: <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.1.0" /> </dependentAssembly> 2. Edit my .csproj file to make sure there is only one Newtonsoft reference <Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> <HintPath>..\packages\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll</HintPath> <SpecificVersion>False</SpecificVersion> <Private>True</Private> </Reference> [...] read more
json
json.net
.net-assembly
81votes
24answers

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
55votes
16answers

Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0

I just upgraded packages in an MVC 3 project (ASP.net 4), and now I am getting the following error message when accessing a page in that project: > SERVER ERROR IN '/MYAPPLICATION' APPLICATION. Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located [...] read more
asp.net-mvc-3
razor
dependencies
asp.net-4.0
48votes
13answers

Could not load file or assembly 'Microsoft.ReportViewer.WebForms'

I am trying to use the report viewer in asp.net and have uploaded my site. However, when my page containing the report viewer is loaded, it shows the following error: > Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest [...] read more
asp.net
reporting-services
reportviewer
44votes
9answers

Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.1.0.0

I have a .NET Standard 1.4 class library that references the System.ComponentModel.Annotations (4.3.0) NuGet package. I'm then referencing this class library from a .NET Framework 4.6.2 test project. It builds fine, but at runtime I get the following error: > System.IO.FileLoadException occurred HResult=0x80131040 Message=Could not load file or assembly 'System.ComponentModel.Annotations, [...] read more
.net
visual-studio-2017
.net-standard
.net-standard-1.4
38votes
8answers

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
33votes
6answers

Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Elmah.MVC issue

Locally - my MVC 4, asp.net, c# app runs fine on IIS 8 / Windows 8. When deployed to Windows Server 2008, I get this error: Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the [...] read more
asp.net
asp.net-mvc
asp.net-mvc-4
assemblies
elmah.mvc
32votes
2answers

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
31votes
14answers

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
29votes
5answers

Using multiple versions of the same DLL

I've been tasked in creating a new module for an application, and so, I'm adding new DLLs to the project. This is all fine and well. However, in my DLLs I'd like to use a new version of an external DLL (over which I have no control). If I just [...] read more
c#
visual-studio-2010
.net-4.0
reference
24votes
2answers

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

I have deployed an .NET WebAPI app (compiled against .NET 4.5.2, and running locally) into an Azure App Service. The error thrown there is > Could not load file or assembly 'System.Web.Mvc, Version=4.0.40804.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly [...] read more
c#
asp.net
asp.net-mvc
azure
.net-assembly
23votes
2answers

Assembly Conflict with Newtonsoft.Json

I need to load 2 versions of assembly Newtonsoft.Json version 4.0.8.0 and 4.5.0.0. My current config file : <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.0.8.0" newVersion="4.0.8.0" /> </dependentAssembly> but it needs to be: old 4.0.8.0 and new 4.5.0.0 <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.0.8.0" newVersion="4.5.0.0" /> </dependentAssembly> [...] read more
.net
json.net
.net-assembly
19votes
5answers

Could not load file or assembly 'System.Web.Mvc' . How to use the correct reference?

I have an application built on ASP.NET web forms which also supports MVC 5. I included MVC 5 API controllers in my project for which I had to upgrade Json from version 4.5 to 7.0. After making those changes when I launched the application, I get the following error: > [...] read more
asp.net
.net
asp.net-mvc
asp.net-mvc-5
19votes
2answers

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
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 System.Data.SqlClient, Version=4.2.0.2 when I use System.Data.SqlClient Version 4.4.3

I use System.Data.SqlClient Version 4.4.3 for all .NET Standard 2.0 class libraries in my ASP.NET Core 2.0 project. Why do I get > > Could not load file or assembly 'System.Data.SqlClient, Version=4.2.0.2, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) when [...] read more
c#
azure-devops
azure-web-sites
asp.net-core-2.0
.net-standard-2.0
17votes
8answers

Could not load file or assembly 'WebGrease' one of its dependencies. The located assembly's manifest definition does not match the assembly reference

This issue has many solutions, please read all answers below, they might help you solve your problem too. If you find a new way to solve this, please document in your answer I am trying to add System.Web.Optimization to my ASP.NET Web Forms solution. I added Microsoft ASP.NET Web Optimization [...] read more
c#
asp.net
asp.net-mvc
bundling-and-minification
asp.net-optimization
9votes
5answers

MVC4 Azure Publishing Error - Could not load file or assembly 'System.Web.Razor'

The project runs fine locally, its only when published I get the following error: > Could not load file or assembly 'System.Web.Razor' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Having spent the last few hours googling the [...] read more
azure
asp.net-mvc-4
razor-2
fusion
9votes
1answer

Can't load Assembly System.Net.Http.Formatting in .Net Solution

I get the following error when trying to update-package on the NuGet Console: At line:1 char:1 + Update-Package Microsoft.AspNet.WebApi -reinstall + CategoryInfo : InvalidOperation: (:) [Update-Package], InvalidOperationException + FullyQualifiedErrorId : NuGetMissingPackages, NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand When I try to install NuGet.PackageManagement.PowerShellCmdlets I get the error: An error occured while trying to restore packages:Unable [...] read more
.net
nuget
package
.net-assembly
7votes
2answers

Could not load file or assembly 'Microsoft.EntityFrameworkCore.SqlServer, Version=1.1.0.0' after upgrading to 1.1.0

I have a Asp.Net Core project targeting .NET 462 and it was working with Asp.Net Core version 1.0.1. After upgrading to "1.1.0" I got this error: > FileLoadException: Could not load file or assembly 'Microsoft.EntityFrameworkCore.SqlServer, Version=1.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's manifest definition does not [...] read more
dll
asp.net-core
entity-framework-core
7votes
2answers

Assembly Load error from DocumentFormat.OpenXml

I get an error using the Microsoft ClosedXml and DocumentFormat.OpenXml NuGet utility packages. After I updated these NuGet packages, (from version 2.7.2 to version 2.8.1), I now get this exception: > Exception System.IO.FileLoadException: Could not load file or assembly 'DocumentFormat.OpenXml, Version=2.7.2.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17' or one of its dependencies. The located [...] read more
.net
closedxml
assembly-loading
7votes
3answers

Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform

Other articles on here haven't been able to solve my issue. The following errors are being thrown when I run my ASP.NET MVC5 Web Project. Anyone got an idea where I am going wrong? Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.8.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The [...] read more
asp.net
visual-studio
asp.net-mvc-5
7votes
4answers

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
6votes
0answers

Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions using COM

[Recent Note] If it were not for the com-visible aspect, this question would be a duplicate of this question on assembly binding. I had struggled for days because I did not realize that I needed to alter my unit test project as well as the com visible project. If you [...] read more
com
vb6
entity-framework-core
.net-standard
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
4votes
3answers

C# Unity Error: Could not load file or assembly

I found this demo article on Unity. Looks pretty straightforward but I'm getting the following error: > Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) https://www.tutorialsteacher.com/ioc/register-and-resolve-in-unity-container using System; [...] read more
c#
unity-container
3votes
5answers

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
3votes
2answers

How to resolve "The located assembly's manifest definition does not match the assembly reference." error?

I downloaded source code for pdfiumviewer from git hub. I made changes to one of the projects in that solution.Then I added that project to my application and added reference of that project to one my application's project.I had to uncheck the Signing option for the PDfiumViewer project, as some [...] read more
c#
manifest
.net-assembly
pdfium
3votes
2answers

EF Core 2.1.4 FileLoadException System.ComponentModel.Annotations 4.2.0.0

After upgrading our data access layer from EF6 to EF Core 2.1(.4) we are having trouble with a FileLoadException with System.ComponentModel.Annotations, Version=4.2.0.0, which is odd since EF Core 2.1.4 uses 4.5.0.0, and nothing else (we can find) in our solution uses 4.2.0.0. Say for example we have the following project [...] read more
c#
.net
entity-framework
ef-core-2.1
3votes
3answers

Cannot load System.ComponentModel.Annotations from OrmLiteConfigExtensions (ServiceStack.OrmLite.Core)

I get a runtime error when using ServiceStack.OrmLite.Core package (5.4.1) and trying to get a ModelDefinition (ServiceStack.OrmLite.ModelDefinition) by doing: var model = ModelDefinition<T>.Definition; The error reads as follows: System.IO.FileLoadException: 'Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does [...] read more
c#
.net
.net-core
servicestack
ormlite-servicestack
3votes
2answers

How to load same assembly of different version in one application?

I have Windows forms application in C#. I am in need to make use of the below dll. Interop.SHDocVw.dll The problem is that I need to refer two different versions of this same assembly. I tried keeping the dll in two different locations & tried to add but not allowing. [...] read more
c#
.net
.net-assembly
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
2answers

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
2votes
2answers

error while getting a response from stripe "Could not load file or assembly 'System.Collections.Immutable'

Stripe Library referenced : Stripe.net Runtime Version:v4.0.30319 Version : 25.2.0.0 while getting a response from the stripe and calling the charge function() in am getting the error "Could not load file or assembly 'System.Collections.Immutable, Version=1.2.3.0, Culture=neutral" on the code mentioned below <form action="/Pay/Charge" method="POST"> <article> <label>Amount: $5.00</label> </article> <script src="//checkout.stripe.com/v2/checkout.js" [...] read more
c#
.net
asp.net-mvc
stripe-payments
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
2votes
2answers

ASP.NET Web-Api working local but not after deploy on IIS7

My Web-Api project works just fine on my local machine but after i deployed it to my file system and copied it to a windows server 2008 - IIS7, i get this exception when trying to access the RESTful-Service. Could not load file or assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or [...] read more
c#
asp.net
asp.net-web-api
2votes
0answers

Dotnet runtime store: Crossgen can't find the System.Runtime 4.2.2.0

I am trying to build the runtime store for my application, optimized for target runtime. However it fails to resolve the System.Runtime, 4.2.2.0 dependency. My manifest file's contents is as follows: <Project Sdk="Microsoft.NET.Sdk"> <ItemGroup> <PackageReference Include="AutoMapper" Version="9.0.0" /> </ItemGroup> </Project> The command is as follows: dotnet store --manifest ./store_broken.manifest --output [...] read more
.net-core
.net-core-3.1
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

Is there some other way to connect to SQL Server without using migration in .NET Core razor project?

I keep getting an error when I try to run the add-migration command in the package manager console: > Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=3.1.2.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (0x80131040) Here is my startup.cs using System; using System.Collections.Generic; using [...] read more
asp.net
sql-server
asp.net-mvc
visual-studio
razor
1vote
1answer

EF Core migration errors with the located assembly's manifest definition does not match the assembly reference

I'm trying to generate a database from the terminal of VS code using SQL Operations Studio, whenever I try to generate a migration this error occurs. dotnet ef migrations add init > Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly '/usr/local/share/dotnet/sdk/2.1.401/DotnetTools/dotnet-ef/2.1.2/tools/netcoreapp2.1/any/tools/netcoreapp2.0/any/ef.dll'. The located assembly's manifestdefinition does not match the [...] read more
c#
.net-core
entity-framework-core
1vote
2answers

System.IO.FileLoadException on System.ServiceModel.Primitives

I am currently working on a Xamarin project, and I required something that Xamarin on it's own doesn't support, so I looked for solutions. After messing around with some NuGets, my project ended up with a bunch of weird and unexplainable compile errors, popping up and disappearing randomly. Eventually I [...] read more
c#
fileloadexception
1vote
2answers

Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral on IIS

I started updating some nuget packages and started getting these warnings on build with a conflict for System.Net.Http. As suggested here: Strange issue with System.Net.Http 4.2.0.0 not found I replaced all references to System.Net.Http to use the nuget version, instead of the one bundled with Visual Studio. I then changed [...] read more
asp.net
.net
1vote
1answer

ServiceStack License not found when using NUnit 3 through Console Runner in TeamCity

I am using a valid license key. But I keep getting this error: ServiceStack.LicenseException : The free-quota limit on '10 ServiceStack Operations' has been reached. Please see https://servicestack.net to upgrade to a commercial license or visit https://github.com/ServiceStackV3/ServiceStackV3 to revert back to the free ServiceStack v3. So far I have tried [...] read more
nunit
teamcity
servicestack
nunit-console
1vote
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
1vote
0answers

c# .net framework 4.8 webapp binding redirect works on laptop, but not when deployed on IIS via build server (I have a netstandard dependency)

My framework 4.8 webapp sln (using package.config nuget), has a dependency on a netstandard2.0 lib. When I deploy the webapp, via build server, to IIS I get a binding redirect problem where the redirect in my web.config directs e.g. === LOG: This bind starts in default load context. LOG: Using [...] read more
c#
.net
asp.net-mvc
.net-standard
1vote
1answer

When using Azure SignalR, cannot load Microsoft.Extensions.Logging.Abstractions

I am using Asp.Net MVC5 and trying to implement Azure SignalR with SQL dependency on our Azure database. I am able to run our app just fine, and I had local-hosted SignalR working previously as well, but when I try to use Azure SignalR and add: public partial class Startup [...] read more
c#
azure
asp.net-mvc-5
signalr
1vote
0answers

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

I have been struggling with this for two days now. I have looked all over the internet and tried many different things, all with no help. I have a .NET Core 3.1 self contained solution with about 4 projects. I am building the application on my Windows desktop. When I [...] read more
deployment
compiler-errors
dependencies
version
.net-core-3.1
1vote
2answers

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

> System.IO.FileLoadException: Could not load file or assembly 'EntityFramework, Version=5.0.0.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) App.config <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> <section [...] read more
c#
entity-framework
1vote
0answers

VM instance google cloud nuget dependency error when using Docker-compose

So I'm doing a project where I use a sql-server container and my own container with my api. I user docker-compose to run those at the same time and specify the ports etc. This works fine on my local machine and on the local machines of my team mates. This [...] read more
docker
.net-core
google-cloud-platform
docker-compose
nuget
1vote
0answers

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

I've got a console EXE written in C# in Visual Studio 2015. Originally in .Net 4.62. It uses some dependencies on a package called 'CertMgmt.SDK' which is internal to our company. That package has a dependency on another package called 'Polly'. Right now the internal cert management package (CertMgmt.SDK) is [...] read more
c#
manifest
polly
1vote
0answers

F# cannot load FSharp.Core if WPF class is changed

I am using FsXaml with the following code module Configurator open System open System.Windows open FsXaml type ConfigUI = XAML<"ConfigUI.xaml"> [<STAThread>] let Main (pwszArgument : string) = let program = new Application() try program.Run (new ConfigUI()) with | :? System.IO.FileLoadException as ex -> System.Diagnostics.Debug.WriteLine ex.Message; 0 0 When the line [...] read more
.net
wpf
f#
fsxaml
1vote
0answers

Microsoft.SqlServer.Types assembly causes problems with geography datatype. How to fix?

After upgrading and changing my project to target network .NET 4.8 and upgrading used Nuget packages to the latest version in package manager. This brought up a host of problem. Most pressing was the inability to use Geography data type in DataReader and Entity Framework. The error in data reading [...] read more
c#
asp.net
.net
sql-server
.net-assembly
1vote
1answer

Could not load file or assembly 'Microsoft.EntityFrameworkCore.SqlServer, Version=3.1.0.0

I am converting a Asp.net Core 3.0 to asp.net core 3.1. Everything works fine from visual studio 2019. However when I publish a deployment package and execute the web application from IIS I get the following error message: Application startup exception: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.EntityFrameworkCore.SqlServer, Version=3.1.0.0, [...] read more
asp.net-core
entity-framework-core-3.0
1vote
1answer

Have two separate versions of a dll

I have a web form application that have all business logic in a separate dll with it's own project. The dll need to have two different version of Newtonsoft.json. I have tried using the following code in both the websites web.config and the dll app.config file but I can't get [...] read more
.net
dll
1vote
0answers

asp.net Swashbuckle integration causes "Could not load file or assembly 'System.Web.Http, Version=4.0.0.0"

I wish to add Swagger to my asp.net REST service using Swashbuckle as outlined here. I went through all the steps, and since I am using Owin I have both Swashbuckle and Swashbuckle.Core nugets installed. However, when I run, and navigate to http://localhost/myapp/swagger I get the following error.. Could not [...] read more
c#
asp.net
asp.net-web-api2
swagger
swashbuckle
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
2answers

This site can’t be reached [site]'s server DNS address could not be found. ERR_NAME_NOT_RESOLVED

I'm running windows 10 and IIS version 1511(build 10586.164) I have the default app pools running and the the default html displayed. All of the other sites I've added give the same > This site can’t be reached [site]'s server DNS address could not be found. ERR_NAME_NOT_RESOLVED I have used [...] read more
asp.net-mvc
iis
asp.net-mvc-5
windows-10
iis-10
0votes
0answers

Need to allow multiple cors specific API action

I am using .Net framework 4.5.1 System.Web.Http : 5.2.3.0 I have existing API call i need to add multiple e.g. [EnableCors(origins: "http://example.com", headers: "accept,content-type,origin,x-my-header", methods: "*")] reference link After installation System.Web.Http.Cors getting below error message Server Error in '/' Application. Could not load file or assembly 'System.Web.Http.Cors, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' [...] read more
asp.net
rest
api
web
0votes
1answer

Is it possible to upgrade a Windows 8.1 App to a UWP Windows 10 app and have WCF project within the UWP app?

I need to upgrade an existing windows 8.1 Mobile app to work on windows 10 and started looking into this. I have managed to port the code to UWP and it builds and runs the UWP app - so far so good. However within the app there is a WCF [...] read more
wcf
uwp
windows-8.1-universal
0votes
0answers

Visual Studio 2019 MySql EDMX Designer fails to load (assembly load failure for MySql.Data.EntityFramework 8.0.19)

I am using a fresh install of Visual Studio 2019 Community, I have installed MySql server 8.0.19 including MySql for Visual Studio and MySql Connector/Net. I have a project with an EDMX file which fails to open with the following error message: enter image description here [https://i.stack.imgur.com/RdIIW.png] I searched long [...] read more
mysql
visual-studio
visual-studio-2019
mysql-connector
edmx-designer
0votes
1answer

NuGet update, now throwing OpenTok: System.IO.FileLoadException: Could not load file or assembly JWT Version=2.0.0.0 on CreateSession

I just updated all my NuGet packages and I can no longer connect to a session. I'm running OpenTok 3.1.0 and JWT 6.1.0 but getting the following error on OpenTok.ConnectSession: OpenTok = new OpenTok(apiKey, apiSecret); SessionHost = OpenTok.CreateSession(mediaMode: MediaMode.ROUTED); <-- error here 3/1/2020 7:40:08 AM ERROR: OpenTok: System.IO.FileLoadException: Could not [...] read more
c#
jwt
opentok
0votes
0answers

Error when adding API Controller with actions, using Entity Framework

I am trying to create a web API with ASP.NET Core, as described here Create a web API with ASP.NET Core At first I scaffolding one table from my Existing MySql Database in EF Core as described here Scaffolding an Existing Database in EF Core. I install dll's: Microsoft.EntityFrameworkCore.Design(2.2.6) Microsoft.EntityFrameworkCore.InMemory(3.1.2) [...] read more
mysql
api
asp.net-core
controller
0votes
1answer

Could not load file or assembly netstandard when I add migration

I have an ASP.Net Core 3.0 solution with 2 projects: Web (start project) and Core (class library). I try to create a migration using Package Manager Console: > add-migration Initial -Project Core -StartupProject Web and get the following error: > Could not load file or assembly 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. [...] read more
c#
asp.net-core
ef-migrations
.net-standard
0votes
1answer

How to call windows runtime component from c++/cx uwp project?

I created a C# runtime component based on Visual Studio template in the same solution with my C++/CX UWP project: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace httpServer { public sealed class Class1 { public int SampleProperty { get; set; } } } I added the [...] read more
c#
uwp
c++-cx
0votes
1answer

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

I am trying to start an iis site (asp.net mvc) which has worked perfectly before my changes. I have referenced some nuget-packages (nothing special, but some of them reference netstandard) and have done some minor code changes. Now I am getting the error Could not load file or assembly 'Merged' [...] read more
c#
asp.net
.net-assembly
0votes
0answers

Multiple Microsoft.Owin Versions with Nuget package

I am in front of a feature freeze in less than a week and I am looking for a way to upgrade Microsoft.Owin in one project only and keep referencing the old versions in other projects. The goal under the hood is to use Microsoft.Owin.Security.OpenIdConnect with the version 4.1.0 providing [...] read more
c#
.net
owin
openid-connect
0votes
0answers

Nuget Package Conflict in Dependencies

I found that my console app (.NET Core 2.2) was blowing up because there seemed to be some kind of conflict between dependencies for JSON.NET (Newtonsoft). This was the exception: > System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The located assembly's manifest definition does not match [...] read more
nuget
0votes
0answers

How to deploy an ASP.NET Web app (using MySQL) to Azure App Center?

I am a total newbie so please forgive me if my questions are dumb. I am learning how to create a web app using ASP.NET. I created a simple Web App using MySQL for creating my database. The app worked perfectly on my local machine. It's an app where users [...] read more
c#
mysql
asp.net
database
azure-web-sites
0votes
0answers

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
0votes
1answer

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

I'm trying to deploy an Asp.net web app with Azure, and I'm getting the following error when running the app from the server. It runs fine locally, but not through Azure. I'm new to Azure and this in general. The only thing that doesn't seem right is, I've set target [...] read more
asp.net
azure
0votes
0answers

Microsoft.ReportViewer.Common -> Error in compilation WebSite

in an old ASP.NET WebForms solution I am having problems compiling it about the ReportViewer component. In particular I get the following build error: Error Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly [...] read more
webforms
reportviewer
0votes
0answers

Have user sign in, but use application permissions instead of delegated permissions ASP.Net MVC Microsoft Graph

A need has come up to build an web application in which the users uses Azure AD to sign in for authentication, but the application needs to use permissions it has. This is because the user won't have the permissions. I have cloned and altered the code here https://github.com/microsoftgraph/msgraph-training-aspnetmvcapp for [...] read more
c#
asp.net-mvc
0votes
0answers

VisualStudio and MSBuild deciding on lower version of NuGet package than required at runtime

ASP.NET Core 2.2.0 Local Visual Studio restore + build is success. packages folder contains : \Microsoft.Extensions.Options.ConfigurationExtensions.dll\2.0.2\ This package is not directly referenced -- it's dependency of Serilog. TeamCity .NET CLI build step success. Site startup throws runtime error : Application: TaskMonitor.exe CoreCLR Version: 4.6.27110.4 Description: The process was terminated due [...] read more
msbuild
dependencies
nuget
teamcity
nuget-package
0votes
0answers

How to resolve errors when i update Microsoft.ReportViewer to 15.0.0.0 version from 11.0.0.0?

I have an old project in MVC in which I updated the rdlc report version from 11.0.0.0 to 15.0.0.0. But after updating I got a bunch of errors some of them I solved but this is not solving given below. Inner Exception 2: ReportProcessingException: An unexpected error occurred in Report [...] read more
c#
asp.net-mvc
rdlc
0votes
0answers

`dotnet run` vs `dotnet publish`

I have an asp.net core project that runs fine in VS and even with dotnet run but when I dotnet publish -c Release -o publish it and try to run it with dotnet publish/Web.dll it runs for a bit then fails with Unhandled Exception: System.IO.FileLoadException: Could not load file or [...] read more
.net
asp.net-core
.net-standard
.net-standard-2.0
0votes
2answers

Using Spire.doc, Spire.xls and Spire.Presentation in same project

Is it possible to use the 3 products in the same project? Just downloaded the free versions of each and the Spire.PDF.dll version are different and causes error "System.IO.FileLoadException: Could not load file or assembly 'Spire.Pdf, Version=3.0.10.54040, Culture=neutral, PublicKeyToken=663f351905198cb3' or one of its dependencies. The located assembly's manifest definition does [...] read more
c#
asp.net-mvc
spire
0votes
0answers

If i add Intacct sdk into my .net application it is breaking with system.runtime exception

I have an application with .net 4.6.1 framework. I recentenly added reference to Intacct sdk 2.10 version. It is working fine in my local environment but if I publish the code and run it the server it breaks with "Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or [...] read more
.net
sdk
intacct
0votes
2answers

Qt VS Tools does not work in Visual Studio 2019

I have installed Qt from this file, qt-opensource-windows-x86-5.13.1.exe and install Qt VS Addin from this file, qt-vsaddin-msvc2019-2.4.1.vsix Unfortunately, Qt VS Tools doesnt work in Visual Studio 2019. I get thisenter image description here [https://i.stack.imgur.com/cwgBo.png] Here are the full ActivityLog.xml if you are interested. https://pastebin.com/AXfCEXuF Below are error related to Qt [...] read more
visual-studio
qt
0votes
1answer

VS 2017 MySql.Data manifest does not match the assembly reference

I've had some problems following migration of a software project to a new machine. I'm trying to get VS2017, MySql.data and my MySQL database working together. I get a long error message (below) implying that my mySql.Data version (8.0.16.0) manifest does not match the assembly reference (I don't quite understand [...] read more
mysql
visual-studio-2017
mysql-connector
mysql.data
0votes
1answer

Could not load file or assembly

I am getting this error on live server when I create a excel file with format xlsx, while on local server its working fine. I had used DocumentFormat.OpenXml and ClosedXML library. Please help me to solve this issue. This is my code. using (XLWorkbook wb = new XLWorkbook()) { wb.Worksheets.Add(dtAgentQuery); [...] read more
c#
asp.net
0votes
1answer

Conflict for System.Runtime.CompilerServices.Unsafe between Npgsql and System.Threading.Tasks.Extensions

I have downloaded EntityFramework6.Npgsql 6.4.0 nuget. As a dependent, Npgsql 4.1.2 was installed along with the nuget. While running the code, observed following error: === Pre-bind state information === LOG: DisplayName = **System.Runtime.CompilerServices.Unsafe, Version=4.0.5.0**, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (Fully-specified) LOG: Appbase = file:///C:/Program Files (x86)/Agilent Technologies/Sample Scheduler for OpenLab/Bin/ LOG: Initial PrivatePath [...] read more
c#
postgresql
entity-framework-6
npgsql
0votes
0answers

FileLoadException: During runtime for an assembly "package referenced" (local nuget) from asp.net core csproj

Here's the situation what I am facing with: Asp.net core .cs web host project has a reference to package "ABC", version 1.0.1. If I set the package source to restore ABC directly from the feed and build, run the application it all works fine. Let's say, If I have the [...] read more
asp.net
asp.net-core
0votes
1answer

NHibernate Version Issue

I'm having a go at getting a test project up and running. I've nabbed a load of code from this article..... Fluent NHibernate Automap with NHibernate Facility in ASP.NET MVC Problem is that I'm getting the following error.... > Could not load file or assembly 'NHibernate, Version=3.0.0.1001, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or [...] read more
nhibernate
fluent-nhibernate
castle-windsor
0votes
0answers

Npgsql: Could not load file or assembly 'System.Net.Sockets, Version=4.2.0.0' on IIS

My Web API is running on IIS 8.5 with .NET 4.6.1 installed. I added a new controller that connects to PostgreSQL database using Npgsql NuGet package. Now I'm getting an exception on every request to that controller in production (on my local machine everything works as expected): > Could not [...] read more
c#
visual-studio
asynchronous
iis
npgsql
0votes
2answers

System.IO.FileLoadException, cant find an assembly, assembly version conflict

I have 2 solutions in one project. One of the solutions is a unit test project, they both have the same Newtonsoft.Json package version. This is the location with the csproj file where the package is installed: <Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> <HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath> </Reference> If I change the version [...] read more
c#
visual-studio-2019
0votes
1answer

Deserialization of DbGeography Entity Framework

I have a class Event with a property of the type DbGeography. public class Event { public long Id { get; set; } public DateTime Date { get; set; } public DbGeography Location { get; set; } } In the class DatabaseHelper I try to load data from a server. [...] read more
asp.net
entity-framework
spatial-data
0votes
0answers

How to fix assembly binding error in .Net core for multiple versions of same nuget package

I have a .Net Core 2.1 App. The 'Microsoft.AspNetCore.App' package here uses the '2.1.0' version of 'Microsoft.Extensions.DependencyInjection' package. I want to download another third party package which requires the '3.1.0' version of the same 'Microsoft.Extensions.DependencyInjection' package. I have tried to fix this by directly downloading the '3.1.0' version of the [...] read more
c#
asp.net-core
.net-core
nuget
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

Cannot load file or asembly 'Microsoft.Extensions.DependencyInjection.Abstractions'

I an old program, which uses Entity Framework Core 2.2.6 to access a MS-SQL database. Now I would like to add some tests to this program, which I would prefer to do using the InMemory package for EFCore. I have a very simple method for getting data, which works in [...] read more
c#
.net
entity-framework
0votes
0answers

Could not load file or assembly 'System.Diagnostics.StackTrace' or one of its dependencies

I keep ending up with this error popping up, and I can't solve it for the life of me. I'm working on an MVC web app in Net Framework 4.6.1, using Entity Framework 6.4. It first popped up this morning, when I had zero references to System.Diagnostics.Stacktrace, it wasn't installed, [...] read more
c#
entity-framework-6
0votes
0answers

System.ValueTuple won't install properly

I'm having trouble deploying a .NET application that works perfectly fine on localhost. The application is passed through TeamCity and then Octodeploy to be hosted on a server. When I navigate to a page that performs a query on the database, and submit that query, I get the following exception: [...] read more
asp.net-mvc
visual-studio
nuget
entity-framework-core
0votes
2answers

Different versions of Newtonsoft gives an error

Im trying to run two versions of Newtonsoft.Json.dll within my site as im using two different plug-ins requiring different versions of Newtonsoft.Json.dll version 6 and version 9. Came across this article Two different versions of Newtonsoft.Json.dll needed in ASP.NET MVC which is the same problem (but for Win forms if [...] read more
c#
dll
json.net
assembly-binding-redirect
0votes
0answers

Could not load file or assembly 'Microsoft.Owin.Security, Version=4.0.1.0

Hi i'm using NopCommerce web api plugin version 3.90 but this error occurred 'Plugin 'Api'. Could not load file or assembly 'Microsoft.Owin.Security, Version=4.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).. How could I solve that [...] read more
asp.net-mvc-4
plugins
nopcommerce-3.90
0votes
0answers

"The located assembly's manifest definition does not match the assembly reference." occurs after some time

I'm using Visual Studio to build a software project and publish it to the target server (in the build menu the entry "publish"). After doing this, I test the software (a SOAP service) by submitting a request with SoapUI. Everything works as desired. Now I wait, say 30 minutes, and [...] read more
c#
asp.net
.net
iis
gac
0votes
0answers

Unable to load Microsoft.Extensions.DependencyInjection.Abstractions 2.2.0 version assembly

I'm getting following error when i try to load 2.2.0 version of Microsoft.Extensions.DependencyInjection.Abstractions assembly. My .net core web app is always trying to load 2.1.0 assembly. All assembly references are point to 2.2.0 version. Please find the below load error. > Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=2.1.0.0, Culture=neutral, [...] read more
c#
.net
asp.net-core
0votes
1answer

Could not load file or assembly 'System.Web.Mvc(1)' or one of its dependencies

The following error appeared after deploying the application to IIS, although it's NOT the first time to deploy this web application, but this is a new update to it! > Could not load file or assembly 'System.Web.Mvc(1)' or one of its dependencies. The located assembly's manifest definition does not match [...] read more
c#
asp.net-mvc
iis
0votes
1answer

Could not load file or assembly ... but not at first?

I have a C# / .NET Windows service that is archiving Exchange mailboxes, and I recently "packaged" the Veeam O365 Backup DLLs to be able to backup Exchange Online mailboxes automatically. I 'll show you some piece of log showing that the program runs without issue for a while, then [...] read more
c#
.net
powershell
.net-assembly
veeam
-1votes
0answers

How can I solve this problem? Entity Framework

I have a old project and update something on db, but if I edit, I receive error. What should I do? Exception detail System.TypeInitializationException was caught HResult=-2146233036 Message=The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception. Source=EntityFramework TypeName=System.Data.Entity.Internal.AppConfig StackTrace: at System.Data.Entity.Internal.AppConfig.get_DefaultInstance() at System.Data.Entity.Internal.LazyInternalConnection..ctor(DbContext context, String nameOrConnectionString) at System.Data.Entity.DbContext..ctor(String nameOrConnectionString) at LetterTracing.Lib.DemoT2016Entities..ctor() [...] read more
c#
entity-framework
sqlite
app-config
-1votes
0answers

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

I'm trying to add a new public key to my windows form application and get the following error when I create a new object in my class Exception message > Could not load file or assembly 'LicensingEngine, Version=1.1.12.0, Culture=neutral, PublicKeyToken=f8x52856fa0addbXX' or one of its dependencies. The located assembly's manifest definition [...] read more
c#
.net
winforms
-2votes
0answers

Could not load file or assembly log4net from CLI/C++ console aplication

I have a project in C# that uses 'log4net'. I have to use this C# dll from a C++ project, which is the main program. So, I implemented a wrapper project in CLI/C++ but I am getting an error with this log4net.dll. I am having the problem regarding 'log4net' when [...] read more
c#
c++
c++-cli
log4net
clr

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