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 that build a class library dll. Here we have a class called C
We have one dependency and that is from the user control to the class
library because
in the constructor for class B in the user control we have a call to
instansiate class C in the class library dll.
public B()
{
InitializeCompo nent();
Last.C last = new Last.C();
last.foo();
}
In the project that create the exe file I have a project reference to the
user control.
In the project that create the user control I have a project reference to
the class library.
When I add the user control to the Toolbox I use the obj/debug directory to
select the user control dll.
Now to my problem when I try to drag the user control from the toolbox into
a form I get the following error "An exception occured while trying to
create an instance of WindowsControlL ibrary.B. The execption was "?"."
Is this kind of a bug that cause this problem.
Is it possible to solve this kind of problem in some way.
I have even rebuild the user control dll and the class library dll but it
doesn't matter.
//Tony
I just wonder what is the requirement about the dll and its version on the
dll
I noticed that when I get error 4 1679
Hi Tony,
The problem doesn't stem from the fact that the User Control assembly
references the assembly it depends on, and that the executable references
the User Control assembly. I know that for a fact because I have done this
many times. What I don't know is what caused the error.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Show me your certification without works,
and I'll show my certification
*by* my works.
"Tony Johansson" <jo************ *****@telia.com > wrote in message
news:93******** ***********@new sb.telia.net... 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 that build a class library dll. Here we have a class called C
We have one dependency and that is from the user control to the class library because in the constructor for class B in the user control we have a call to instansiate class C in the class library dll. public B() { InitializeCompo nent(); Last.C last = new Last.C(); last.foo(); }
In the project that create the exe file I have a project reference to the user control. In the project that create the user control I have a project reference to the class library.
When I add the user control to the Toolbox I use the obj/debug directory to select the user control dll.
Now to my problem when I try to drag the user control from the toolbox into a form I get the following error "An exception occured while trying to create an instance of WindowsControlL ibrary.B. The execption was "?"."
Is this kind of a bug that cause this problem. Is it possible to solve this kind of problem in some way. I have even rebuild the user control dll and the class library dll but it doesn't matter.
//Tony
I just wonder what is the requirement about the dll and its version on the dll
I noticed that when I get error
Hi!
When I have this kind of problem what is the solution?
If I put the class library in the GAC that is called by the user control
would that solve my problem?
Do you think that this could be a bug because you have experienced this
kind of problem yourself.
I see that you are Microsoft MVP so do you think it's possible to send a
mail to microsoft telling them about my problem.
//Tony
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> skrev i meddelandet
news:uX******** ******@TK2MSFTN GP09.phx.gbl... Hi Tony,
The problem doesn't stem from the fact that the User Control assembly references the assembly it depends on, and that the executable
references the User Control assembly. I know that for a fact because I have done
this many times. What I don't know is what caused the error.
-- HTH,
Kevin Spencer Microsoft MVP Professional Numbskull
Show me your certification without works, and I'll show my certification *by* my works.
"Tony Johansson" <jo************ *****@telia.com > wrote in message news:93******** ***********@new sb.telia.net... 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 that build a class library dll. Here we have a class called
C We have one dependency and that is from the user control to the class library because in the constructor for class B in the user control we have a call to instansiate class C in the class library dll. public B() { InitializeCompo nent(); Last.C last = new Last.C(); last.foo(); }
In the project that create the exe file I have a project reference to
the user control. In the project that create the user control I have a project reference
to the class library.
When I add the user control to the Toolbox I use the obj/debug
directory to select the user control dll.
Now to my problem when I try to drag the user control from the toolbox into a form I get the following error "An exception occured while
trying to create an instance of WindowsControlL ibrary.B. The execption was
"?"." Is this kind of a bug that cause this problem. Is it possible to solve this kind of problem in some way. I have even rebuild the user control dll and the class library dll but
it doesn't matter.
//Tony
I just wonder what is the requirement about the dll and its version on
the dll
I noticed that when I get error
You misunderstood me, Tony. I have never had this problem. I have
successfully done the same thing you're trying to do without any problems,
and no, I didn't use the GAC.
--
HTH,
Kevin Spencer
Microsoft MVP
Professional Numbskull
Show me your certification without works,
and I'll show my certification
*by* my works.
"Tony Johansson" <jo************ *****@telia.com > wrote in message
news:Pm******** ***********@new sb.telia.net... Hi!
When I have this kind of problem what is the solution? If I put the class library in the GAC that is called by the user control would that solve my problem?
Do you think that this could be a bug because you have experienced this kind of problem yourself.
I see that you are Microsoft MVP so do you think it's possible to send a mail to microsoft telling them about my problem.
//Tony "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> skrev i meddelandet news:uX******** ******@TK2MSFTN GP09.phx.gbl... > Hi Tony, > > The problem doesn't stem from the fact that the User Control assembly > references the assembly it depends on, and that the executable references > the User Control assembly. I know that for a fact because I have done this > many times. What I don't know is what caused the error. > > -- > HTH, > > Kevin Spencer > Microsoft MVP > Professional Numbskull > > Show me your certification without works, > and I'll show my certification > *by* my works. > > "Tony Johansson" <jo************ *****@telia.com > wrote in message > news:93******** ***********@new sb.telia.net... >> 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 that build a class library dll. Here we have a class called C >> >> We have one dependency and that is from the user control to the class >> library because >> in the constructor for class B in the user control we have a call to >> instansiate class C in the class library dll. >> public B() >> { >> InitializeCompo nent(); >> Last.C last = new Last.C(); >> last.foo(); >> } >> >> In the project that create the exe file I have a project reference to the >> user control. >> In the project that create the user control I have a project reference to >> the class library. >> >> When I add the user control to the Toolbox I use the obj/debug directory >> to select the user control dll. >> >> Now to my problem when I try to drag the user control from the toolbox >> into a form I get the following error "An exception occured while trying >> to create an instance of WindowsControlL ibrary.B. The execption was "?"." >> >> Is this kind of a bug that cause this problem. >> Is it possible to solve this kind of problem in some way. >> I have even rebuild the user control dll and the class library dll but it >> doesn't matter. >> >> >> //Tony >> >> >> I just wonder what is the requirement about the dll and its version on the >> dll >> >> I noticed that when I get error >> >> >> >> >> >> >> >> > >
Hello!
When I'm in design mode and drag the user control from the toolbox into
a form that exist in the project that build the exe file which search path
is used to locate the class library dll.
Many thanks
//Tony
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> skrev i meddelandet
news:e#******** ******@TK2MSFTN GP10.phx.gbl... You misunderstood me, Tony. I have never had this problem. I have successfully done the same thing you're trying to do without any problems, and no, I didn't use the GAC.
-- HTH,
Kevin Spencer Microsoft MVP Professional Numbskull
Show me your certification without works, and I'll show my certification *by* my works.
"Tony Johansson" <jo************ *****@telia.com > wrote in message news:Pm******** ***********@new sb.telia.net... Hi!
When I have this kind of problem what is the solution? If I put the class library in the GAC that is called by the user
control would that solve my problem?
Do you think that this could be a bug because you have experienced this kind of problem yourself.
I see that you are Microsoft MVP so do you think it's possible to send
a mail to microsoft telling them about my problem.
//Tony "Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> skrev i meddelandet news:uX******** ******@TK2MSFTN GP09.phx.gbl... > Hi Tony, > > The problem doesn't stem from the fact that the User Control assembly > references the assembly it depends on, and that the executable references > the User Control assembly. I know that for a fact because I have done this > many times. What I don't know is what caused the error. > > -- > HTH, > > Kevin Spencer > Microsoft MVP > Professional Numbskull > > Show me your certification without works, > and I'll show my certification > *by* my works. > > "Tony Johansson" <jo************ *****@telia.com > wrote in message > news:93******** ***********@new sb.telia.net... >> 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 that build a class library dll. Here we have a class called C >> >> We have one dependency and that is from the user control to the
class >> library because >> in the constructor for class B in the user control we have a call to >> instansiate class C in the class library dll. >> public B() >> { >> InitializeCompo nent(); >> Last.C last = new Last.C(); >> last.foo(); >> } >> >> In the project that create the exe file I have a project reference
to the >> user control. >> In the project that create the user control I have a project
reference to >> the class library. >> >> When I add the user control to the Toolbox I use the obj/debug directory >> to select the user control dll. >> >> Now to my problem when I try to drag the user control from the
toolbox >> into a form I get the following error "An exception occured while trying >> to create an instance of WindowsControlL ibrary.B. The execption was "?"." >> >> Is this kind of a bug that cause this problem. >> Is it possible to solve this kind of problem in some way. >> I have even rebuild the user control dll and the class library dll
but it >> doesn't matter. >> >> >> //Tony >> >> >> I just wonder what is the requirement about the dll and its version
on the >> dll >> >> I noticed that when I get error >> >> >> >> >> >> >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chua Wen Ching |
last post by:
Hi there,
I had applied this security permissions in my class library based on fxcop
standards.
Before namespace:
using System.Runtime.InteropServices;
using System.Security.Permissions;
|
by: Jason Huang |
last post by:
Hi,
Would someone explain the following coding more detail for me? What's the
( ) for?
CurrentText = (TextBox)e.Item.Cells.Controls;
Thanks.
Jason
|
by: multiformity |
last post by:
So I have been working on an opensource project for a while, and
decided to really try to make it look better after focusing on the
functionality most of this time. Up to now, I have simply used a
standard ASPX page with minor modifications to it. All of my pages
inherit from a "BasePage.cs" class, that handles common things like
getting the user's information out of the session, determines if a page
should or should not be password...
|
by: Stan Sainte-Rose |
last post by:
Hi,
How can I call an event from an action.
Example, I want to call the datagrid.Double.click event when a button is
pressed.
Stan.
|
by: Daylor |
last post by:
hi.
i have multi thread application in vb.net
is there a way NET support, so i can mark the class , to be access
only for 1 thread each time ?
if there is , small sytax sample will help
//what i need to add , so only 1 thread per time can access this class in
MultiThread app.
| |
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 that build a class library dll. Here we have a class called C
We have one dependency and that is from the user control to the class
library because
in the constructor for class B in the user control we have a call to
|
by: JT |
last post by:
Here is the overall structure I will be referring to:
End-program
ProvideWorkFlow.dll
Forms and methods that properly manipulate calls to methods in
AccessUtils
AccessUtils (a web service)
Hide.dll
methods and data I want to remain hidden
I have a DLL, Hide.dll, that contains methods that I want to handle for
|
by: gregory.lielens |
last post by:
Hello,
We are currently writing python bindings to an existing C++ library,
and we encountered
a problem that some of you may have solved (or that has found
unsolvable :( ):
A C++ class (let's call it CClass) is binded using classical Python
extension API to _PClass, which is accesible through python without
any
|
by: Tom |
last post by:
First, my thanks in advance to those who can help explain away this
mystery line of code.
Petzold is a great teacher and I appreciate his work; however, his
explanation about an extra line of code needed when a class is
contained in a library vs the class being defined in a separate file
within the project falls short of my ability to understand.
Note: I've included the code (4 files) at the bottom, making this a
long winded posting;...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |