In a simple app I'm working on, I've got three related assemblies:
- "MyCompany.Geography.Windows.Forms" which is a class library with the winforms controls in it
- "MyCompany.Geography" which has some definitions for some base types and the like.
- "MyCompany.Geography.Windows" which is a quick knock up app with a simple form, and one of the controls dropped on it as a basic test harness.
Now, everything was going well and I could drop my control on tot he form in the designer, and it merrily added the relevant references, but when I try and actually run it under debug, 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'd go and look at the inner exception, but there is none. the bit that's really confusing me is that I'd have exepcted it to have followed the reference, and looked in there, and I'm a bit stuck as to what to check?