Click here to Skip to main content
15,888,279 members
Home / Discussions / C#
   

C#

 
GeneralRe: Connection String in Properties.Settings Pin
PIEBALDconsult29-Dec-12 7:43
mvePIEBALDconsult29-Dec-12 7:43 
GeneralRe: Connection String in Properties.Settings Pin
SledgeHammer0129-Dec-12 7:47
SledgeHammer0129-Dec-12 7:47 
GeneralRe: Connection String in Properties.Settings Pin
PIEBALDconsult29-Dec-12 7:51
mvePIEBALDconsult29-Dec-12 7:51 
GeneralRe: Connection String in Properties.Settings Pin
SledgeHammer0129-Dec-12 7:56
SledgeHammer0129-Dec-12 7:56 
GeneralRe: Connection String in Properties.Settings Pin
jschell30-Dec-12 8:33
jschell30-Dec-12 8:33 
GeneralRe: Connection String in Properties.Settings Pin
SledgeHammer0130-Dec-12 8:56
SledgeHammer0130-Dec-12 8:56 
GeneralRe: Connection String in Properties.Settings Pin
jschell31-Dec-12 9:00
jschell31-Dec-12 9:00 
GeneralRe: Connection String in Properties.Settings Pin
SledgeHammer0131-Dec-12 10:11
SledgeHammer0131-Dec-12 10:11 
jschell wrote:
No idea what kind of "end users" you have but my end users are Operations and
Support personnel. And they are specifically the people that need to edit the
configuration values.


Same kind. I've noticed they are often too retarded to manually edit config files, so I usually provide an easy to use GUI for them (or at the very least, send them a whole new config file they just replace the old one with). For applications that go out to end users, asking an end user to change a config file is asking for trouble. Your GUI should do all that.

I know where you're going next... web.configs, web services, etc. don't have GUIs. Well, for a production application, I usually have an admin app or admin portal that controls the system. Much better design.

Also, if you want a simple generic thing, you could do what I did. Have a simple property grid dialog that edits any config file generically and can pull in "documentation" either from an xml file or reflection.

jschell wrote:
XML can be unordered or ordered.


Entirely incorrect. The XML spec says specifically that attributes and siblings are unordered and can be returned in any order the parser wants. It just so happens that every parser returns siblings and attributes in document order, but that is NOT guaranteed. If you are relying on something that the XML spec says specifically is not guaranteed, I'd hate to be you when your ops team deploys "XML v17" which has some awesome performance optimization, but no longer returns in doc order and breaks all your stuff.

The proper way to do ordering in an XML file is by using a key.

I will admit however, that it's unlikely that a parser will start returning stuff in non document order, simply because some apps rely on that incorrectly.

jschell wrote:
The order however does matter when Operations/Support uses standard
difference tools to compare configuration files. Such as what they might do
when they need to install a new major version or point release and they want to
insure production machines have the same values with a new configuration file
and the old one.


What does this have to do with anything? .NET has this cool versioning thing that automagically updates your config files for you and adds in any missing attributes. Yes, I'll admit that the missing attributes may be added in a different order depending on code path (**UNLESS** you do it correctly -- in which case, the attributes will always be added in the same order).

Is that why you rolled your own .config file system? Simply so your ops team can run windiff on the files to make sure they are identical?

Seems like a proper implementation of upgrading the config files would be a better solution then re-inventing everything and having a non standard API, but thats just me.
GeneralRe: Connection String in Properties.Settings Pin
jschell1-Jan-13 6:58
jschell1-Jan-13 6:58 
AnswerRe: Connection String in Properties.Settings Pin
PIEBALDconsult28-Dec-12 14:32
mvePIEBALDconsult28-Dec-12 14:32 
GeneralRe: Connection String in Properties.Settings Pin
TheJudeDude28-Dec-12 15:47
TheJudeDude28-Dec-12 15:47 
Questionbasic question close and collapse methods Pin
mhd.sbt28-Dec-12 3:22
mhd.sbt28-Dec-12 3:22 
AnswerRe: basic question close and collapse methods Pin
fjdiewornncalwe28-Dec-12 3:29
professionalfjdiewornncalwe28-Dec-12 3:29 
GeneralRe: basic question close and collapse methods Pin
mhd.sbt28-Dec-12 3:42
mhd.sbt28-Dec-12 3:42 
AnswerRe: basic question close and collapse methods Pin
PIEBALDconsult28-Dec-12 3:33
mvePIEBALDconsult28-Dec-12 3:33 
Questionset the parent form size according to child form in mdi form Pin
Arun kumar Gautam28-Dec-12 1:12
Arun kumar Gautam28-Dec-12 1:12 
AnswerRe: set the parent form size according to child form in mdi form Pin
Matt U.28-Dec-12 4:16
Matt U.28-Dec-12 4:16 
AnswerRe: set the parent form size according to child form in mdi form Pin
Eddy Vluggen28-Dec-12 9:04
professionalEddy Vluggen28-Dec-12 9:04 
QuestionSelected rows in a gridview Pin
rakeshs31227-Dec-12 19:26
rakeshs31227-Dec-12 19:26 
AnswerRe: Selected rows in a gridview Pin
vanikanc28-Dec-12 6:48
vanikanc28-Dec-12 6:48 
GeneralRe: Selected rows in a gridview Pin
rakeshs31228-Dec-12 18:48
rakeshs31228-Dec-12 18:48 
AnswerRe: Selected rows in a gridview Pin
Abhinav S28-Dec-12 23:39
Abhinav S28-Dec-12 23:39 
QuestionSliding an Image on another Image Pin
Shubhanshu Pathak27-Dec-12 18:09
Shubhanshu Pathak27-Dec-12 18:09 
QuestionSerial Port Won't Send While Receiving Pin
C-P-User-327-Dec-12 15:13
C-P-User-327-Dec-12 15:13 
AnswerRe: Serial Port Won't Send While Receiving Pin
Richard MacCutchan27-Dec-12 21:45
mveRichard MacCutchan27-Dec-12 21:45 

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.