Jump to content
Xtreme .Net Talk

Loading user control from class library causes TypeLoadException


Recommended Posts

Posted

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?!

  • 3 weeks later...
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...