PC Review


Reply
Thread Tools Rate Thread

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

 
 
Tony Johansson
Guest
Posts: n/a
 
      2nd Apr 2006
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









 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
roblems when using user control and class library Tony Johansson Microsoft Dot NET 1 4th Apr 2006 02:05 AM
problems when using user control and class library Tony Johansson Microsoft C# .NET 1 4th Apr 2006 12:50 AM
This must be a bug in C# when using user control DLL and class library DLL Tony Johansson Microsoft Dot NET Framework 1 2nd Apr 2006 09:19 PM
Help user Control (Class library with dll) in ASP.Net web page Andrew Hoi Microsoft C# .NET 0 8th Nov 2005 07:48 AM
Using User Control from class library Marcel Gelijk Microsoft ASP .NET 5 25th Jan 2004 07:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:35 AM.