473,387 Members | 1,897 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,387 software developers and data experts.

GAC - I'm too old school.

Depending on how you deploy, an App.Config file might do
the trick. You can specify the connection string there,
and you can edit it programatically if need be.

In my experience, the GAC is a great tool, but it's for
totally decoupled objects, or at least ones that have
configurable properties. But a config file can hold this
stuff, be edited manually or programatically, and add a
great deal of flexibility.

Where I work, we have added some Data Access libraries
but have at least two failsafe servers in case one goes
down. In our primary .dlls (we only deploy in house so
hard coding isn't all that impractical) we have the
ConnectStrings hard coded. However, we have exception
handlers that test for things like connection timeouts.
We just recently went to sending the updates to
MessageQueues where we can catch up, but for a good 9
months we specified backup servers in config files and
the exception code would try each of the standby's in
succession. Before we went to the MSMQ , we had a local
web service that would specify the standby server name,
so we could modify the return value that the app checked
for and updated the config files.
Hopefully this gives an idea or too. And BTW, anyone
using .NET isn't 'too old school' :-)

Good Luck,

Bill
-----Original Message-----
G'day all,
I am writting a variety of applications that will be
deployed to a variety of computers and servers on the
network. I have created a class that will access a
database to get the name and location of our email
server, the connection string for any specific project
etc. My thinking is that if any of the server change i
don't want to change all the applications. I could just
maintain 1 connection string per box. However i don't
know how to drop an assembly on a machine and have all
applications reference it. I am accustom to late binding
it and making sure it was registered on all
machines...now i am stumped...i have added it to the GAC
but i still don't know what to do with it from there.

Suggestions?

Thanks.
.

Jul 19 '05 #1
0 2325

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

Similar topics

75
by: Howard Nease | last post by:
Hello, everyone. I would appreciate any advice that someone could give me on my future career path. Here is my situation: I am a bright Junior in a very well-respected private high school, taking...
0
by: Richard Jones | last post by:
Garbage Collection & Memory Management Summer School 20-21 July 2004, Canterbury, UK The performance of today's memory-hungry applications depends on efficient dynamic memory management,...
0
by: Rare Book School | last post by:
RARE BOOK SCHOOL 2005 Rare Book School is pleased to announce its schedule of courses for 2005, including sessions at the University of Virginia, the Walters Art Museum/Johns Hopkins University...
1
by: Volkan Arslan | last post by:
------------------------------------------------------------- LASER Summer School on Software Engineering Practical Techniques of Software Quality Elba, Italy September 12 - 18, 2004 ...
8
by: Christan | last post by:
I am currently taking a db course and my class is paired us into groups of 4s and our instructor had us download a template from the microsoft Access site for education to create and modify a...
0
by: Volkan Arslan | last post by:
------------------------------------------------------------- LASER Summer School on Software Engineering Software engineering for concurrent and real-time systems Elba, Italy September 11 -...
3
by: shahram.shirazi | last post by:
Hi guys, I was wondering if someone could help me a bit here. Im trying to desing an electronic register system for a school. In terms of the table design, I obviously need a Student Details...
2
by: jullietta.jung | last post by:
HI, I have a Questionnaire table that has a column "SchoolId"(int). I want to return the questionnaire table with the name of the school rather than the SchoolId (schoolid and schoolName are...
5
by: Lockwood | last post by:
someone check out this program and tell me what im doing wrong please...every time i fix some errors i get even more than before (right now theres 10). note that im a beginner/noob, and that this...
10
by: JacD | last post by:
I have an access database (MS Access 2002,) which stores school pupils information and I have very limited knowledge on VBA. Hopefully someone can help solve this one for me. I have a form...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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.