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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
HemanthPosted Nov 2, 2023, 3:51 AM
Hi,
System.Windows.Forms is installed and Specific version is set to false.
Regards,
hemanth
Jithu ThomasPosted Nov 1, 2023, 12:15 PM
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.
Vishal JoshiPosted Nov 1, 2023, 11:17 AM
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