In a simple application I'm working on, I have three related assemblies:
- "MyCompany.Geography.Windows.Forms", which is a class library with winforms controls in it
- "MyCompany.Geography", which has some definitions for some basic types, etc.
- "MyCompany.Geography.Windows", which is a quick knockout application with a simple form, and one of the controls fell on it as the main test harness.
Now everything was going well, and I could leave my control over its form in the designer, and he cheerfully added the corresponding links, but when I try to run it under debugging, I get:
System.TypeLoadException occurred
Message = "Could not load type 'MyCompany.Geography.Windows.Forms.MyControl' from assembly 'MyCompany.Geography.Windows, Version = 1.0.0.0, Culture = neutral, PublicKeyToken = null'."
Source = "MyCompany.Geography.Windows"
TypeName = "MyCompany.Geography.Windows.Forms.MyControl"
Stacktrace:
at MyCompany.Geography.Windows.Form1.InitializeComponent ()
at MyCompany.Geography.Windows.Form1..ctor () in ... \ Projects \ MyCompany.Geography \ MyCompany.Geography.Windows \ Form1.cs: line 10
InnerException:
Normally I would look at an internal exception, but it is not. The bit that really baffles me is that I would say that he followed the link, and looked there, and I'm a little stuck in what to check?