Hi all,
Iam getting this errormessage when i called this function.
This function is for to log the error message.
Generic.EventLo gManager' does not contain a definition for 'Installers' D:\TravelSoln\A pp_Code\Generic \EventLog.cs
Iam having this namespace
Please help me to overcome this problem.
Iam getting this errormessage when i called this function.
This function is for to log the error message.
Generic.EventLo gManager' does not contain a definition for 'Installers' D:\TravelSoln\A pp_Code\Generic \EventLog.cs
Iam having this namespace
Code:
using System.Configuration.Install; using System.Diagnostics; using System.ComponentModel; public class EventLogManager { private EventLogInstaller myEventLogInstaller; public void MyEventLogInstaller() { // Create an instance of 'EventLogInstaller'. myEventLogInstaller = new EventLogInstaller(); // Set the 'Source' of the event log, to be created. myEventLogInstaller.Source = "MyNewLog"; // Set the 'Log' that the source is created in. myEventLogInstaller.Log = "MyNewLog"; // Add myEventLogInstaller to 'InstallerCollection'. this.Installers.Add(myEventLogInstaller); } }
Comment