By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,694 Members | 1,795 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,694 IT Pros & Developers. It's quick & easy.

Cannot add control to toolbox - Assembly not found

P: n/a
Hi folks,

the problem was discussed frequently here but I guess I have some
other weird behavior. Have been trying out all suggestions with no
avail.

1)
I have a usercontrol, deriven from IExtenderProvider, which is
dependend from one other assembly, which in turn is dependend only
from
framework assemblies.

Both assemblies are strong named.

I compile the control and try adding to toolbar. I get this error:

"File or assembly name 'Core', or one of its dependencies, was not
found"

But, 'Core' is there, available...

When using fuslogvw, I see that vs.net cannot find the assembly. I've
checked the reference paths, it points directly to 'Core'.

I have another control, which derives from UserControl instead of
IExtenderProvider, which works fine with the same configuration.

2)
Putting the 'Core' assembly into GAC solves the problem. But this is
no option for me.

3)
Changing the Option 'Local Copy' of the reference to 'Core' to false
avoids copying the file to user control bin/debug folder. No I get
another strange error, which is:

"Insufficient state to deserialize the object. More information is
needed."

Q:
Is there anything special about IExtenderProvider against
UserControl??

The weird thing is: As soon as I put the assemblies in the GAC it
works like a charm...Once the control is in the toolbox, I can remove
the GAC entries and it will still work in the code.

What should I do to add controls with dependencies without adding
assemblies to the GAC?

Any pointer is truly appreciated. Thanks,

Joerg
Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.