• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

System.Windows.Forms.dll cannot be found

I get an error from an application that C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll cannot be found.

Which software should I install in order not to receive this error ?
0
itbabe
Asked:
itbabe
  • 2
  • 2
1 Solution
 
käµfm³d 👽Commented:
This is the .NET Framework--version 4.0 if I'm reading the error message correctly.
0
 
SlySoftwareCommented:
kaufmed is correct. You need to install/reinstall .net framework 4.0. The web installer can be found here: http://microsoft.com/en-us/download/details.aspx?id=17851
0
 
itbabeAuthor Commented:
They tell me that the dotnet 4.0 software is distributed correctly at the company.
When I check add remove programs I see the image in the attached screenshot.

I find a folder called C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319 and a keyname called HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319.

But no  C:\WINDOWS\Microsoft.Net\assembly\GAC_32\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll  file.
Is there a specific feature that they possibly did not install ?
add-remove-programs.bmp
0
 
itbabeAuthor Commented:
I do find an assembly here :C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089. , but the application is maybe not looking in the right place?

Can we configure in any way that the application looks elsewhere for the assembly ?
0
 
SlySoftwareCommented:
The GAC which stands for Global Assembly Cache. Does not have that directory. Period!
The dll file you are probably looking for is located here
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\"
If you copy the system.windows.forms.dll to the directory where the executable is, that should fix your problem. The developer messed something up I think...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now