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

777votes
53answers

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

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

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

I am getting the Error > System.IO.FileLoadException : Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) for my CI build Solution which I tried <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" [...] read more
asp.net
json.net
82votes
26answers

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

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

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

The located assembly's manifest definition does not match the assembly reference getting this when running nunit through ncover. Any idea? read more
.net
nunit
ncover
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
50votes
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
44votes
7answers

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

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

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
35votes
15answers

Assembly binding redirect does not work

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

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

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

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

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

Could not load file or assembly EntityFramework

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

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

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

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

I'm getting the follow error when trying to run my ASP.NET project. Can anyone advise? 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) Description: An unhandled exception occurred during the execution [...] read more
c#
asp.net
asp.net-mvc
iis
10votes
4answers

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

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

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

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

The project requires user input

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

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

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

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

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

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

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

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

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

Assembly dependency error on using Google OCR- google.protobuf

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

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

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

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

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

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

On macos. This is driving me crazy 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 [...] read more
c#
docker
asp.net-core
json.net
nuget
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
1vote
1answer

SSMS - Assembly error after upgrade to new version

I was running an upgrade on SSMS and it won't connect to the SQL Server after installation. I can connect to the SQL Server from SSMS on another server but not on the local one. I'm getting the following message when I try to connect: Could not load file or [...] read more
sql-server
ssms
.net-assembly
1vote
1answer

OpenTK GLControl problems

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

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

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

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

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

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

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

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

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

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

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

Web publish can't find Microsoft.Build.Framework

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

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

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

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

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

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

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

Visual Studio can't load MySql.Data.EntityFramework

I'm trying to synchronize an old .net application with Visual Studio 2019. However, I'm getting the error below when I try to open the ADO.NET Severity Code Description Project File Line Suppression State Error Error 4: Could not load file or assembly 'MySql.Data.EntityFramework, Version=8.0.21.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its [...] read more
.net
entity-framework
mysql-connector
0votes
2answers

netcmd.exe errors out on fresh image of IoT Core

DragonBoard 410c Windows 10 IoT Core v.10.0.16273.1000 I SSH into the machine and run netcmd /? which results in this error: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Runtime, Version=4.0.21.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. [...] read more
windows-10-iot-core
dragonboard
0votes
0answers

.Net Core Web API System.Reflection.ReflectionTypeLoadException when dependent projects have framework dll System.Web.Services reference

I have a .net core API version 3.1 which is having dependency on 2 projects. 1. Net Framework Target 4.7.2 project library. 2. .Net Standard library Legacy .Net Framework 4.7 project using framework dlls - System.Web.Services and System.Configuration for calling Soap based asmx web service and for reading configuration from [...] read more
.net
asp.net-core
0votes
1answer

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

Assembly version mismatch exception when connecting to database with migrations from older version

Here is situation: I have DAL assembly that connects to DB using EntityFramework code fist. Recently we added strong names to our assemblies, including DAL. Now, when connecting to database, if last migration was on previous version of DAL (or different public token), I get exceptions like this one: > [...] read more
entity-framework
0votes
0answers

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

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

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

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

Migrations EF Core 3.1

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

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

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

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

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

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

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

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

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

WIX adding dll reference picking wrong version

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

unable to start windows service after installing using msi

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

signalr generating error while creating server.js file

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

.NET WinForms: Cound not load System.Runtime

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

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

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

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

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

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

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

Where can i find Oracle.DataAccess.dll?

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

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