|
Using config file to customize windows app -- keys4worship --
I need to house some custom data when I deploy a windows app. My region is developing an application that will ultimately be shared with other regions. Each region will have unique entries dealing with email recipients,filepaths,etc. What is the best way to allow each regional programmer access to make these changes during deployment. |
|
-- BradleyPeter --
Seems to me that AppSettings should do the trick. Do you have a problem with that? E.g. is some of the information confidential? Peter -----Original Message----- From: DotNetDevelopment on behalf of keys4worship Sent: Sun 7/16/2006 1:58 AM To: DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting Cc: Subject: Using config file to customize windows app I need to house some custom data when I deploy a windows app. My region is developing an application that will ultimately be shared with other regions. Each region will have unique entries dealing with email recipients,filepaths,etc. What is the best way to allow each regional programmer access to make these changes during deployment. |
|
-- keys4worship --
No. As a matter of fact I have used the App.config xml file in the past. The programmer in the other reigion has edited it directly. I was hoping for a form available only to the programmer that would contain textboxes used to write to the App.config file. I have read here and other places that writing to the config file was a mistake. Did I misunderstand this? |
|
-- BradleyPeter --
Oh right! Well, you can build that yourself. If you do, it would probably be best to have a custom XML file. It's not a great deal more trouble to deal with a custom file than to use the App.config file. I'd be tempted to do a simple Web (ASP.NET) page for it. Your only problem is security. You'd have to either have to ship a database with all the right entries in it, or arrange for that to be done on site - say via ldap or something. Not very tidy. Another strategy would be to supply the Web page/Form to the programmers on the understanding it would only be deployed temporarily - but that's putting a level of trust in other people that's probably not very wise. Hmmm ... I've talked myself into giving them instructions and getting them to do it themselves. :) Peter -----Original Message----- From: DotNetDevelopment Re: Using config file to customize windows app No. As a matter of fact I have used the App.config xml file in the past. The programmer in the other reigion has edited it directly. I was hoping for a form available only to the programmer that would contain textboxes used to write to the App.config file. I have read here and other places that writing to the config file was a mistake. Did I misunderstand this? |
|
-- Cerebrus --
Don't know if I've understood the question correctly, but how about a binary file, that cannot be edited directly, but all your settings can be serialized to it ? |
|
-- Tito --
You could also encrypt the file so that it is not readable. |