Type.GetType for unreferenced assembly
Posted on 2004-09-26
I understood when you had a project WITHOUT a reference to an assembly you could get the type but the following
Type type = Type.GetType("MyCompany.Config.Panes.Email, MyCompany.Config.Panes");
My.Conpany.Config.Panes.Email is the UserControl
MyCompany.Config.Panes = assembly where the control is
and it is being called from MyCompany.Config - which is another assembly
The MyCompany.Config.Panes is not in the gac - but I have also tried the string as
"MyCompany.Config.Panes.Email, MyCompany.Config.Panes, Version=1.0.1731.20479, Culture=neutral, PublicKeyToken=null"
but this doesn't work either
nor does "MyCompany.Config.Panes.Email" on it's own.