• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • 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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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