Windows Develop Bookmark and Share   
 index > Windows Forms Designer > System.Windows.Forms won't load (VS can't seem to find it)
 

System.Windows.Forms won't load (VS can't seem to find it)

I'm getting the following error:

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in Unknown Module.

Additional information: Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

Does anyone know what is causing this error? I get this error when I try to run my project and I haven't done anything at all to make the System.Windows.Forms.dll file disappear. I also deleted the reference and added it again to the project but that hasn't fixed the problem. Any other ideas?
cheatcountry  Thursday, July 23, 2009 9:41 PM
Hi cheatcountry,

What kind of project did you develop? Does it throw out the error before the "Application.Run" is called? Which version of VS and .NET Framework did you use?

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Monday, July 27, 2009 7:33 AM
We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post editor window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Thursday, July 30, 2009 6:13 AM

You can use google to search for other answers

Custom Search

More Threads

• Data Binding with a Hashtable
• Building a Designer
• Label inside usercontrol re-initializes whenever I build/load the designer.
• Problem with designer in VS 2005 Beta 2
• Serializing a Collection
• Cannot Make Changes to Forms via Designer: "Error HRESULT E_FAIL has been returned from a call to a COM component."
• in-place editor for data grid?
• Hosting .NET 2.0 forms designer.
• expandable property in property window
• Changing the default click behavior for a TreeView control