Click here to Skip to main content
15,915,867 members
Home / Discussions / C#
   

C#

 
GeneralRe: What is this Control's name? Pin
freshonlineMax1-May-07 19:35
freshonlineMax1-May-07 19:35 
GeneralRe: What is this Control's name? Pin
sharmit2-May-07 16:33
sharmit2-May-07 16:33 
QuestionGetting the bin directory location for a service??!! Pin
LongRange.Shooter1-May-07 11:54
LongRange.Shooter1-May-07 11:54 
AnswerRe: Getting the bin directory location for a service??!! Pin
PIEBALDconsult1-May-07 18:01
mvePIEBALDconsult1-May-07 18:01 
GeneralRe: Getting the bin directory location for a service??!! Pin
LongRange.Shooter2-May-07 5:30
LongRange.Shooter2-May-07 5:30 
GeneralRe: Getting the bin directory location for a service??!! [modified] Pin
PIEBALDconsult2-May-07 13:35
mvePIEBALDconsult2-May-07 13:35 
GeneralRe: Getting the bin directory location for a service??!! Pin
PIEBALDconsult2-May-07 15:02
mvePIEBALDconsult2-May-07 15:02 
GeneralRe: Getting the bin directory location for a service??!! Pin
LongRange.Shooter10-May-07 10:22
LongRange.Shooter10-May-07 10:22 
FYI - I was half asleep while doing all this posting on the service. You kept asking how the ExecutablePath could return null and you are correct it did not return null. Per my original post that is the one call that returned a value: C:\Windows\System32

Obviously that was not useable. Smile | :) The reason I do not get the base folder is because I'm being called by the operating system in my OnStart and OnClose events. The AppDomain finally gave me the correct path since that tracks the base path of the current application domain regardless of the calling application domain.

I believe you asked about why do it in the events in one of your questions. I am managing WCF ServerHost entities which have to be started at OnStart and closed correctly at OnClose or OnShutdown. So I hope this clears all of your confusion regarding what I was experiencing vs. what you experienced.
AnswerRe: Getting the bin directory location for a service??!! Pin
justintimberlake1-May-07 18:01
justintimberlake1-May-07 18:01 
AnswerRe: Getting the bin directory location for a service??!! Pin
PIEBALDconsult2-May-07 15:10
mvePIEBALDconsult2-May-07 15:10 
GeneralRe: Getting the bin directory location for a service??!! Pin
LongRange.Shooter2-May-07 5:21
LongRange.Shooter2-May-07 5:21 
GeneralRe: Getting the bin directory location for a service??!! Pin
justintimberlake2-May-07 18:57
justintimberlake2-May-07 18:57 
GeneralRe: Getting the bin directory location for a service??!! Pin
LongRange.Shooter2-May-07 5:30
LongRange.Shooter2-May-07 5:30 
GeneralRe: Getting the bin directory location for a service??!! Pin
justintimberlake2-May-07 19:05
justintimberlake2-May-07 19:05 
AnswerThe only thing that works with a service in the 2.0 framework Pin
LongRange.Shooter3-May-07 1:43
LongRange.Shooter3-May-07 1:43 
AnswerRe: Getting the bin directory location for a service??!! Pin
PIEBALDconsult3-May-07 15:31
mvePIEBALDconsult3-May-07 15:31 
GeneralRe: Getting the bin directory location for a service??!! Pin
LongRange.Shooter4-May-07 3:01
LongRange.Shooter4-May-07 3:01 
GeneralRe: Getting the bin directory location for a service??!! Pin
PIEBALDconsult4-May-07 16:47
mvePIEBALDconsult4-May-07 16:47 
GeneralRe: Getting the bin directory location for a service??!! Pin
PIEBALDconsult6-May-07 14:14
mvePIEBALDconsult6-May-07 14:14 
QuestionThread creation using reflection for the target? Pin
LongRange.Shooter1-May-07 9:55
LongRange.Shooter1-May-07 9:55 
AnswerRe: Thread creation using reflection for the target? Pin
Ian Shlasko1-May-07 10:21
Ian Shlasko1-May-07 10:21 
GeneralRe: Thread creation using reflection for the target? Pin
LongRange.Shooter1-May-07 10:58
LongRange.Shooter1-May-07 10:58 
AnswerRe: Thread creation using reflection for the target? Pin
PIEBALDconsult1-May-07 18:26
mvePIEBALDconsult1-May-07 18:26 
QuestionC# Remote Window Hooks Pin
Bourtree1-May-07 9:40
Bourtree1-May-07 9:40 
AnswerRe: C# Remote Window Hooks Pin
LongRange.Shooter1-May-07 11:58
LongRange.Shooter1-May-07 11:58 

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.