Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/04/2014, 09:46
louisdupointe
 
Fecha de Ingreso: septiembre-2013
Mensajes: 6
Antigüedad: 10 años, 8 meses
Puntos: 1
al ejecutar windows service con eventlog manda error 1053

Hola a todos.



Escribo nuevamente esperando que alguien me pueda ayudar, estoy creando un windows service y el unico codigo que tengo actualmente es para escribir en el log , esto con el siguiente codigo.





using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace LevantaProcesos
{
public partial class LevantaProcesos : ServiceBase
{
public LevantaProcesos()
{
InitializeComponent();
if (!System.Diagnostics.EventLog.SourceExists("MySour ce"))
{
System.Diagnostics.EventLog.CreateEventSource(
"LevantaProcesos", "Nuevo Que levanta procesos");
}
eventLog1.Source = "LevantaProcesos";
eventLog1.Log = "Nuevo Que levanta procesos";

}

protected override void OnStart(string[] args)
{
eventLog1.WriteEntry("In OnStart");
}

protected override void OnStop()
{
eventLog1.WriteEntry("In onStop");
}
}
}





Sin embargo, al ejecutarlo (despues de haberlo instalado), me da el error 1053 que dice:



Erro 1053:the service did not respond to the start or control request to timely fashion.





Alguien me puede ayudar diciendome como solucionar este error de favor, o si tengo algo mal en mi codigo.



De antemano, gracias