I have written a fairly simple app that is a MDI windows form. I dynamically build menu items for the different forms that will be loaded. On the click even of the menu items, I call a method called ShowForm, passing in the form name as a string. I then attempt to open the form using the following code:
Dim strFullname As String = Application.ProductName & ".frm" & strFormName
Dim typForm As Type = Type.GetType(strFullname, True, True)
Dim CSFEMDIChild As Form = CType(Activator.CreateInstance(typForm), Form)
I get the following error executing the second line:
Could not load type 'MyAssemblyName.frmInquiryEntry' from assembly 'MyAssemblyName, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
I have read other questions related to this error, but most of them have references to custom assemblies. I have looked in the GAC, but I don't see any assembly that seems related to this app. I have cleared bin/x86/debug so it would recreate all of those items. I don't even have any references in this project beyond the default ones. Any ideas?