Have big problem with windows control dll



Hello!

I have one solution file that consist of three project.
One project that build the exe file.
One project that build a class library 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
libarary.
So in the project referense settings for the windows control I have a
project referens to the class library.

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



.



Relevant Pages

  • This must be a bug in C# when using user control DLL and class library DLL
    ... One project that build a user control dll called B ... One project that build a class library dll called C ... In the exe file c-tor I have a call to a method in the class library. ... the windows control because I can drag the windows control from the toolbox ...
    (microsoft.public.dotnet.general)
  • Re: trivial question about building exe
    ... exe file, so that I can send it to another machine and it works. ... DLL, ... source files in your exe project and remove all the DLL references. ... exe file that would install the application and all its DLLs on the user's ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Console App in one EXE file
    ... In your first reply about using private assemblies, you asked me to copy the two files Microsoft.VC90.CRT and Microsoft.VC90.MFC to the /bin folder. ... you must re-link and re-deploy exe file to include the changes. ... If multiple processes are created on the exe file, they will not share the DLL file. ... Please feel free to let my manager know what you think of the level of service provided. ...
    (microsoft.public.vsnet.general)
  • Re: Is it possible to include a dll in the exe
    ... > from a custom form in the dll. ... > the code to extract your dll, you just need to extract it to the same ... > In fact I include all of the resources as embedded resources. ... >>>> with the exe file? ...
    (microsoft.public.dotnet.framework.compactframework)
  • A question about DLL
    ... I'm using VS 2003 and C# and some dll. ... especially windows control in the same solution as the project that create ... want to update the control in the Toolbox you get two different icons but ... You can only delete the one that look like a wheel. ...
    (microsoft.public.dotnet.framework)