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

Web.Config ? for the experts!

Good morning,

We have connection strings in our apps web.config file in
the apps folder. We would like to make one config file
where all our apps can get the info from.
?'s;
1] Do we have to use the machine.config for this ?
2] Could we create a web.config file and have our all
projects point to it ? (if so how would we do this? :) )
3] For #2 above if it can be done, can we then put this
file in a common folder that all the apps can reach ?

Thanks
Deasun
Nov 17 '05 #1
2 1243
Thanks for the reply.
Thats what I was thinking too. just taught I would ask
and see what others were doing.
Thanks
-----Original Message-----
I think you would probably have to use method #1.

"Deasun" <ti*****@mail.com> wrote in message
news:08****************************@phx.gbl...
Good morning,

We have connection strings in our apps web.config file in the apps folder. We would like to make one config file
where all our apps can get the info from.
?'s;
1] Do we have to use the machine.config for this ?
2] Could we create a web.config file and have our all
projects point to it ? (if so how would we do this? :) ) 3] For #2 above if it can be done, can we then put this
file in a common folder that all the apps can reach ?

Thanks
Deasun

.

Nov 17 '05 #2
You would probably need to use machine.config, as its the settings machine
wide. You could also use a separate config file of your own, accessable via
a DLL that is GAC registered. This would be accesible from anywhere in the
machine also, and thus the config file could be centralised. Method 1 is a
lot easier, but take a back up of your machine config before you go messing
with it.

--
Regards

John Timney (Microsoft ASP.NET MVP)
----------------------------------------------
<shameless_author_plug>
Professional .NET for Java Developers with C#
ISBN:1-861007-91-4
Professional Windows Forms
ISBN: 1861005547
Professional JSP 2nd Edition
ISBN: 1861004958
Professional JSP
ISBN: 1861003625
Beginning JSP Web Development
ISBN: 1861002092
</shameless_author_plug>
----------------------------------------------

"Deasun" <ti*****@mail.com> wrote in message
news:08****************************@phx.gbl...
Good morning,

We have connection strings in our apps web.config file in
the apps folder. We would like to make one config file
where all our apps can get the info from.
?'s;
1] Do we have to use the machine.config for this ?
2] Could we create a web.config file and have our all
projects point to it ? (if so how would we do this? :) )
3] For #2 above if it can be done, can we then put this
file in a common folder that all the apps can reach ?

Thanks
Deasun

Nov 17 '05 #3

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

Similar topics

2
by: Chinmoy Mukherjee | last post by:
Hi All, I have a config file as followings IP_ADDR=1.2.3.4 PORT=1290 IP_ADDR=1.2.3.5 PORT=1291
7
by: Max Metral | last post by:
I have a Web.config in my application root dir with the following pages directive: <pages buffer="true" enableViewState="false" enableSessionState="false" enableViewStateMac="false"/> And...
0
by: amperie | last post by:
Hey experts, I have a vb.net (2.0) application that is basically a scheduling application. It wakes up periodically, checks to see if there's tasks to be ran and kicks off any tasks in another...
0
by: amperie | last post by:
Hey experts, I have a vb.net (2.0) application that is basically a scheduling application. It wakes up periodically, checks to see if there's tasks to be ran and kicks off any tasks in another...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.