473,399 Members | 3,302 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Cannot add control to toolbox - Assembly not found

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
0 1457

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kevin Mellor | last post by:
Hello all, I hope someone can help me. I am not new to developing but am new to C# (assemblies etc) and V Studio 2003, although familiar with terminology from VS6. I am in the nightmare...
2
by: Chien Lau | last post by:
I frequently define internal UserControl-derived classes in my WinForms apps: internal class MyUserControl:UserControl{ ... } I'll often need to embed these controls in a Form, whose class...
14
by: Graham Blandford | last post by:
Hi there, A quickie I think... If I create a new class that inherits the values of a windows form component class, can there ever be a visual representation of this in the .Net IDE? E.g. if...
0
by: Joerg Krause | last post by:
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...
3
by: CJM | last post by:
I'm currently working on an assembly that has both forms and controls in it. When I create a new control based on UserControl and compile, it shows up in the toolbox for all forms in this...
1
by: Jeff | last post by:
Hello, I have developed a library of controls but for the life of me cannot get ToolboxBitmapAttribute to work -- my image simply will not display in the toolbox of any project using my...
4
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
5
by: tony | last post by:
Hello! This is a rather long mail but it's a very interesting one. I hope you read it. I have tried several times to get an answer to this mail but I have not get any answer saying something...
5
by: craigkenisston | last post by:
I created a derived class from "Literal". I put the code in the App_Code folder and the control is working as expected. Now, I wan this control to be in the ToolBox, just like the others, what...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.