Questions tagged [fileloadexception]
67 questions
1
vote
0 answers
Weird Exception Creating new XmlSerializer
I am instantiating an XmlSerializer for a custom class. The line of code is pretty simple:
mySerializer = new XmlSerializer(typeof(myClass));
I recently turned on the options to "Break When Thrown" for all "C++ Exceptions" in the Exception…

Steve
- 347
- 3
- 11
1
vote
1 answer
FileLoadException when try dispose Microsoft.Diagnostics.Tracing.Session.TraceEventSession from WindowsService
My WCF service is hosted in a windows service. Wanted the service class to be created as singletion, hence mentioned the servicebehavior attribute of the WCF service class accordingly. OnStart of the windows service host, I create an instance of…

nishitha nair
- 163
- 4
- 14
1
vote
2 answers
System.IO.FileLoadException on System.ServiceModel.Primitives
I am currently working on a Xamarin project, and I required something that Xamarin on it's own doesn't support, so I looked for solutions. After messing around with some NuGets, my project ended up with a bunch of weird and unexplainable compile…

Josip Kelava
- 3
- 4
1
vote
1 answer
Symfony Fileloader fails to find existing class
maybe I just messed something up with namespaces, but I don't see it.
I tried to separate some classess in my Symfony App into a bundle.
The error I get in Symfony is:
Expected to find class "Shop\Admin\CategoryAdmin" in file
…

Arkadiusz Galler
- 305
- 3
- 18
1
vote
1 answer
'Could not load file or assembly' exception when running as a console app
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…

Daniel Novak
- 23
- 6
1
vote
0 answers
javafx.fxml.LoadException - .fxml file not found
first of all, i'm definetly not a native speaker so I hope i can desribe correct what's about in this post :D
so what is the problem? When I try to construct an javaFX application with a a couple different "windows".
The problem is when I try to…

MDaniluk
- 62
- 2
- 2
- 16
1
vote
1 answer
FileLoadException when using NLog
I'm developing API where I use NLog for logging incoming requests and their responses.
Occasionally I'm getting following error on my server
Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an…

Václav Holuša
- 311
- 3
- 14
1
vote
4 answers
Unhandled FileLoadException that I think I'm handling
I have a thread that get I initialize like this:
Utility.Log("1");
myThread = new Thread(new ThreadStart(delegate
{
Utility.Log("2");
and then the rest of the thread's execution. The weird thing is, despite that whole thing being wrapped in a…

Mike Pateras
- 14,715
- 30
- 97
- 137
1
vote
1 answer
Cannot load a Strong name assembly by Assembly.LoadFrom(), call fails with 0x80004005 (E_FAIL)
I have an Adobe acrobat plugin that uses System.Reflection.Assembly.LoadFile(path) in an AssemblyResolve event that will fail anytime I try to load a signed assembly. The error is
The assembly with display name 'Microsoft.AspNet.SignalR.Client'…

Byron
- 23
- 5
1
vote
2 answers
Assembly FileLoadException (Access is denied) after period of time
I have a web application that works fine for a while (a few days) and then starts throwing FileLoadException's when instantiating a class that references an external dll.
I'm not explicitly loading the assembly with any of the Assembly static…

Andrew
- 1,494
- 1
- 17
- 27
1
vote
1 answer
Does useLegacyV2RuntimeActivationPolicy work in class library projects?
My project setup looks like this:
My application (4.0) --> My class library (4.0) --> 3rd party library (2.0.50727)
My application's app.config looks like this:

Pascal Kesseli
- 1,620
- 1
- 21
- 37
0
votes
0 answers
FileLoadException when trying to load a signed Assembly with VersionInformation (C#, WPF, AssemblyVersion, Asterisk)
I have a problem when trying to load a signed assembly into my WPF application. Specifically when the WPF Views are created, e.g.
var circularProgressControl = new CircularProgressControl();
I get this error
System.IO.FileLoadException: "Could not…

cb9980
- 29
- 2
0
votes
0 answers
Unable to resolve "Could not load file or assembly" exception in .net framework application
After upgrading the FluentValidation NuGet package in my WPF application from version 11.0.2 to 11.4.0, I began to receive the following error when attempting to execute my test suite:
System.IO.FileLoadException
HResult=0x80131040
Message=Could…

Craig Blazakis
- 1
- 1
0
votes
0 answers
Executing in new AppDomain: FileLoadException for third party dll which loads "wrong version"?
UPDATE:
I just was made aware that AppDomains are no longer supported in .NET core and .NET 5+. Maybe the solution we used in the passed simply no longer is possible.
We're doing something a bit awkward. We are trying to build an integration test…

bas
- 13,550
- 20
- 69
- 146
0
votes
1 answer
System.Text.JSON 6.0.2 version and above throw error with JsonSerializer.Deserialize
I have created a basic template Class library (see image below) and added just one reference system.text.json (version 6.0.2) through manage nuggets
Created a Console application with the above Class library as reference. (basic template just…

MeeGee
- 25
- 1
- 7