© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•17mo ago•
17 replies
PurelyAndy

✅ FileNotFoundException: Could not load file or assembly. The system cannot find the file specified.

I'm modifying an application using AsmResolver and adding a new assembly into the module references, but for some reason .NET can't find the referenced assembly even though it's right there in the same folder as the one I'm editing. Attached is a minimum reproducible example, and a video showing what's wrong. I also tried editing the .deps.json file, since this guy Could not load file or assembly '...' with a weaved DLL had success with that and a similar problem, but that didn't do anything.
image.png
MRE.7z417.76KB
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly
C#CC# / help
3y ago
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Data.SqlClient
C#CC# / help
15mo ago
Could not load file or assembly…
C#CC# / help
2y ago
❔ could not load file or assembly
C#CC# / help
3y ago