© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
20 replies
Elio

DLL Unable to load file or assembly [Answered]

Hi, i've made my own DLL and when i try to create a new variable with a class from this DLL, it launch the following error :
'System.IO.FileNotFoundException' an error occurred in System.Windows.Forms.dll
'System.IO.FileNotFoundException' an error occurred in System.Windows.Forms.dll

Unable to load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
Unable to load file or assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'


and if i remove the new variable this error disappear and my program goes running, have you any idea why this following error occur ?
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

Could not load file or assembly '...' with a weaved DLL
C#CC# / help
17mo ago
Could not load file or assembly…
C#CC# / help
2y ago
❔ could not load file or assembly
C#CC# / help
3y ago
✅ Could not load file or assembly 'StackExchange.Redis
C#CC# / help
4y ago