473,385 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

one settings file for base dll and windows service

Hello,
I have already spent a whole day on that so some help would be greatly
appreciated.
I have a windows service that in the settings file (created by the designer)
has a bool debug=false
the service uses a base dll with a settings file again with the same debug
key.
When I compile it I see only one settings file and thats fine by me but when
i change its value the dll doesnt read it but keeps the one in its own
settings.
How can I convince the dll to look at the service's settings?

Thanks,
Akis
Jun 19 '07 #1
1 1501
Hi,

"akis" <ak**@discussions.microsoft.comwrote in message
news:A8**********************************@microsof t.com...
Hello,
I have already spent a whole day on that so some help would be greatly
appreciated.
I have a windows service that in the settings file (created by the
designer)
has a bool debug=false
Setting file? Are you talking about the app. conf. file: app.config?
the service uses a base dll with a settings file again with the same debug
key.
IIRC config files are only for executables, not for dlls.
When I compile it I see only one settings file and thats fine by me but
when
i change its value the dll doesnt read it but keeps the one in its own
settings.
How can I convince the dll to look at the service's settings?
Of course you can always include the settings of the dll in the exec's file
config.

If you are in 2.0 the Configuration managemente was vastly improved. you can
now include externals files too. Too bad they need to be fully qualified,
and cannot be relatives.
Jun 20 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gnaneshwar Babu | last post by:
Hi I am facing a problem with extracting event logs of win32 to a file. Am using the following code to extract eventlogs to file use Win32::EventLog; $handle=Win32::EventLog->new("System",...
7
by: Brian Sabolik | last post by:
I'm not sure if I've broken any Object Oriented rules or not, but ... I have projects in 2 different solutions that need to use each other's methods. Therefore I may have an "update" method in...
2
by: Scanner2001 | last post by:
I have a service with settings in the app.config file. I would like to be able to change these settings without restarting the service. Something similar to a web.config with web services. Whenever...
7
by: MrNobody | last post by:
I was a Java developer so I'm used to using property files as a means to keep configuration settings for my apps. I'm wondering what options are there with ..NET? Some settings I want to include...
5
by: Dhilip Kumar | last post by:
Hi All, I'm writing a Windows Service app using C#. I need to read some configuration settings before the service starts up. These settings will be used by the service in its operation. ...
10
by: Paul Cheetham | last post by:
Hi, I am developing an application that needs to store some machine-specific settings. The application is going to be published on the network in order to keep the clients on the latest version....
6
by: John J. Hughes II | last post by:
I am creating a new windows service and will have a windows form for setting the runtime settings. In the past I have used the registry for this but since MS seems to think this is a bad thing I...
0
by: =?Utf-8?B?c3VqaXRo?= | last post by:
created a simple windows service and a set up project for that .I uses Settings feature in .net 2.0.It has a windowsservice1.settings file with a user scope variable named “Settings1” with a...
5
by: Mika M | last post by:
Hi! I have made quite simple Windows Service using C# 2005. I also made Setup for it into same solution. When I run Setup, it will be installed ok into C:\Program Files\<MyCompany>\<MyService>....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.