473,398 Members | 2,404 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,398 software developers and data experts.

Satellite assemblies modifying Program Configuration settings

Hey.

Is there a way to attach a satellite assembly to a specific programs'
App.Config File? I have some assembly functions that get used in multiple
programs... each configured in its own way. If I pass them in as
parameters, then I cant update them. Anyone have an idea??

- Roger
Nov 16 '05 #1
2 1876
Roger,

Your assemblies should be using the configuration file for the
executable that launched the runtime. You can get this through the
ConfigurationSettings class in the System.Configuration namespace.

What do you mean by passing them in as parameters? The assemblies
should look for their configuration in the main config file. If you have a
need for something outside of this behavior, then you will have to create
your own scheme (an XML file in a known location, for example).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Roger Webb" <rw***@nos.twia.org> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
Hey.

Is there a way to attach a satellite assembly to a specific programs'
App.Config File? I have some assembly functions that get used in multiple
programs... each configured in its own way. If I pass them in as
parameters, then I cant update them. Anyone have an idea??

- Roger

Nov 16 '05 #2
Nicholas,

Thanks... I dunno what I did wrong when I tried that earlier, however, it
worked that time.

- Roger

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:us**************@TK2MSFTNGP09.phx.gbl...
Roger,

Your assemblies should be using the configuration file for the
executable that launched the runtime. You can get this through the
ConfigurationSettings class in the System.Configuration namespace.

What do you mean by passing them in as parameters? The assemblies
should look for their configuration in the main config file. If you have a need for something outside of this behavior, then you will have to create
your own scheme (an XML file in a known location, for example).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Roger Webb" <rw***@nos.twia.org> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
Hey.

Is there a way to attach a satellite assembly to a specific programs'
App.Config File? I have some assembly functions that get used in multiple programs... each configured in its own way. If I pass them in as
parameters, then I cant update them. Anyone have an idea??

- Roger


Nov 16 '05 #3

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

Similar topics

1
by: Afaq | last post by:
Hi, After adding large number of empty resource files (which will be updated later), we are not able to compile the project. the following is the output of the build process. It fails while...
0
by: thbst16 | last post by:
After a number of weeks of fruitless research and experimentation, I decided to turn to the group with this issue and see if anyone had any experiences or insights that might help me out. Here's...
5
by: Rudolf Ball | last post by:
Dear NG, i want to load a plugin (WinForm) in my Applikation. That works fine. Now I want to globalize that plugin. So I have to load the Satellite Assembly, as well. But how can I load this...
9
by: Invalidlastname | last post by:
Hi, We developed some assemblies which use EnterpriseServices queued components. In order to use EnterpriseServices, these assemblies need to be installed into GAC. I used the pre-build and...
3
by: Adam Calderon | last post by:
In ASP.NET 2.0 you have the choice of using the built in App_GlobalResoruces or App_LocalResources style of using resources or you can use your own resources utilizing satellite assemblies. In the...
3
by: gjenglish | last post by:
I have recently migrated an ASP.NET 1.1 web application to ASP.NET 2.0. In this application I am storing all my resources in satellite assemblies and I am accessing them via the ResourceManager...
0
by: Faris Ahmed | last post by:
Dear ASP newsgroup, I have the following environment: 1) VS2005 ASP.NET 2.0 WebApplication called MyApp. 2) MyApp contains Strings.resx, Strings.en.resx and Strings.de.resx in...
1
by: scpedicini | last post by:
Let's say that I've built an assembly, called myapi.dll whose default resource messages are english. Then let's say I create a german satellite assembly for the assembly called...
10
by: Chris Dunaway | last post by:
I have an .exe console project and a class library project as part of a solution. The .exe has an App.config file and I have used the Settings page to add some Application level settings. When...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...

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.