Questions tagged [fileloadexception]
67 questions
3
votes
4 answers
How to fix json.net (Newtonsoft.Json) runtime file load exception
I get the following exception every time I run my project:
An exception of type 'System.IO.FileLoadException' occurred in
mscorlib.dll but was not handled in user code
Additional information: Could not load file or assembly 'Newtonsoft.Json,…

Suha Alhabaj
- 101
- 2
- 11
3
votes
1 answer
FileLoaderLoadException: Cannot load resource "."
I am working on Symfony2.I am using SVN. So the problem is that my code was working fine.When I commit the code and I update in another Laptop and run the code then it gives me the error like this
FileLoaderLoadException: Cannot load resource…

Azam Alvi
- 6,918
- 8
- 62
- 89
3
votes
1 answer
FileLoadException on DLL Load
So, I know there have been a lot of questions similar to this, but I've poured through many answers over the past day and nothing has helped.
I'm developing a WPF application that is referencing a bunch of external DLLs. There is one DLL in…

Phillip Huff
- 555
- 1
- 6
- 19
3
votes
1 answer
Microsoft.Interop.Security.AzRoles.AzAuthorizationStoreClass.Initialize fails with System.IO.FileLoadException
Our ASP.NET web application uses Authorization manager. On a page of this web application, the authorization store which is a local XML file on the server is accessed many times to perform access check. Some clients of ours are getting a…

user630585
- 31
- 1
2
votes
2 answers
Assembly Version numbers, signed assemblies Why do I get a FileLoadExceptions
My Problem:
I have a signed assembly A.dll that it versioned as 1.0.0.0
I have another assembly (lets say B.dll) that references A.dll.
Once both assemblies both assemblies load fine without any problem.
Now if the version for A.dll changes to…

user996091
- 21
- 2
2
votes
0 answers
System.IO.FileLoadException: 'Could not load file or assembly 'Serilog'
Why I get
System.IO.FileLoadException: 'Could not load file or assembly
'Serilog, Version=1.5.0.0, Culture=neutral,
PublicKeyToken=24c2f752a8e58a10' or one of its dependencies.
When I try to load this assembly from out side project.
The…

Anyname Donotcare
- 11,113
- 66
- 219
- 392
2
votes
1 answer
How to use class library in VsPackage
Following scenario. I have created in VS 2017 a new VSIX Project. There I have inserted a new Tool Window. Additionally I have created a class library. The resulting structure is as follows:
The only thing I have change are
that I added two…

Yggdrasil
- 1,377
- 2
- 13
- 27
2
votes
1 answer
How do I fix the CRT dependency causing a FileLoadException with my vc2005 mixed-mode DLL on XP?
I have a mixed-mode DLL built in visual studio 2005. In dependency walker, my DLL is showing a dependency of the following CRT Dlls. Note this is on my Windows 7 developement machine.…

Tom Fobear
- 6,729
- 7
- 42
- 74
2
votes
1 answer
FileLoadException with .NET 4
I'm trying to build an application using the OpenNURBS toolkit (see here) and I'm getting a FileLoadException with the following message while debugging:
Mixed mode assembly is built against
version 'v2.0.50727' of the runtime
and cannot be…

Alex S
- 25,241
- 18
- 52
- 63
2
votes
0 answers
Error "Could not load file or assembly 'Newtonsoft.Json or one of its dependencies" occurs every day
I get the following error every day:
Exception information:
Exception type: FileLoadException
Exception message: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its…

PeterB
- 43
- 6
2
votes
1 answer
Why do i get a FileLoadException when calling CreateInstanceFrom after assigning a custom permission to an AppDomain?
I try to build an application with different AppDomains and permissions.
The starting application creates a new AppDomain B and uses CreateInstanceFrom to instantiate a class from a different dll.
I can also assign different (standard) permissions…

Phil
- 21
- 2
2
votes
2 answers
FileLoadException during activation of WCF service
After deploying my WCF service in IIS, I get this error when accessing the service:
Server Error in '/MyService' Application.
The given assembly name or codebase was invalid. (Exception from
HRESULT: 0x80131047) Description: An unhandled…

MvdD
- 22,082
- 8
- 65
- 93
1
vote
1 answer
Project reference dll --> FileLoadException
I'm having a problem with project references in .Net
I have three projects:
Console Application
MVC 3 Web Application
Class library (Mails)
Both console and web apps reference the Mails project.
Mails project references RazorEngine.dll.
Now, when I…

gonza89
- 85
- 1
- 9
1
vote
1 answer
FileLoadException when using Microsoft Unity configuration
A FileLoadException when using Unity generally means that a type has been configured for that cannot be loaded because the assembly has not been reference by the project.
How can I find out what type is trying to be resolved so that a reference can…

Kevin Driedger
- 51,492
- 15
- 48
- 55
1
vote
0 answers
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.FileLoadException : Could not load file or assembly…

kuppi
- 53
- 6