Questions tagged [fileloadexception]
67 questions
18
votes
4 answers
System.Net.Http NuGet package 4.3.0 reference generates System.IO.FileLoadException on System.Diagnostics.DiagnosticSource ver 4.0.0.0 reference
Description of the problem:
A shared library "shared.dll" project references System.Net.Http NuGet package 4.3.0. The application that references "shared.dll" fails with
System.IO.FileLoadException
Could not load file or assembly…

Serge Pavlov
- 699
- 5
- 18
13
votes
3 answers
Updating a DLL in a Production ASP.NET Web Site bin folder
I want to update a class library (a single DLL file) in a production web application. This web app is pre-compiled (published). I read an answer on StackOverflow (sorry, can't seem to find it anymore because the Search function does not work very…

Josh Stodola
- 81,538
- 47
- 180
- 227
10
votes
5 answers
Could not load file or assembly Microsoft.Win32.Primitives, Version=4.0.0.0
I am having problems running my web application.
The project setup is ASP.NET Core web application (.NET Framework). I don't seem to get any Build error. The project doesn't just run.
System.IO.FileLoadException: 'Could not load file or assembly…

Cody
- 353
- 2
- 3
- 17
9
votes
3 answers
SharpSVN and C# Problem
When trying to add SharpSVN to my C# project, compiling with SharpSVN related calls gives me this error:
FileLoadException was Unhandled
Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime…

Sam F
- 621
- 1
- 8
- 16
6
votes
2 answers
Why do I get System.IO.FileLoadException: Could not load file or assembly, about once a week on my ASP.Net Website?
I have a rather simple internal ASP.Net Website that has issues loading the Microsoft.Practices.EnterpriseLibrary.Data dll about once a week. Here is the Exception message:
System.IO.FileLoadException: Could not load file or assembly…

Daryl
- 18,592
- 9
- 78
- 145
6
votes
1 answer
System.IO.FileLoadException: Could not load file or assembly Log4net
I added an existing project to my solution. When I run all unit tests with MSTest runner, I get the following error on a couple of tests:
Message: Test method soandso threw exception:
System.IO.FileLoadException: Could not load file or assembly…

tobre
- 1,347
- 3
- 21
- 53
6
votes
2 answers
Causes of System.IO.FileLoadException in OnStartup of WPF Application
I am debugging a WPF application that crashes with a unhandled System.IO.FileLoadException when started.
I used the Assembly Binding Log Viewer to verify that there are no assembly loading errors and all the code in the OnStartup override is wrapped…

dmck
- 7,801
- 7
- 43
- 79
5
votes
3 answers
Debugging assembly load issue
I have a very wierd problem happening to me during unit testing (MSTest in Visual Studio - .NET 3.5 SP1):
I click "Run All Tests in solution"
All tests passes, except for one particular class, where every tests throws the following exception:…

toxvaerd
- 3,622
- 3
- 24
- 29
5
votes
5 answers
Updating the application with a new .net dll gives me FileLoadException?
I have a .net 3.5 application with many dlls, I tried to rebuild specific dll without building the whole application, but after replacing the old one with the new, the application throws exception as it could not load the new…

Ahmed
- 7,148
- 12
- 57
- 96
5
votes
2 answers
Word VSTO 4.0 Addin fails to load: Could not load file or assembly
The issue in short is that I created a Word VSTO addin that works perfectly fine on a number of machines, but fails to load on one machine only. I don't know if the problem is in the assembly name, or there is a missing DLL.
The details of how that…

mkaatr
- 123
- 1
- 7
4
votes
1 answer
Odd behavior when attempting to get a Type by AssemblyQualifiedName at runtime
I'm getting a FileLoadException when attempting to deserialize a type using the NetDataContractSerializer:
The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
This error does not have to do with the serializer…
user1228
4
votes
4 answers
System.IO.FileLoadException
I have got this error when using Enterprise Library 3.1 May 2007 version. We are developing a product and have a common lib directory beneath the Subversion Trunk directory
<>\Trunk\Lib\ into which we put all the third party DLLs. Inside this we…

Raj G
- 93
- 1
- 3
- 10
4
votes
2 answers
FileLoadException on 'Microsoft.Owin'
So I have installed SignalR through Nuget and it is depending on Microsoft.Owin which it then installed. Whenever I run my application it throws a FileLoadException in the Startup.cs om the app.MapSignalR(); line. It says "File or assembly…

Zinoex
- 512
- 2
- 8
- 22
3
votes
3 answers
System.IO.FileLoadException when running C# program on a different computer
I am currently working on a C# WPF project which makes use of the MySQL.Data and System.Data.Sqlite dll as well as a couple of others.
The project is a .Net 4 project which works without problems on my Development Machine. I create an MSI installer…

Boardy
- 35,417
- 104
- 256
- 447
3
votes
2 answers
The located assembly's manifest definition does not match the assembly reference
I get the following error:
System.IO.FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
It do not give me any hint of which file it's complaining about. How can…

jgauffin
- 99,844
- 45
- 235
- 372