Linked Questions
70 questions linked to/from Could not load file or assembly or one of its dependencies
7 votes
3 answers
60k views
C# could not load file or assembly...system cannot find file specified [duplicate]
Writing a routine WinForms app that references a few custom libraries written by myself. I am building one particular library which depends on another library and, when I do, I get the following ...
1 vote
1 answer
14k views
Could not load file or assembly. The system cannot find the file specified [duplicate]
I have solution and couple projects inside. I cannot figure out why i get this error. I cannot figure out where this is coming from so far. I was looking at all projects references and bin folders. At ...
0 votes
0 answers
774 views
System.IO.FileNotFoundException : Could not load file or assembly [duplicate]
What is the error in c#? System.IO.FileNotFoundException: 'Could not load file or assembly 'PopupControl, Version=1.4.0.968, Culture=neutral, PublicKeyToken=04c10344d6495b18' or one of its ...
0 votes
0 answers
179 views
Could not load file or assembly, confused [duplicate]
I've been occasionally getting this popup stopping me from saving/building my project, can anybody advise me on how best to debug this? I'm only able to find information on Google related to ...
-1 votes
1 answer
166 views
Not possible load assembly due to version [duplicate]
I have this package, Microsoft.AspNet.Web.Optimization, that uses Antlr3. Once i installed it, Antlr3 came in version 3.4.1.9004. After that i was checking my installed packages for updates and, by ...
956 votes
7 answers
242k views
What are differences between AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion?
There are three assembly version attributes. What are differences? Is it ok if I use AssemblyVersion and ignore the rest? MSDN says: AssemblyVersion: Specifies the version of the assembly being ...
594 votes
8 answers
293k views
What does the Visual Studio "Any CPU" target mean?
I have some confusion related to the .NET platform build options in Visual Studio 2008. What is the "Any CPU" compilation target, and what sort of files does it generate? I examined the output ...
83 votes
7 answers
109k views
How to troubleshoot a VSTO addin that does not load?
My VSTO Outlook Add-in suddenly stopped working on one customer machine (it does not load, no error message) and I'm stuck with troubleshooting. The machine is Windows 7 x86, Outlook 2007. The add-in ...
69 votes
5 answers
66k views
Visual Studio "Could not load file or assembly. Operation is not supported" error in Release mode
I have a small project in C# that uses two external dll files. One is the Redmine.Net.Api.dll and the other is NLog.dll. I'm using Visual Studio 2010. I added both files as Reference to my project. ...
28 votes
6 answers
136k views
Could not load file or assembly The system cannot find the file specified
I am building a dll, which references a second dll. I have added the second dll as a reference in the first dll's project by going to Properties > Common Properties > Framework and References &...
20 votes
10 answers
74k views
Convert PDF to Image without using Ghostscript DLL
Is there any way, I can convert HTML Document (file not URL) to Image, or PDF to image? I am able to do the above using Ghostscript DLL , Is there any other way , I can do it, without using the ...
21 votes
7 answers
50k views
Could not load file or assembly 'Microsoft.Practices.Unity'
I am trying to upgrade Unity to version (2.1.505.2), but when I run the application I get the following FileLoadException Could not load file or assembly 'Microsoft.Practices.Unity, Version=2.0....
18 votes
1 answer
23k views
c++/cli DLL fails under Win 8.1
i have written a Win32/net DLL, it works fine under Win XP, Win7 and 8 but under Win 8.1 it fails. Dependency Walker says: API-MS-WIN-CORE-KERNEL32-PRIVATE-L1-1-1.DLL not found (user32.dll will call ...
6 votes
4 answers
49k views
Inherit problem in asp.net
in my web application i copy and paste the code from other site to in my page also the source code starting form when i run the application it is giving the error like this Server Error in '/...
9 votes
4 answers
10k views
Could not load file or assembly 'System.Net.Http, Version=4.1.1.1 .Net Standard
I am building a .Net standard library, which builds fine but on testing, I get this error HResult=-2147024894 Message=Could not load file or assembly 'System.Net.Http, Version=4.1.1.1, Culture=...
11 votes
3 answers
5k views
Identifying problematic dependencies in C++/CLI project
My application compiles fine, but I get the following runtime error: System.IO.FileNotFoundException was unhandled HResult=-2147024770 Message=Could not load file or assembly {Wrapper} or one of ...
4 votes
2 answers
20k views
Could not load file or assembly or one of its dependencies. The system cannot find the file specified
I have a code like this public static Type ToType(XmlSerializableType xmlSerializableType) { string func = "XmlSerialzationType.ToType"; Type type = null; if (xmlSerializableType != null &&...
0 votes
1 answer
27k views
could not load file or assembly 'mysql.data, version=6.9.5.0
I'm having a issue with a Visual Basic 2013 program I made (in vb.net) and the issue is with MySQL.data.dll, I've tried changing copy local to true in the GAC, I've tried upgrading my MySQL.data.dll ...
3 votes
2 answers
6k views
Python for .Net Error: ImportError: No module named
We are using Python for .Net to call .NET API built using C# from Python script. We are getting ImportError: No module named - error when an import is done as follows. Python script: import sys sys....
3 votes
1 answer
1k views
CefSharp in VSTO Addin
I'm trying to use CefSharp WindowForm Control in the VSTO Excel Addin. The CefSharp.WinForms version is 75.1.142 and I'm making an addin on Excel 2013 (64 Bit) through VS 2017. I'm getting ...
1 vote
1 answer
6k views
What causes Microsoft.Practices.Unity assembly not to load?
I am running a project that had been running without issue for some time but recently started throwing an error stating, "Could not load file or assembly 'Microsoft.Practices.Unity, Version=2.1....
2 votes
2 answers
3k views
System.IO.FileNotFoundException : Could not load file or assembly 'Silvernium, Version=1.0.4254.29979
I am trying to build a selenium-silverlight UI test using selenium Nuint test framework. Here is my code using System; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.IE; ...
0 votes
2 answers
7k views
Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
I have this error on my VisualStudio 2017 Wep API Project: Could not load file or assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its ...
4 votes
0 answers
5k views
Could not load file or assembly 'Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
I'm getting below error in one of my ASP.NET Web API Project. Could not load file or assembly 'Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or ...
2 votes
1 answer
3k views
Could not load file or assembly... System cannot find the file specified c#
I use Word.Interop reference in my solution and have no errors or warnings. When I run the program I get this message I have already checked in the reference properties and "Embed Interop types" ...
4 votes
1 answer
2k views
Could not load file or assembly 'System.Management, Version=8.0.0.0, Culture-neutral, etc.'
I have a .NET Core 6 WPF application using System.Management namespace to query connected devices on my windows computer like so: string query = "SELECT * FROM Win32_PnPEntity WHERE (PNPClass = '...
1 vote
0 answers
4k views
Could not load file or assembly 'Microsoft.Practices.ServiceLocation'
I am getting this error at runtime when running the application for the specific page. I have been trying to fix this for few days now and tried several alternatives from various stackoverlow or ...
0 votes
1 answer
4k views
Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll
I'm working on a large application in which I need a few internal packages to fetch data. It is building fine, but while debugging the part of code I added I get the following error. Exception thrown: ...
0 votes
1 answer
2k views
.NET MVC Could not load file or assembly Error
I have this solution that consists of multiple projects (one is a class library and other is the web project, which is MVC. However, when trying to run the web project in Debug, I get the "Could not ...
0 votes
1 answer
2k views
Could not load file or assembly Ghostscript.NET
I am using Ghostscript.Net, Version=1.2.1.0, to rasterize PDF to images. I have referenced both the 32 bit-gsdll32.dll and 64 bit-gsdll64.dll of ghostscript in my project directory/bin folder. I am ...
2 votes
0 answers
2k views
Could not load file or assembly - how to troubleshoot?
I have a app that I have been working on for weeks. Monday it started having issues with this error - seemingly out of the blue. I have tried: uninstalling and reinstalling the dll using the install ...
1 vote
2 answers
1k views
Visual Studio not copying dependencies | Could not load file or assembly
I'm writing a class library to abstract our company's Database functions, but when the code gets to instantiating one of my database objects we get a: FileNotFound Exception: Could not load ...
1 vote
1 answer
2k views
Could not load file or assembly GalaSoft.MvvmLight
"Could not load file or assembly 'GalaSoft.MvvmLight, Version=5.4.1.0, Culture=neutral, PublicKeyToken=0ffbc31322e9d308' or one of its dependencies. The located assembly's manifest definition does ...
0 votes
3 answers
1k views
Could not load file or assembly or one of its dependencies
Could not load file or assembly 'Microsoft.Owin.Security.OAuth' or one of its dependencies. The process can not access the file because the file is in use by another process. (Exception from HRESULT: ...
0 votes
1 answer
1k views
HRESULT: 0x80131040 : Could not load file or assembly or one of its dependencies
I have strange symptoms in my project HRESULT: 0x80131040 occured [Microsoft.Azure.Amqp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'] <assemblyIdentity name="Microsoft....
1 vote
3 answers
1k views
Getting issue as Could not load file or assembly 'Newtonsoft.Json, Version=9.0.0.0
Here I am trying to implement stripe for payment gateway in .net mvc My View code is as below. @{ ViewBag.Title = "Index"; } <link type="text/css" rel="stylesheet" href="https://checkout....
0 votes
2 answers
1k views
How to call a method from another C# library project in Visual Studio?
When I am trying to call a method of another project class file, I am getting the following error I have 2 C# library projects inside same solution file. Inside each project I have a class file. I ...
1 vote
1 answer
1k views
Missing dll when using web services with ASP.NET
I have a solution with several projects in it, one of them being a website. The website has references to five web services, which are being run on our own servers. When building the website with VS ...
2 votes
1 answer
786 views
bindingRedirect not overcoming ReflectionTypeLoadException
I have a ASP.NET project with a plug-in architecture. I have a strongly named dll dependency in my reference chain, that both the app and the plug-in are dependent on. I'd really like to be able to ...
1 vote
2 answers
786 views
C# Class Library throws FileNotFoundException while trying to load another library
I try to connect to a fiscal device with a C#. I use this documentation to do so: http://integration.atol.ru/api-en/#connection-to-project So basically I have a driver of the device installed on my PC ...
0 votes
0 answers
892 views
Could not load file or assembly 'Microsoft.ML.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
I have the following code: [Command("aitest2")] public async Task test(string text) { var input = new ModelInput(); input.SentimentText = text; // Load model and predict output of sample ...
1 vote
0 answers
870 views
Why are there 2 different versions in System.IO.FileLoadException :Could not load file or assembly
When I get a System.IO.FileLoadException : Could not load file or assembly there are always 2 different Versions in the error message. But the error text for both is the same: System.IO....
0 votes
0 answers
869 views
XC1020: Build error occurred in the XAML MSBuild task: 'Could not load file or assembly or one of its dependencies
Severity Code Description Project File Line Suppression State Error XC1020: Build error occurred in the XAML MSBuild task: 'Could not load file or assembly 'file:///C:\Projects\DIB\...
0 votes
1 answer
603 views
Affdex .NET SDK - Could not load file or assembly Affdex or one of its dependencies
I'm having error when running WPF application with reference to C:\Program Files\Affectiva\Affdex SDK\bin\release\Affdex.dll Exception: Could not load file or assembly 'Affdex, Version=3.1.1.419, ...
0 votes
1 answer
722 views
Could not load file or assembly 'Newtonsoft.Json' or one of its dependencies?
when I am debugging i faced an exception at below point. var connection = new HubConnection("http://localhost:8080/"); Exception: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, ...
0 votes
1 answer
687 views
Crash on startup on Virtual Machine
I noticed that an application that I've been working on is crashing on startup when run on a virtual machine. The error is an unhandled exception which when caught claims "Could not load File or ...
1 vote
1 answer
1k views
ExcelDataReader not working in Class Library project
Receiving the following error when trying to run a Server Process, class library project: "ERROR : Error (0) Could not load file or assembly 'ExcelDataReader, Version=3.6.0.0, Culture=neutral, ...
-1 votes
1 answer
528 views
Cannot get types from assembly after ReflectionOnlyLoadFrom
I have consulted code on the website http://codeproject.com with the title "Loading Assemblies from Anywhere into a New AppDomain" of Marius Bancila, but I tested the error as in the ...
0 votes
1 answer
579 views
C# application .Net 2.0 Couldn't run in Windows XP
I built a .Net 2.0 Application for Windows XP but I made it in Windows 7. The application contains a Mysql.data connection and CrystalReport. When I try to run it on Windows XP, the application does ...
0 votes
1 answer
405 views
Azure functions failing when upgrading to 1.0.8
Using the latest version of VS 2017 I Create a new azure functions project. Add a timer trigger function Upgrade to latest (1.0.8) azure functions nuget package Add a reference to azure storage for ...