Click here to Skip to main content
15,902,112 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
General.NET remoting first call duration Pin
OliveP25-Jan-05 3:58
OliveP25-Jan-05 3:58 
Generalassigning another imagelist to listview Pin
serkanyilmaz25-Jan-05 3:25
serkanyilmaz25-Jan-05 3:25 
GeneralGoliath.NET Obfuscator Pin
Marcello Cantelmo24-Jan-05 11:08
Marcello Cantelmo24-Jan-05 11:08 
GeneralRe: Goliath.NET Obfuscator Pin
Robert Rohde28-Jan-05 19:53
Robert Rohde28-Jan-05 19:53 
GeneralRe: Goliath.NET Obfuscator Pin
Marcello Cantelmo28-Jan-05 22:40
Marcello Cantelmo28-Jan-05 22:40 
GeneralRe: Goliath.NET Obfuscator Pin
Robert Rohde29-Jan-05 1:14
Robert Rohde29-Jan-05 1:14 
GeneralRe: Goliath.NET Obfuscator Pin
Marcello Cantelmo29-Jan-05 2:07
Marcello Cantelmo29-Jan-05 2:07 
QuestionLinked config files...possible? Pin
Lane Willard24-Jan-05 5:25
Lane Willard24-Jan-05 5:25 
Spent most of the morning looking at how to link or include config files.

For example, lets say right now I have a database connection string in my web.config. I want to break it out into a different .config file that is referenced by the web.config, but the application/web-service itself is otherwise ignorant.

I want to know if there is a built in facility/syntax for this that I'm plain overlooking.

In my particular work environment, developers are technically not allowed production access, including knowledge of passwords.

We are also expected to have seamless installs.

Currently, after installing, we have to go and make multiple manual config entry changes in production, introducing the prospect of typos. This is not seamless.

What I would like to do is seperate all the configuration settings that are machine specific and have a low change frequency into a seperate config file, so that the average install can be ignorant of them while still being able to add entries to the main config file.

so, instead of web.config looking like this:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<!-- DEV SETTINGS -->
<add key="LookUpConnectionString" value="server=xxx;uid=xxx;pwd=xxx;database=xxx"/>
<!-- TEST SETTINGS -->
<!--<add key="LookUpConnectionString" value="server=yyy;uid=yyy;pwd=yyy;database=yyy"/>-->
</appSettings>
...
</configuration>

it looks something like:
<configuration>
<appSettings>
<import name="LookupConnection.config"/>
</appSettings>
...
</configuration>

with LookupConnection.config containing the DSN info.

Ideally, without having to make a lot of code changes, as I'm trying to streamline an installation process, not re-write the existing application.

Am I dreaming a pipe dream here?
AnswerRe: Linked config files...possible? Pin
Charlie Williams24-Jan-05 9:18
Charlie Williams24-Jan-05 9:18 
GeneralRe: Linked config files...possible? Pin
Lane Willard25-Jan-05 7:57
Lane Willard25-Jan-05 7:57 
GeneralMixing MFC70 and MFC71 in same process Pin
Malcolm Smart24-Jan-05 1:15
Malcolm Smart24-Jan-05 1:15 
GeneralChanging Cursor on Application Pin
23-Jan-05 5:37
suss23-Jan-05 5:37 
GeneralUsing a DLL (C++) in VS C# project Pin
saadiyah23-Jan-05 4:10
saadiyah23-Jan-05 4:10 
GeneralRe: Using a DLL (C++) in VS C# project Pin
bneacetp28-Jan-05 16:46
bneacetp28-Jan-05 16:46 
GeneralVS solution backup Pin
brian5522-Jan-05 3:26
brian5522-Jan-05 3:26 
GeneralRe: VS solution backup Pin
Charlie Williams24-Jan-05 9:20
Charlie Williams24-Jan-05 9:20 
GeneralRe: VS solution backup Pin
brian5524-Jan-05 9:30
brian5524-Jan-05 9:30 
GeneralRe: VS solution backup Pin
Charlie Williams24-Jan-05 10:07
Charlie Williams24-Jan-05 10:07 
GeneralRe: VS solution backup Pin
brian5524-Jan-05 16:08
brian5524-Jan-05 16:08 
GeneralRe: VS solution backup Pin
Charlie Williams25-Jan-05 6:43
Charlie Williams25-Jan-05 6:43 
QuestionHow I can save a RichTextBox.Rtf property as a simple html-page ? Pin
Member 76109421-Jan-05 0:54
Member 76109421-Jan-05 0:54 
Generalwindows taskbar Pin
peterzorbas20-Jan-05 10:14
peterzorbas20-Jan-05 10:14 
GeneralRe: windows taskbar Pin
bneacetp26-Jan-05 0:59
bneacetp26-Jan-05 0:59 
QuestionHow do i Know someone really knows .NET Pin
Roddy6620-Jan-05 7:33
Roddy6620-Jan-05 7:33 
AnswerRe: How do i Know someone really knows .NET Pin
Anonymous20-Jan-05 10:23
Anonymous20-Jan-05 10:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.