public AliveControlService() { InitializeComponent(); string path = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); RegMan.SetProgramBase("AliveControl"); LogMan.LogDirectory = path.Replace("file:\\", ""); LogMan.StartLogging(LogMan.LogDirectory, "AliveControl"); LogMan.AddLog("HUEAHOEIUHAEOIU"); RegMan.Write("Path", path.Replace("file:\\", "")); LogMan.debugmode = true; }