This must be a bug in C# when using user control DLL and class library DLL



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 called B
One project that build a class library dll called C

In the constructor for this user control is a call to a method in the class
library.
public (){

InitializeComponent();

Last.Last last = new Last.Last();

last.foo();

}



In the exe file c-tor I have a call to a method in the class library.
So in the project reference settings for the exe file I have a project
reference to the class library and to
the windows control because I can drag the windows control from the toolbox
to a form in the project that build the exe file.

Now to my problem if I now rebuild the project only for the class library
and then try to drag the windows control to a form I get the following error
"An exception occured while trying to create an instance of Middle.Middle.
The execption was "?"."

But if I rebuild the windows control instead then I can drag the windows
control from the toolbox to a form in the project that build the exe file.

My first question why do I get this error.
My second question is what is the recommended setting for copy local that
exist on each project. It it to have true or false.

My third question is what requirement is it about the version that each dll
have. I mean when an exe file will call a dll or when a dll will call
another dll.

//Tony


I just wonder what is the requirement about the dll and its version on the
dll

I noticed that when I get error







begin 666 p.gif
M1TE&.#EAL0`-`( `````_____R'Y! ``````+ ````"Q``T```+MC(^IR^T/
MHYRTV@6ROD?OGB5 ,V)&R:5D>+;FVZFHZL8!.L\B4^HTC:OQA@@?Q<C1C91%
MVXTD_,EV2.>NF?(M3RRNENH(UC[/LJ?8/8."O2KVBF/UKD[R]M;URN<N\?KC
MYO=E-J; 1]C'YQ;55WB'YG'85F@UIA9)]S:TE0/8:"EG@UG&J,:(J&3$A.>I
MEV-820H[6\E)*J8HJONI*0O5E M,RUM'](9;:ZQJA8SH+$G9_- ,?1@%?<L\
M3,8Z+))W_!UJQGU9GH8V80=*>;W&#"XEGQ2Q.'^/GZ_O;8P?^0\PH,"!!.WM
(.X@PX;X"`#L`
`
end

.



Relevant Pages

  • Have big problem with windows control dll
    ... One project that build a windows control dll ... In the windows control c-tor is there a call to a method in the class ... So in the project referense settings for the windows control I have a ... In the exe file c-tor I have a call to a method in the class library. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Windows Control / dll in ASP .Net
    ... Any site that hosts the Windows Control is going to need to be fully trusted by the browser application. ... "Ragu" wrote in message ... I have developed a basic windows control an dll in vb.net (windows control ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Embedded Windows control
    ... When you say "create a windows control" do you mean this is to run in the ... > don't know how to include the dll of that control in our own dll to ... > how to use the embedded dll in our code. ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: How to implement a WindowsControl in IE that uses another Windows Control
    ... I'm talking about a third party control with it's own DLL. ... does anybody know how I can solve it that my Windows Control ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Making a DLL in C#
    ... so you'll reference the control directly in code. ... I have not seen a DLL with a form. ... Windows control. ...
    (microsoft.public.dotnet.languages.csharp)