Dave Posted December 13, 2003 Posted December 13, 2003 I have made a class library which contains a user control I made. When I create an instance of this control in the form designer, it appears correctly, no problems. But then when i try to compile the project, I get the following exception: An unhandled exception of type 'System.TypeLoadException' occurred in MyFrame.exe Additional information: Could not load type MyFrameControl from assembly MyFrame, Version=1.0.1442.31213, Culture=neutral, PublicKeyToken=null. What am I doing wrong?! Quote
*Gurus* divil Posted December 14, 2003 *Gurus* Posted December 14, 2003 Is the CopyLocal property for the assembly set to true in the solution explorer? It sounds like maybe it's not getting copied to the output directory, in which case .net wouldn't be able to locate it at runtime. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
ksminhas Posted January 5, 2004 Posted January 5, 2004 problem iam having the same problem. but i could not solve that problem. how could i solve this problem. Quote
*Gurus* divil Posted January 5, 2004 *Gurus* Posted January 5, 2004 If you are having the same problem, but you could not solve that problem using the answer I gave above, then you probably have a different problem. It looks like we have a problem. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
ksminhas Posted January 5, 2004 Posted January 5, 2004 ITs property is true either its true or false give me the same error. In the designer it shows me the control but in red "Error creating control". I think i am missing something. Is it necessary to make public key token for this. Anxioulsy waiting for ur reply. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.