有关Windows服务
我做一个Windows服务的程序,最后生成的时候会产生一个调用目标发生异常的错误,不知什么原因,劳驾各位了
using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
namespace WindowsService2
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new Service1()
};
ServiceBase.Run(ServicesToRun);------------调用的目标发生了异常。 为什么啊,谢谢各位大侠!!!!!急!!!!
}
}
}