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

794votes
57answers

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
258votes
43answers

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
240votes
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
188votes
29answers

Could not load file or assembly 'System.Web.Http 4.0.0 after update from 2012 to 2013

I did the upgrade according to. http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2 I get the error. Does any one else got this error? > SERVER ERROR IN '/' APPLICATION. Could not load file or assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. [...] read more
c#
asp.net-web-api
odata
visual-studio-2013
70votes
19answers

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
59votes
17answers

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
56votes
10answers

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
56votes
11answers

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
40votes
9answers

Could not load file or assembly System.Net.Http version 4.1.1.0

I'm porting a Net Framework 4 dll to Net Core. When porting my unit tests project I get an exception running some specific tests (not all). > System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not [...] read more
c#
.net
.net-core
porting
.net-framework-version
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
26votes
7answers

Could not load file or assembly Exception from HRESULT: 0x80131040

I created my first MVC 4 project and it works perfectly on local server. But when I publish it on to local folder and upload the folder contents to hosting server. I try to run it and I get this error: > Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.0.0.0, [...] read more
asp.net
asp.net-mvc
asp.net-mvc-4
visual-studio-2012
16votes
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
14votes
4answers

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

Unable to compile project due to Fody errors. Nothing with Fody (or any other code) has been changed

** This is an issue in Visual Studio 2013. The error I'm getting is massive and mostly useless, but the crux of it is Error 130 Fody: Could not load 'ModuleWeaver' from 'PropertyChanged.Fody, Version=1.50.3.0, Culture=neutral, PublicKeyToken=null' due to ReflectionTypeLoadException. It is possible you need to update the package. exception.LoaderExceptions: System.IO.FileLoadException: [...] read more
c#
fody
fody-propertychanged
13votes
2answers

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
13votes
4answers

Could not load file or assembly 'System.Diagnostics.DiagnosticSource on ASP.Net Core migration from VS2015 to VS2017

I have a web in ASP.Net Core (4.6.1 framework) that uses Facebook and MS external login that I created with Visual Studio 2015 and opened in the new Visual Studio 2017 that came out yesterday. VS2017 made a few changes related to the csproj, project.json, etc files. The site compiled [...] read more
authentication
asp.net-core
facebook-login
visual-studio-2017
12votes
9answers

Entity Framework code first migrations throwing error

Here is what I did before I got this error: 1. Installed EF (the pre release version, 6 maybe, I dunno) 2. decided I did not want, so uninstalled that and reinstalled the stable version (5) 3. Truncated my database via SSMS here is the error: Exception calling "CreateInstanceFrom" with [...] read more
entity-framework
c#-4.0
ef-code-first
database-migration
11votes
5answers

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
10votes
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
9votes
6answers

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

MySQL connector 6.7.4 and Entity Framework 5 exceptions

I downloaded MySQL Connector/Net 6.7.4 and MySQL for Visual Studio 1.0.2, and then followed these instructions to test it: 1. Create a connection to the existing MySQL database. 2. Create a console application. 3. Add the ADO.NET Entity Data Model from the existing database connection. 4. Add Code Generation Item [...] read more
c#
mysql
.net
entity-framework
7votes
5answers

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

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

Could not load file or assembly 'System.Net.Http' or one of its dependencies

Maybe Relevant information: I have a web application I built with .net 4.5. I wanted to deploy to Azure's Web Sites but it only supports .net 4.0 so I downgraded the project to .net 4.0. It still works when run locally. When I publish to Azure, i get this error: [...] read more
c#
.net
azure
6votes
3answers

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

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

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

Deploying web server that uses Oracle.DataAccess results in various assembly errors

My development machine is Vista x64. I am using WCF web services to build web services interfacing to an oracle 10g database. When development started, I could not use VS2008's built-in WCF test tool [WCFTestClient] that launches when you press F5 [Go], on the 32-bit Oracle.DataAccess.dll, because I get System.BadImageFormatException [...] read more
.net
wcf
oracle
odp.net
3votes
0answers

Could not load file or assembly 'AvalonWizard, PublicKeyToken=null' or one of its dependencies

My C# App has a reference to AvalonWizard dll. The AvalonWizard dll is strongly signed with a PublicKeyToken = 8f2c89e926618269. However, my app when is loading the AvalonWizard dll, is trying to load an assembly with PublicKeyToken = null and therefore there is the following error: > FileLoadException: Could not [...] read more
c#
dll
reference
3votes
2answers

Why is my HubConnectionBuilder not working on HubConnectionBuilder().Build?

I am trying to learn how to connect to the SignalR Server using the C# client. And I am not sure if the steps I am performing would be considered ok (would work). As I am getting errors of course... I am trying to establish a connection to the site [...] read more
c#
json
http
signalr
3votes
2answers

Could not load file or assembly 'BouncyCastle.Crypto, Version=1.8.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies

I am trying to integrate the Walmart .NET SDK into a .NET 4.61 MVC 5 app. Using NuGet, I added a reference to BouncyCastle.Crypto 1.8.1.0. The SDK uses .NET Standard 1.3 and it references BouncyCastle.Crypto 1.8.1.3: https://github.com/walmartlabs/partnerapi_sdk_dotnet 1.8.1.3 is not available for .NET 4.61. {"Could not load file or assembly [...] read more
c#
3votes
3answers

Web.config not being created in Azure package

I'm trying to run an existing working Web app in Azure, using SDK tools version 2.2. The Web app works fine running as a 'normal' MVC 4 site, and also runs fine in the Azure emulator locally. The app has been designed to run either installed on a server or [...] read more
c#
asp.net-mvc-4
azure
assembly-binding-redirect
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
4answers

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

Trying to follow this tutorial for RazorPDF, and I don't know why am I getting the following error message: Very frustrated and tired. Error Message: > Could not load file or assembly 'itextsharp' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception [...] read more
c#
asp.net-mvc
itextsharp
razorpdf
2votes
1answer

RabbitMQ Connection Factory could not find System.Threading.Tasks.Extensions in my app bin

I have the following code var factory = new ConnectionFactory() { HostName = "path.to.host.net", UserName = "guest", Password = "guest", VirtualHost = "myhost" }; var connection = factory.CreateConnection(); The last line of the above complains with the following error > FileLoadException: Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.0, Culture=neutral, [...] read more
c#
rabbitmq
assembly-binding-redirect
.net-framework-4.8
assemblybinding
2votes
3answers

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

What am I doing wrong? How do I troubleshoot this? I have a solution that has multiple projects. It is an MVC .NET 4.5 web application. When invoking one of the projects AFTER I start in debug mode, I am getting this error. The project that is causing this error [...] read more
c#
asp.net
.net
entity-framework
visual-studio
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

.NET Core 3.1 web API builds fine locally, but gets errors when deploying via Azure DevOps

I had a similar problem a couple weeks ago: I'm getting the error "Microsoft.AspNetCore.Hosting.Abstractions, Version=3.1.0.0" in .NET Core 3.1 app I can run it from Visual Studio 2019 locally with no issues, but whenever I try to run it after deploying via Azure DevOps, I get this error: Unhandled exception. [...] read more
c#
.net-core
2votes
1answer

Why does assembly binding fail in my project?

I am working on an Azure function project in a Class Library project that targets .NET Standard 2.0. I am using the following assemblies, shown below. Beside each one, I've included its dependency requirement of the version of Microsoft.Azure.Webjobs. "Microsoft.Azure.Functions.Extensions" Version="1.0.0" /> Azure.Webjobs needed: >=3.0.5 "Microsoft.Azure.WebJobs.Extensions" Version="3.0.6" /> Azure.Webjobs needed: [...] read more
c#
.net
azure
2votes
1answer

Could not load System.IdentityModel.Tokens.Jwt

I have an asp.net MVC app that utilizes owin json web tokens. I have been deploying this app via the Kudu github integration, and the app works fine. However, I would like to move to deploy via octopus. I am able to create the nuget package needed to deploy and [...] read more
azure-web-app-service
nuget-package
octopus-deploy
2votes
3answers

Kestrel fail: Can not load Microsoft.Extensions.Logging.Abstractions

I had a very simple Kestrel / ASP.NET Core project successfully deployed to my Windows 2008 R2 server.. (started with an empty Web project + IdentityServer4 nuget I was following this Getting Started page) So, I could initially retrieve the 'discovery' JSON document. Then, (per this guide) I added a [...] read more
asp.net-core
identityserver4
kestrel-http-server
2votes
0answers

Replacing dotnet core binary with private

How do I replace a dotnet core binary with a private build of the same binary? I have an application (that I own all the source code to) and I want to replace just a single dll with once that has a fix. Whenever I replace the binary I get [...] read more
c#
.net
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
1answer

Could not load file or assembly 'NewtonSoft.Json, Version=12.0.0.0'

I'm new with C#. I'm using C# in SSIS Script Component. I installed Newtonsoft.Json from References-->Manage Nuget Packages. I added using Newtonsoft.Json; in the namespaces as well. The script was building successfully with 0 errors but one warning, "There was a mismatch between the processor architecture of the project being [...] read more
c#
.net
ssis
json.net
1vote
1answer

Is it possible to use a SignalR ASP.NET Server and SignalR WinForms App Client?

I want to use SignalR to create communication between 3 simple Windows Forms apps and a ASP.NET Web API server. I set up the server according to the Microsoft documentation at https://docs.microsoft.com/en-us/aspnet/core/tutorials/signalr?view=aspnetcore-5.0&tabs=visual-studio . I even followed the PluralSight course 'Getting Started With ASP.NET Core SignalR', but that seems to be [...] read more
asp.net-core
.net-core
signalr
signalr.client
1vote
0answers

Could not load file or assembly 'System.Memory, Version=4.0.1.1,

I am trying to use Azure Blob Storage, however I am getting the following error. > System.IO.FileLoadException: 'Could not load file or assembly 'System.Memory, Version=4.0.1.1, 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)' I have viewed [...] read more
c#
visual-studio-2019
1vote
2answers

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

C# nuget package dependency consolidation fails when running app as azure webjob

The exception when running as the console application as Azure webjob: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Azure.Core, Version=1.0.2.0, Culture=neutral, PublicKeyToken=92742159e12e44c8' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Locally this works and runs. Referencing: [...] read more
c#
azure
dependencies
nuget
1vote
1answer

How to run NUnit tests as a stand alone executable?

I'm curious how to run NUnit tests not from command line, but as a single executable (console application). I found this article from 2012 that shows how to run it using ConsoleRunner. However, I ran into the following error even though I made sure that the correct version of the [...] read more
c#
visual-studio
unit-testing
nunit
1vote
1answer

Unable to load System.Threading.Tasks.Extensions 4.2.0.0 using rabbitMQ

So, we are updating our RabbitMQ dll at a project that is perfectly working from RabbitMQ 5.0.1 to 6.2.1 and I cant use the Factory.CreateConnection() method, as it gives me an inner exception 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 [...] read more
c#
rabbitmq
nuget-package
1vote
1answer

Could not load file or assembly Newtonsoft.json - error 0x80131040

strong textGood day, I develop applications on the customer's server. There are several projects one of them is in ASP.NET. And suddenly this error appeared. Error [https://i.stack.imgur.com/8ijZu.png] There was no change between launches. I compared all versions of the Newtonsoft.json library to version 12.0.0.0, I compared all versions of .NET [...] read more
asp.net
dll
gac
1vote
1answer

Azure Deployment Issue: Unhandled Exception: Could not load file or assembly 'Microsoft.Azure.DocumentDB.Core

I was having performance issues with table storage and upgraded to the latest library/sdk. Everything works fine locally and I can run on the emulator. However, when I try to deploy to my Azure Cloud Service I get the following error: Details: Recovering role... Unhandled Exception: Could not load file [...] read more
azure
deployment
cloud
assemblies
1vote
1answer

XAML Islands, Always get an error trying to publish the WPF Project. More people having the same issue?

I am trying to run the WPF XAML Islands example commited by Microsoft at https://github.com/microsoft/Xaml-Islands-Samples. Every time I publish the app and try to execute the project in at any windows 10 machine (yes i have confirm that have the same revision) i get the same error: Application: WPF_XAMLIslands_v1.exe CoreCLR [...] read more
c#
wpf
uwp-xaml
xaml-islands
1vote
2answers

Could not load file or assembly 'Elasticsearch.Net' or one of its dependencies

I've recently upgraded from NEST 1.9 to NEST 2.3. From some reason the assemblies in .NET have not been updated and are still looking for ElasticSearch.net package Elasticsearch.Net, Version=1.0.0.0 I've tried uninstalling then installing ElasticSearch.net and then NEST after which I restarted Visual Studio 4.6. I use .NET 45. > [...] read more
c#
.net-assembly
nest
1vote
2answers

Could not load file or assembly 'Ninject version 4.0.0.0

There is a problem with assembly reference, guess occurred when updating nuget packages. I start from a project which has no dependency to most dependencies(topological sort) reinstalled all nuget packages and increase version in nuspec file and all packages.config files referenced to Ninject 3.2.2.0 <package id="Ninject" version="3.2.2.0" targetFramework="net462" /> <package [...] read more
c#
version-control
nuget
ninject
.net-assembly
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

Linux NetCore published app give dll reference error

I am getting the following error on linux after publishing my app. I thought this is a normal ddl issue but I decided to run the exact commands my github deploy runs on my pc to see if that is the issue and it isn't. I deployed on my own [...] read more
asp.net-core
ubuntu
.net-core
publish
0votes
1answer

Dockerized .NET 5 Application - System.IO.FileLoadException: Could not load file or assembly

I have a .NET 5.0 application (using the Microsoft.NET.Sdk.Worker SDK) that has Microsoft.Extensions.Hosting as its only dependency. Building and running it locally works fine (Windows x64), but running it dockerized does not work. This is the Dockerfile: FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env WORKDIR /app # Copy csproj and restore as distinct [...] read more
c#
.net
docker
0votes
2answers

Exception while sending message to Azure Service Bus Topics

While sending messages to Azure Service Bus Topics from existing .Net application, I am getting following exception > The type initializer for 'Azure.Messaging.ServiceBus.Core.ClientLibraryInformation' threw an exception. Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the [...] read more
c#
azureservicebus
azure-servicebus-topics
0votes
1answer

.Net Standard 2.0 with .Net Framework 4.8 - Could not load file or assembly System.Security.Principal.Windows, Version=4.1.1.0

I'm working on an ASP application written in .Net Framework 4.8, running on IIS on Windows Server 2012 R2. I've created a NuGet package, which is a .Net Standard 2.0 library and it all runs happily on my local machine through Visual Studio debugging. Having deployed it to the server [...] read more
iis
.net-standard-2.0
.net-framework-4.8
0votes
1answer

MvcBuildViews not working for x64 project

In a VS2017 ASP.NET MVC project I've noticed that my views aren't syntax checked on build/compile even though I have set MvcBuildViews to true. The project is now on MVC 5 but has been upgraded from some earlier version. It also started out being set to AnyCPU but it's now [...] read more
asp.net
asp.net-mvc-5
msbuild
visual-studio-2017
asp.net-mvc-views
0votes
0answers

Unable to run SpecFlow+ tests in Azure Devops release pipeline

I am attempting to run a SpecFlow+ test for a .net core project in an Azure Devops release pipeline however my Visual Studio Test task always fails with the following... 2021-02-09T18:08:17.2287019Z **************** Starting test execution ********************* 2021-02-09T18:08:17.2538855Z [command]C:\agent0\_work\_tool\VsTest\16.8.3\x64\tools\net451\Common7\IDE\Extensions\TestPlatform\vstest.console.exe "@C:\agent0\_work\_temp\gnnuzvmfeti.tmp" 2021-02-09T18:08:17.4172728Z Microsoft (R) Test Execution Command Line Tool Version 16.8.3 2021-02-09T18:08:17.4173457Z [...] read more
asp.net-core
azure-devops
azure-pipelines
specflow
azure-pipelines-release-pipeline
0votes
0answers

Gitlab-CI deploy different files from local deploy for .net core

I have a gitlab-ci pipeline. When merge to develop branch, it is publishing to test server. But, there is an error when Gitlab-CI deploy the web site. So, I published in my local and send files to server. I compare with diff command local publish folder and gitlab-ci publish folder. [...] read more
c#
.net-core
asp.net-core-mvc
gitlab-ci
aws-config
0votes
2answers

Could not load file or assembly 'System.IO.FileSystem...'

I'm using .NET Standard 1.3 and .NET Framework 4.6. Most importantly, I'm trying to access these classes from System.IO.FileSystem: Directory class (i.e. Directory.Delete();) File class (i.e. File.Exists();) FileInfo class (i.e. FileInfo fi = new FileInto();) But I always end up getting errors like: > Could not load file or assembly [...] read more
c#
.net
.net-standard
0votes
1answer

Debugging Reflection TypeLoadExceptions

How do I debug this type of error? The problem file is System.Memory, Version=4.0.1.1. From what I can see, I have no references to this file in any of my projects and I've checked the dependencies of my imported nuget packages and none of them reference this file. Why is [...] read more
c#
dll
azure-service-fabric
0votes
1answer

Publish in Azure: Mismatch dependency error. What is causing it and how to fix it when using publishing via a pipeline?

When I run for the first time or publish my project to a web-server via Visual Studio I get sometimes this type of error. > Could not load file or assembly 'Microsoft.Owin, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly [...] read more
.net
azure
azure-pipelines
0votes
0answers

Signal R NET Core

I have an error in the start of an application (Console Application) .NET Core 3.1. First I have a WebAPI .NET Core 3.1 that implements a "Hub" class "ChatWeb" passing the / chatWeb route as an endPoint. In my console application (.Net Core 3.1 and NuGet - Microsoft.AspNetCore.SignalR.Client 5.0.0) I [...] read more
c#
.net
.net-core
signalr
asp.net-core-3.1
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

Could not load file or assembly System.Runtime.CompilerServices.Unsafe on a clean autofac.mv5 installation

I just installed autofac.Mvc5 6.0 on my .net framework 4.7.2 installation. And without adding any code other than adding the nuget package I get this error: > Could not load file or assembly System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a or one of it's dependences. The found Assembly's manifest definition does not match [...] read more
asp.net-mvc
autofac
0votes
1answer

Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0 when running in container dotnet core container

On macOS. This issue seems to be caused by Google.Cloud.Storage.V1. This is my csproj: <Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>netcoreapp3.1</TargetFramework> <RootNamespace>devopsapp_gke</RootNamespace> <!-- Add these BindingRedirects settings makes no difference --> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> </PropertyGroup> <ItemGroup> <PackageReference Include="Google.Cloud.Storage.V1" Version="3.3.0" /> <PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="4.1.1" /> <PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="4.1.1" /> <PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="3.1.0" /> <PackageReference Include="Newtonsoft.Json" [...] read more
c#
docker
asp.net-core
json.net
nuget
0votes
0answers

RestSharp Assembly Binding

I am trying to map RestSharp 105.2.3.0 to RestSharp 106.5.4.0 using assembly binding, but it fails. <dependentAssembly> <assemblyIdentity name="RestSharp" publicKeyToken="null" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-106.5.4.0" newVersion="106.5.4.0" /> </dependentAssembly> I am using the version from nuGet: <package id="RestSharp" version="106.5.4" targetFramework="net472" /> Log entries: > LOG: Policy not being applied to reference at [...] read more
c#
restsharp
0votes
0answers

System.IO.FileLoadException error report when open cshtml file

When open cshtml file in vs2017, I get the following error in my ActivityLog.xml; please refer: <entry> <record>811</record> <time>2020/12/29 02:38:09.681</time> <type>Error</type> <source>Editor or Editor Extension</source> <description>System.IO.FileLoadException: &#x672A;&#x80FD;&#x52A0;&#x8F7D;&#x6587;&#x4EF6;&#x6216;&#x7A0B;&#x5E8F;&#x96C6;&#x201C;stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&#x201D;&#x6216;&#x5B83;&#x7684;&#x67D0;&#x4E00;&#x4E2A;&#x4F9D;&#x8D56;&#x9879;&#x3002;&#x627E;&#x5230;&#x7684;&#x7A0B;&#x5E8F;&#x96C6;&#x6E05;&#x5355;&#x5B9A;&#x4E49;&#x4E0E;&#x7A0B;&#x5E8F;&#x96C6;&#x5F15;&#x7528;&#x4E0D;&#x5339;&#x914D;&#x3002; (&#x5F02;&#x5E38;&#x6765;&#x81EA; HRESULT:0x80131040)&#x000D;&#x000A;&#x6587;&#x4EF6;&#x540D;:&#x201C;stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&#x201D;&#x000D;&#x000A; &#x5728; Microsoft.VisualStudio.JavaScript.Web.Extensions.Interop.HTMLEditor.HTMLTreeHelperFactory.Create(ITextBuffer buffer)&#x000D;&#x000A; &#x5728; Microsoft.VisualStudio.JavaScript.Web.Extensions.Interop.HTMLEditor.HTMLTreeHelperFactory.&lt;&gt;c__DisplayClass0_0.&lt;GetOrCreate&gt;b__0()&#x000D;&#x000A; &#x5728; Microsoft.VisualStudio.Utilities.PropertyCollection.GetOrCreateSingletonProperty[T](Object key, Func`1 creator)&#x000D;&#x000A; &#x5728; Microsoft.VisualStudio.JavaScript.Web.Extensions.Interop.HTMLEditor.HTMLTreeHelperFactory.GetOrCreate(ITextBuffer buffer)&#x000D;&#x000A; &#x5728; Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTagger..ctor(ITextView [...] read more
visual-studio
razor
visual-studio-2017
0votes
0answers

Window Cordova throwing System.IO.FileLoadException: Could not load file or assembly 'System.Runtime.WindowsRuntime...'

I created one sample cordova app using windows platform and added one test plugin , while calling native code through test plugin. I'm getting exception WinRTError: The text associated with this error code could not be found. System.IO.FileLoadException: Could not load file or assembly 'System.Runtime.WindowsRuntime, Version=4.0.11.0, Culture=neutral, PublicKeyToken=..'. The located [...] read more
c#
cordova
visual-studio-2017
winrt-component
0votes
2answers

when i publish asp.net mvc i got error Could not load file or assembly 'App_Browsers - Copy' or one of its dependencies

Any thoughts on what might be causing this exception?when i publish asp.net mvc project i got following error "Could not load file or assembly 'App_Browsers - Copy' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040 i cannot use [...] read more
c#
asp.net
model-view-controller
0votes
1answer

Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' with google api

In my project i used the library Newtonsoft.Json version 11.0.2, and i need use Google.Api and Google.Core, but when install this two library i receive the next error: > System.IO.FileLoadException: 'Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition [...] read more
c#
json
dll
json.net
0votes
2answers

Wrong version of .NET assembly getting copied to Web Forms bin directory

I'm working on an ASP.NET Web Forms web site and frequently get run-time exceptions like the following: 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) === Pre-bind state [...] read more
asp.net
webforms
nuget
web-config
.net-assembly
0votes
0answers

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

Could not load file or assembly 'Ninject' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) read more
asp.net-mvc-5
0votes
0answers

FileLoadException .net core docker application

What is the easiest way to find the reason for a FileLoadException: in docker, when everything is running on local windows and linux machine? System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (0x80131040) File name: 'Microsoft.Extensions.Logging.Abstractions, [...] read more
c#
linux
docker
asp.net-core
.net-core
0votes
0answers

Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN

I've already been through this answer on S.O. but it really doesn't seem to solve my issue - this is not a complex multi-project web solution.. it's much smaller and doesn't really need binding redirects as there aren't multiple projects vying for the same DLL reference. For the project in [...] read more
c#
dll
nuget
publickeytoken
0votes
2answers

Could not load file or assembly 'GMap.NET.Core, Version=1.7.5.0

I am trying to load a map on my project. I'm using WPF on my project but since I can't use the "Overlays" I'm using to put a marker, and it's working on WindowsForm, I am now using it and calling it to the WPF form, until I encountered this [...] read more
c#
wpf
gmap.net
0votes
1answer

'Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies

We implemented Azure Keyvault and MSAL authentication in one of our asp.net web forms application. Whereas MSAL is working as expected after installing all owin secirity packages and newtonsoft json package is upgraded from 6.0.0.0 to 10.0.0 version. But while fetching secrets from keyvault, application is encountered with following newtonsoft.json [...] read more
c#
asp.net
json
.net
azure
0votes
0answers

Could not load file or assembly 'Microsoft.Azure.Search.Common, Version=10.1.0.0,

{"Could not load file or assembly 'Microsoft.Azure.Search.Common, Version=10.1.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)":"Microsoft.Azure.Search.Common, Version=10.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"}. I am getting this exception during run time. What can be done to resolve this? read more
entity-framework-core
nuget-package
0votes
2answers

Datastax C# Driver .Build() Throws System.IO.FileLoadException

looks like I have a binding redirects issue that I don't know how to solve. When .Build() is called, I get the following exception: [2020-10-09 14:09:28.806] [ :001] [ERROR] [DatabaseClient ] Failed to connect to Cassandra Database... System.IO.FileLoadException: Could not load file or assembly 'System.Threading.Tasks.Dataflow, Version=4.6.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one [...] read more
c#
cassandra
datastax
csproj
assembly-binding-redirect
0votes
0answers

dotnet pack version without build: Could not load file or assembly

I am getting the following error when setting the version using dotnet pack instead on dotnet build when 'overriding' the package > System.IO.FileLoadException: Could not load file or assembly 'My.Package, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) File name: [...] read more
.net-core
nuget
dotnet-cli
0votes
1answer

DLL Reference Only Works After NuGet Restore on Server

The title could probably be better, but I can't really come up with something better right now. I'm running into a very strange problem between two of my servers: Server1 and Server2. Both are Windows 2012 R2/IIS 8.5. Server2 was cloned from Server1 when they were built and have been [...] read more
c#
.net
dll
deployment
msbuild
0votes
0answers

An error occurred when trying to create a controller of type 'BurnController'. Make sure that the controller has a parameterless public constructor

I am getting the following error when I am trying to invoke a method of a web-api from POSTMAN, I am using the localhost url , please can anybody help with a possible solution. { "Message": "An error has occurred.", "ExceptionMessage": "An error occurred when trying to create a controller [...] read more
visual-studio
postman
webapi
0votes
0answers

Failed binding redirection. What "run-from-source" phase stands for in Fusion logs?

I'm facing an issue with failing assembly binding redirection that I can't understand. I have a binding redirection defined in the following way for test project: <?xml version="1.0" encoding="utf-8"?> <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Castle.Core" publicKeyToken="407dd0808d44fbdc" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-4.4.1.0" newVersion="4.4.1.0" /> </dependentAssembly> </assemblyBinding> </runtime> </configuration> The project is [...] read more
sdk
visual-studio-2019
assembly-binding-redirect
0votes
1answer

EntityFramework 6.1.3 not finding project assembly

From a novice Entityframework User. While debugging my tests my DataLayer.DLL has access to my data models in a separate DataModels.DLL and can new instances of the data model classes from the DataModels.DLL. When I get to the Context in the DataLayer and I use: Entry(entity).State = EntityState.Added; where entity [...] read more
c#
entity-framework
dll
0votes
2answers

How to Install WiX Extensions for VS 2017

I am new to Visual Studio 2017 Professional, and am trying to replicate my Vs2013 development environment including the installation of WiX extensions. Unfortunately when I attempt to install the Votive2017.vsix file I get an error message: VSIX Installer Error Message [https://i.stack.imgur.com/edS7b.png] Can someone please assist. I have been struggling [...] read more
visual-studio-2017
visual-studio-extensions
vsix
vsixmanifest
0votes
0answers

Package SpecFlow.Plus.LivingDocPlugin will trigger error 'Could not load file or assembly 'TechTalk.SpecFlow, Version=2.2.0.0'

I have (VS2019, .net framework 4.7.2,specflow3.4.3, NUnit3) I have Nuget package SpecFlow.Plus.LivingDocPlugin, then the automation script works OK for my project in local machine. After I upload the package, package.config, csproj from P4V, I trigger the case in teamcity. However the case build success, but fail perform in teamcity agent. [...] read more
c#
nunit
visual-studio-2019
specflow
0votes
0answers

Error encounter while integrating Oauth in Orchard RSS

I am getting this error after install Microsoft.Owin.Security.OAuth from nuget manager. and site keep on loading > Orchard.Environment.Extensions.ExtensionManager - (null) - Error loading extension 'HttpAuth' [(null)] System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Owin.Security.OAuth, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match [...] read more
c#
asp.net-mvc
orchardcms
orchard-modules
0votes
1answer

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

I am trying to use a Windows Runtime Component in a C++/WinRT Console App. The Component is written in C#, and I added it as a reference in the C++ project. Everything compiles, but this error is thrown when I call a function of the component, and I can't catch [...] read more
c#
c++
uwp
windows-runtime
c++-winrt
0votes
1answer

Newtonsoft.json issue

I am getting this error: Could not load file or assembly 'Newtonsoft.Json, Version=8.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 can't seem to fix this, tried adding different Newtonsoft.json dll's. But it just won't [...] read more
json
json.net
0votes
0answers

Error: Could not load file or assembly on Linux

I am using Ubuntu 20.04 and trying to run .NETCore Web App. I am using command sudo /usr/bin/dotnet /var/netcore/publish/App.dllwhere App.dll is Application. I get an error: > Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.Hosting.Abstractions, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly [...] read more
c#
linux
.net-core
0votes
0answers

Which assembly is trying to load this specific version of Microsoft.ServiceBus?

Looking for some stacktrace reading pointers here: [FileLoadException: Could not load file or assembly 'Microsoft.ServiceBus, Version=2.1.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)] System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) +0 System.Reflection.RuntimeAssembly.GetExportedTypes() +32 Castle.Core.Internal.ReflectionUtil.GetAvailableTypes(Assembly assembly, Boolean includeNonExported) +46 [...] read more
asp.net
castle-windsor
stack-trace
fusion
0votes
0answers

Microsoft.sqlserver.types in SQL Server: gone

I have run into a strange issue regarding assembly Microsoft.sqlserver.types. I need this assembly to run a Visual Studio made assembly in which spatial functionality is involved. In SSMS, if I look under MyDatabase-Programmability-Assemblies I see that Microsoft.sqlserver.types is there with properties: version 15.0.0.0 and creation date 24-9-2019. However, if [...] read more
sql-server
0votes
0answers

Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencie

LOG: DisplayName = log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304 (Fully-specified) LOG: Appbase = file:///C:/inetpub/wwwroot/source/photos/ LOG: Initial PrivatePath = C:\inetpub\wwwroot\source\photos\bin Calling assembly : SaleWeb, Version=1.0.0.2, Culture=neutral, PublicKeyToken=null. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\inetpub\wwwroot\source\photos\web.config LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet.config LOG: Using machine configuration file [...] read more
asp.net
log4net
0votes
1answer

Could not resolve a service of type 'EntityFrameworkCore.DbContextOptions`1[Db] for the parameter 'identityDbContextOptions' of method 'Configure'

Firstly, this project successfully working now in Windows, and was successfully worked in Linux hosting before last update. After update new version I receive error: Frontend[30348]: ---> System.IO.FileLoadException: Could not load file or assembly 'Pomelo.EntityFrameworkCore.MySql, Version=3.1.2.0, Culture=neutral, PublicKeyToken=2cc498582444921b'. The located assembly's manifest definition does not match the assembly reference. (0x80131040) [...] read more
mysql
linux
asp.net-core
dependency-injection
entity-framework-core
0votes
0answers

Could not load file or assembly 'System.ValueTuple, Version=4.0.3.0,

I am working on an asp.net c# application to connect with postgresql. I have PC which is Windows 7 32 bit. First i installed Postgresql version postgresql-10.14-1-windows on my PC. Then i tried to insert data into postgresql from c# window application. For this i added a reference of "Npgsql.dll" [...] read more
c#
postgresql
-1votes
2answers

Updating an old C#

So I'm a fairly new developer, and was hoping someone might explain some things to me and help me understand how I can complete my task. Okay so we have a "Web aplication" for one of our services that was written in C# quite some time ago. It has come [...] read more
c#
visual-studio
nuget
-2votes
0answers

Missing Config File With Binding Redirects in Pure CPP Client Wrapping .NET Library via CPP/CLI

The goal is to create a c++ client that can use a managed library via a wrapper so that the client project does not need to be compiled with /clr (due to legacy issues). ARCHITECTURE CppClientPure (client console .exe) * links to: CppWrapper (static .lib compiled with /clr -- CPP/CLI) [...] read more
c++
.net
c++-cli
app-config
assembly-binding-redirect
-2votes
0answers

Nuget package for netcoreapp1.0

I create a Nuget package from project created on VS 2015 and upload it to Nuget when I try to use it on desktop application it's works, but when I try to use it in .netcoreapp1.0 it's not works and always give meAn unhandled exception of type 'System.IO.FileLoadException' occurred in [...] read more
c#
nuget
-3votes
1answer

How to use appsettings.json in Worker Service in .Net 3.1

When I try to run my windows service, the service is not starting up and I am getting the following error. > .NET Core Version: 3.1.11 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The [...] read more
c#
visual-studio-2019
backgroundworker
.net-core-3.1
appsettings

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