System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.'
Loading
System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.'
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemanth9 reputationPosted Nov 1, 2023, 11:51 PM EDT
Hi,
System.Windows.Forms is installed and Specific version is set to false.
Regards,
hemanth
Vishal JoshiRank #377 · 6.7K reputationPosted Nov 1, 2023, 7:17 AM EDT
Hello
Error suggests that your application is trying to load the 'System.Windows.Forms' assembly, but it can't find it. This assembly is typically used for Windows Forms applications in .NET.
A few things you can check:
Thanks
Vishal Joshi
Jithu ThomasRank #437 · 5.7K reputationPosted Nov 1, 2023, 8:15 AM EDT
Verify that your project references the correct version of the "System.Windows.Forms" assembly. To do this:
a. Open your project in Visual Studio.
b. In the Solution Explorer, expand the "References" node.
c. Right-click on "System.Windows.Forms" and select "Properties." Ensure that the "Specific Version" property is set to "False."
This may solve your problem.