You have private
parameter less constructor which is not accessible outside the class. Make the construct public
so that it could be accessed outside the class for constructing objects of WizardService
.
public WizardService()
{
eventLog = new EventLog("EktronWizardServiceLog", "localhost", "EktronWizardService");
}
Access Modifiers (C# Programming Guide)
public The type or member can be accessed by any other code in the same assembly or another assembly that references it.
private The type or member can be accessed only by code in the same class or struct.
protected The type or member can be accessed only by code in the same class or struct, or in a class that is derived from that class.
internal The type or member can be accessed by any code in the same assembly, but not from another assembly.
You can read more about access modifiers here.