I have two projects in a solution.
Project 1 is a user control. In this user control I define an application
setting to store a url the user control needs to talk to.
Project 2 is our flagship product which has a reference to project 1 and
uses the user control defined in project 1 on a form in project 2.
When I compile project 1 and look at the bin I see the .dll/.exe and most
importantly the project1.exe.co nfig file which contains my application
settings.
When I compile project 2 and look at the bin I see the .dll for project1 but
no project1.exe.co nfig file. I do see a project2.exe.co nfig file but when I
look in it, the application setting from project 1 is not there.
When I run project 2 the user control doesn't work because it can't find the
application setting for the user control. I tried putting
project1.exe.co nfig file in the bin folder for project 2 but again it didn't
work.
I hope this made sense. Let me know what you think. Thanks! 4 918
why not make a property for your user control for to store a url the user
control needs to talk to.??
"Andy Weedman" <An*********@di scussions.micro soft.comwrote in message
news:C3******** *************** ***********@mic rosoft.com...
I have two projects in a solution.
Project 1 is a user control. In this user control I define an application
setting to store a url the user control needs to talk to.
Project 2 is our flagship product which has a reference to project 1 and
uses the user control defined in project 1 on a form in project 2.
When I compile project 1 and look at the bin I see the .dll/.exe and most
importantly the project1.exe.co nfig file which contains my application
settings.
When I compile project 2 and look at the bin I see the .dll for project1
but
no project1.exe.co nfig file. I do see a project2.exe.co nfig file but when
I
look in it, the application setting from project 1 is not there.
When I run project 2 the user control doesn't work because it can't find
the
application setting for the user control. I tried putting
project1.exe.co nfig file in the bin folder for project 2 but again it
didn't
work.
I hope this made sense. Let me know what you think. Thanks!
I guess that is one solution...but I am implementing this control in several
applications and I didnt want to have to implement code to set the property
for the url in each application that implements the control.
"Gillard" wrote:
why not make a property for your user control for to store a url the user
control needs to talk to.??
"Andy Weedman" <An*********@di scussions.micro soft.comwrote in message
news:C3******** *************** ***********@mic rosoft.com...
I have two projects in a solution.
Project 1 is a user control. In this user control I define an application
setting to store a url the user control needs to talk to.
Project 2 is our flagship product which has a reference to project 1 and
uses the user control defined in project 1 on a form in project 2.
When I compile project 1 and look at the bin I see the .dll/.exe and most
importantly the project1.exe.co nfig file which contains my application
settings.
When I compile project 2 and look at the bin I see the .dll for project1
but
no project1.exe.co nfig file. I do see a project2.exe.co nfig file but when
I
look in it, the application setting from project 1 is not there.
When I run project 2 the user control doesn't work because it can't find
the
application setting for the user control. I tried putting
project1.exe.co nfig file in the bin folder for project 2 but again it
didn't
work.
I hope this made sense. Let me know what you think. Thanks!
Andy Weedman wrote:
>
When I run project 2 the user control doesn't work because it can't
find the application setting for the user control. I tried putting
project1.exe.co nfig file in the bin folder for project 2 but again it
didn't work.
Did you try putting a project1.dll.co nfig there instead? Presumably project2
uses a dll version, not an exe version of project1. I'm pretty sure a dll.config
file will be successfully be read by a dll in the same folder.
Having said that, it makes sense to me for each app to configure the dll as
needed. Otherwise why is it a configuration setting in the first place?
If I'm reading correctly, you're asking where to put the configuration
file (dll.config) information for the .dll, right? I went through
this same issue a while ago - see http://tracyhunt.blogspot.com/2007/1...g-net-dll.html.
Nutshell: There is no config file for a .dll - you put all the .dll's
configuration information in the consuming application's config file.
There are some gotcha's, though, and the referenced post details how
to do it.
Regards,
Tracy This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: SJD |
last post by:
I've just read Christoph Schittko's article on XmlSerializer:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/trblshtxsd.asp
. . . and very informative it is too.
I, too, am getting nasty FileNotFound exceptions. I've read, and
digested the article, and I think I've found a bug -- it's difficult to
track, though it does happen often.
|
by: Mevar |
last post by:
Hello to everybody.I have a problem.I'm using an
application configuration file to store particular
settings.I use a custom Section Handler to read settings
and everything work fine if I read my settings.If I add
some settings to the file and I read the configuration
file again I can see only the previous setting.To read
the setting added I must exit from the application and
run it again.Anyone know why it happens?I've read that...
|
by: Jeff |
last post by:
Hey
asp.net 2.0
My asp.net 2.0 project has got a assembly load problem:
Some of my web.config settings:
<membership defaultProvider="AH_MembershipProvider"
userIsOnlineTimeWindow="15">
|
by: Nenad Dobrilovic |
last post by:
Hi all,
I have a really strange situation, but I believe that there is someone else
who has already experinced the same, and is willing to help me!
I made an application using VS 2005 in C#, which uses one setting from
*.exe.config file with 'user' scope. That is a server address, for example.
I wanted to setup that parameter during installation. So, I included one
additonal step during installation which collects a server address...
|
by: james.mcdonagh |
last post by:
Hi I am a newbie using nAnt for .net 2.0. As such I have not come
across this bug before, and I would be happy of any help that you may
be able to provide.
In order to help I have included the nant file which is causing the
problem, the object code that is not being built and the error message
which is being produced.
The weird thing is that VS.net builds without a problem. And the
intellisense within the object WorkQueue knows that...
| |
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: 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.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |