Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Web.Config ? for the experts!

Reply
Thread Tools

Web.Config ? for the experts!

 
 
Deasun
Guest
Posts: n/a
 
      07-17-2003
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
 
Reply With Quote
 
 
 
 
Deasun
Guest
Posts: n/a
 
      07-17-2003
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" <(E-Mail Removed)> wrote in message
>news:08df01c34c65$affdf590$(E-Mail Removed)...
>> 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

>
>
>.
>

 
Reply With Quote
 
 
 
 
John Timney \(Microsoft MVP\)
Guest
Posts: n/a
 
      07-17-2003
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" <(E-Mail Removed)> wrote in message
news:08df01c34c65$affdf590$(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments