Click here to Skip to main content
15,920,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Oracle Stored Procedure Pin
Paul Conrad11-Jan-08 18:43
professionalPaul Conrad11-Jan-08 18:43 
Question[Message Deleted] Pin
spieljung11-Jan-08 15:04
spieljung11-Jan-08 15:04 
GeneralRe: Changing TextBox Text from another class Pin
Paul Conrad11-Jan-08 18:44
professionalPaul Conrad11-Jan-08 18:44 
GeneralSetting up the project Pin
xbiplav11-Jan-08 10:54
xbiplav11-Jan-08 10:54 
GeneralAnother cross-post Pin
Dave Kreskowiak11-Jan-08 12:28
mveDave Kreskowiak11-Jan-08 12:28 
General[Message Deleted] Pin
cknight72511-Jan-08 10:43
cknight72511-Jan-08 10:43 
GeneralCross post Pin
pmarfleet11-Jan-08 11:21
pmarfleet11-Jan-08 11:21 
GeneralReading from app.config in a Service Installer class Pin
mikemichi11-Jan-08 8:44
mikemichi11-Jan-08 8:44 
Hi!

I created a new Windows Service in C# and want to set a Service Dependency.

Did it like this:

ServiceInstaller si = new ServiceInstaller();<br />
si.ServicesDependedOn = new string[] { "DependingOnThisService" };<br />
this.Installers.Add(si);<br />

Everything works fine. My Problem right now is, that I want to set this Dependency only in fact of a special "flag" in the app.config - file.

But I am not able to read from the app.config - file in the ( from System.Configuration.Install.Installer inherited) class.

I neither get an exception nor a result from the config - file (always get an empty string).

So is there a possibility to read from the app.config in this class or, if not, what is the best alternative to do this?

Hope anybody can help me!

tia
Generaljavascript Pin
simworld11-Jan-08 8:06
simworld11-Jan-08 8:06 
GeneralRe: javascript Pin
DaveyM6911-Jan-08 8:14
professionalDaveyM6911-Jan-08 8:14 
GeneralRe: javascript Pin
simworld11-Jan-08 8:29
simworld11-Jan-08 8:29 
GeneralTextBox Event Not Triggering Pin
Fred Szoldatits11-Jan-08 7:43
Fred Szoldatits11-Jan-08 7:43 
GeneralRe: TextBox Event Not Triggering Pin
DaveyM6911-Jan-08 8:19
professionalDaveyM6911-Jan-08 8:19 
GeneralRe: TextBox Event Not Triggering Pin
Thomas Stockwell11-Jan-08 14:51
professionalThomas Stockwell11-Jan-08 14:51 
Questionnamespace 'Windows' does not exist Pin
Steve Harp11-Jan-08 6:03
Steve Harp11-Jan-08 6:03 
GeneralRe: namespace 'Windows' does not exist Pin
Luc Pattyn11-Jan-08 6:08
sitebuilderLuc Pattyn11-Jan-08 6:08 
AnswerRe: namespace 'Windows' does not exist Pin
Steve Harp11-Jan-08 6:29
Steve Harp11-Jan-08 6:29 
GeneralRe: namespace 'Windows' does not exist Pin
Luc Pattyn11-Jan-08 6:34
sitebuilderLuc Pattyn11-Jan-08 6:34 
GeneralRe: namespace 'Windows' does not exist Pin
Steve Harp11-Jan-08 7:00
Steve Harp11-Jan-08 7:00 
GeneralProblem to DataTable.Rows.Remove(DataRow row) method. Pin
hdv21211-Jan-08 4:02
hdv21211-Jan-08 4:02 
GeneralRe: Problem to DataTable.Rows.Remove(DataRow row) method. Pin
Dave Kreskowiak11-Jan-08 4:34
mveDave Kreskowiak11-Jan-08 4:34 
GeneralRe: Problem to DataTable.Rows.Remove(DataRow row) method. Pin
hdv21211-Jan-08 5:38
hdv21211-Jan-08 5:38 
GeneralIdentify record in Global Catalog Pin
robot_rock11-Jan-08 3:33
robot_rock11-Jan-08 3:33 
GeneralRe: Identify record in GC Pin
Justin Perez11-Jan-08 4:15
Justin Perez11-Jan-08 4:15 
GeneralRe: Identify record in GC Pin
robot_rock11-Jan-08 4:28
robot_rock11-Jan-08 4:28 

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.