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 [...] read more
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. > [...] read more
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 [...] read more
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 [...] read more
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 [...] read more
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 > [...] read more
Visual Studio is overwriting the correct version of NewtonSoft.Json.DLL that I have configured in both my project references and the NuGet package file with an older version when I build any other project besides the website that contains the reference. OK. Here is the scenario: I have a solution with [...] read more
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 [...] read more
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
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 [...] read more
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
I am facing the error below > Could not load file or assembly 'Newtonsoft.Json, Version=7.0.0.0, > Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. > The located assembly's manifest definition does not match the assembly > reference. (Exception from HRESULT: 0x80131040) I could see the below in Web.config <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" [...] read more
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
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
** 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
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
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
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
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: [...] read more
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
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) [...] read more
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
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
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
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
I am developing an application in ASP.net mvc 5 and using the code first approach. When I try to enable migration then it is throwing an error. I found already MySQL.Data.dll in references. What could be the issue? I uploaded the source here. Please help if possible. Error is mentioned [...] read more
I have just added Automapper to my asp.net application (.net Framework 4.7), to see hopefully being able to replace some of the tedious manual mapping I always need to do. I am now having a lot of problems with System.ValueTuple versions. I Notice I have a nuget package for System.ValueTuple [...] read more
I use the mongo csharp driver version 1.9.1. But, I have a problems with this dll. The exception is: "Could not load file or assembly 'MongoDB.Bson, Version=1.9.1.221, Culture=neutral, PublicKeyToken=f686731cfb9cc103' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"MongoDB.Bson, Version=1.9.1.221, [...] read more
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
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
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
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
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 [...] read more
I am trying to create an API using C #, but as I have to enable migrations I have the following errors: The ADO.NET provider with invariant name 'Npgsql' is either not registered in the machine or application config file, or could not be loaded. See the inner exception for [...] read more
I have an Azure App Service where I published my .NET application (.NET Framework 4.7.2). The application works fine on local Visual Studio IIS Express. When I run it in the App Service I get TypeLoadExceptions. The interesting parts are, for example, these errors: - System.IO.FileLoadException: Could not load file [...] read more
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. [...] read more
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, [...] read more
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
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)' [...] read more
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
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
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
When I have a SqlDataReader on a table where the geometry type is used, reader.GetFieldType(index) returns null and reader.GetValue(index) results in > System.IO.FileLoadException: 'Could not load file or assembly > 'Microsoft.SqlServer.Types, Version=10.0.0.0, Culture=neutral, > PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located > assembly's manifest definition does not match the [...] read more
I have a new .NET Core 2.0 console app. Whenever I try to add a NuGet package, say Newtonsoft.Json for example I get the following exception when the program is started: > System.IO.FileLoadException: 'Could not load file or assembly > 'System.Threading, Version=4.1.0.0, Culture=neutral, > PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition [...] read more
I added a 2.1 Web API Controller Class to my 4.5.1 WebForms application. Afterwards, my packages.config looked like: <package id="Microsoft.AspNet.WebApi" version="5.2.7" targetFramework="net451" /> <package id="Microsoft.AspNet.WebApi.Client" version="5.2.7" targetFramework="net451" /> <package id="Microsoft.AspNet.WebApi.Core" version="5.2.7" targetFramework="net451" /> <package id="Microsoft.AspNet.WebApi.WebHost" version="5.2.7" targetFramework="net451" /> <package id="Newtonsoft.Json" version="12.0.2" targetFramework="net451" /> My Web.config looks like this: <runtime> <assemblyBinding [...] read more
Searched SO but can't find a solution that works. In Visual I've got a main project. It uses another project (ProjectA) that compiles to a DLL. That project uses Servicestack ORMLite 4.5.14. I've also installed Mysql.Data 6.9.12. ProjectA is reference in the main project by Project, not by compiled DLL. [...] read more
I'm trying to publish an C# API to azure, I followed all the steps in this documentation here but for some reason when I publish the application the build succeeds and crashes when this below line gets executed Generating swagger file to 'C:\Users\user\Projs\API\bin\Release\netcoreapp3.1\swagger.json'. and the only error log that gets [...] read more
I have a problem when trying to add a custom action in Wix with C# DLL. I have a custom action for checking the Postgresql server connection and in the C# project, I use Npgsql for checking it. Everything is ok with Npgsql ver 3.1.0. But when I upgrade Npgsql [...] read more
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
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 a [...] read more
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
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
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
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
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
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
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
I'm looking for a way to avoid the need to add dependentAssembly within the app.config file. The actual related project is a library that should be added to a global process. It's not possible to modify the app.config of the global process (.net Framework). Example of the issue: 1.When adding [...] read more
I just go into Extensions>Manage Extensions>Update, click "Update All" and then close Visual Studio. The installation just give me a error, i searched online but no clue what's wrong. Already repaired and reinstalled completely visual studio Any help? This is the error log. 22/05/2021 22:41:45 - Microsoft VSIX Installer 22/05/2021 [...] read more
I am trying to install Application Insights on an Asp.Net MVC application by following this guide: Guide I have tried both Automatic and Manual configurations, but each time I keep getting the same error when running my application. Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=4.0.4.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one [...] read more
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
When I run my dotnet core web application in Docker I get an error Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The located assembly's manifest definition does not match the assembly reference. (0x80131040) File name: 'System.Configuration.ConfigurationManager, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' at System.Reflection.RuntimeAssembly.GetExportedTypes() at System.Reflection.Assembly.get_ExportedTypes() at [...] read more
Im working on a project that references a third party dll. This dll uses an older version of stack exchange redis package - 1.2.6.0 which is not strongly typed (PublicKeyToken=null) In my project I overwrite some of the redis functionality and I want to use latest version of redis. I [...] read more
i try to publish my App (C#, Desktop-WPF, .NET Framework 4.8) to a testsystem, my problem is: if i use the nuget package mysqlconnector (1.3.7) without(!) upgrading the automatic installed System.Buffers/Memory/Numerics/Threading ... Packs and i try to connect to the Server i get the following error on my Dev System: [...] read more
I have page called ProvinceWiseDistributionCivilWork which use crystal report to display the report I have other two pages which is works fine but for this page ProvinceWiseDistributionCivilWork it throw this error Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest [...] read more
I tried to deploy my Asp.net core mvc projekt to our server, but the ISS only logs this error System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The located assembly's manifest definition does not match the assembly reference. (0x80131040) File name: 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' It does [...] read more
Hiiii..., I am new to DNN and am using DNN v-9.9, some one has given me a compiled DNN module but am not able to install it in my DNNSite- it throws too many Exceptions....something like the ff <=++++=>The located assembly's manifest definition does not match the assembly reference. (Exception [...] read more
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
I am using the System.Data.SQLite package in a .Net core app. The dll runs fine in a Windows environment. It does not run in Linux (Ubuntu 20.04). I have tried the following versions: > * version 1.0.03.0 > * version 1.0.113.7 I get the following error message: > Unhandled exception. [...] read more
I have many projects that generate dlls and a main project that generates an executable, today i compiled the projects successfully, but when i tried to start the main project i got for the first time the next exception: "Assembly manifest definition does not match assembly reference", so is not [...] read more
I am developing a service fabric application and testing it locally using visual studio 2019. The Application is named "DASSFHLSFApp1" and the service is DASSFHLSFAppServiceStateless1. When I run this in local cluster, I get exception which trying to access Microsoft.WindowsAzure.Storage types. Exception I get is > Could not load file [...] read more
Error: System.IO.FileLoadException: The File or the Assemply "Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" is not found (Exception of HRESULT: 0x80131040) Filename: "Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" in DSharpPlus.Net.DiscordApiClient.<GetGatewayInfoAsync>d__122.MoveNext() I guess the problem is DSharpPlus, because I use newtonsoft to get login details from a json file to connect to my login system, therefore [...] read more
I was making a student reputation management app. I am developing it using MetroFramework and I got this error (in InitalizeComponents()). The error code is: System.IO.FileLoadException:'Cannot load file or assembly'MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a', or one of the files or assemblies that depend on it. The manifest definition of the found [...] read more
I am getting this error: An exception of type 'System.IO.FileLoadException' occurred in Neodynamic.SDK.WebClientPrint.dll but was not handled in user code Additional information: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from [...] read more
I am trying out the MDriven framework and have created a basic application from the templates provided. After updating the Model and Generating the code files, clicking on the protype button gives me this error: Could not load file or assembly 'System.Data.SQLite, Version=1.0.111.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. [...] read more
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
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 [...] read more
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
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
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
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
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
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
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 [...] read more
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
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 [...] read more
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
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
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: 未能加载文件或程序集“stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”或它的某一个依赖项。找到的程序集清单定义与程序集引用不匹配。 (异常来自 HRESULT:0x80131040)
文件名:“stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”
 在 Microsoft.VisualStudio.JavaScript.Web.Extensions.Interop.HTMLEditor.HTMLTreeHelperFactory.Create(ITextBuffer buffer)
 在 Microsoft.VisualStudio.JavaScript.Web.Extensions.Interop.HTMLEditor.HTMLTreeHelperFactory.<>c__DisplayClass0_0.<GetOrCreate>b__0()
 在 Microsoft.VisualStudio.Utilities.PropertyCollection.GetOrCreateSingletonProperty[T](Object key, Func`1 creator)
 在 Microsoft.VisualStudio.JavaScript.Web.Extensions.Interop.HTMLEditor.HTMLTreeHelperFactory.GetOrCreate(ITextBuffer buffer)
 在 Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTagger..ctor(ITextView [...] read more
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
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 [...] read more
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 > [...] read more
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
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
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
System.IO.FileLoadException HResult=0x80131040 Message=Impossible de charger le fichier ou l'assembly 'Microsoft.Owin.Security.Cookies, Version=3.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ou une de ses dépendances. La définition trouvée du manifeste de l'assembly ne correspond pas à la référence de l'assembly. (Exception de HRESULT : 0x80131040) Source=WebApplication3 Arborescence des appels de procédure : à WebApplication3.Startup.ConfigureAuth(IAppBuilder app) dans C:\Users\user\source\repos\WebApplication3\App_Start\Startup.Auth.cs [...] read more
System.Memory.dll is not loading and throwing an error "Could not load file or assembly 'file:///D:\inetpub\wwwroot\test-site\bin\System.Memory.dll' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040). ". targetFramework="4.7.1" The web.config has this redirect as well, <assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" /> <bindingRedirect [...] read more
Downloaded latest Microsoft.Azure.NotificationHubs NuGet package used the NotificationHubClient to create an installation this.HubClient.CreateOrUpdateInstallation(installation); All the default dependent packages were used when adding the NuGet. When testing I am receiving the following error: Could not load file or assembly 'Microsoft.Extensions.Options, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The located assembly's [...] read more
There are quite a few SO questions about binding-redirects but none that explain why the assembly loader might fail to match a revision for a dll that looks like it clearly should match. My project is failing at runtime with "Could not load file or assembly". The FusionLog property of [...] read more
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
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, [...] read more