服务起不来 求大神看看 服务程序的OnStart丢出异常,或者它没有启动可以保持服务运行的工作线程。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 class Program { static string[] _Printers;//所有打印机 private static System.Timers.Timer m_Timer; //监视进程 //-i /i 安装服务 //-u /u 卸载服务 static void Main(string[] args) { //if (args.Length > 0) //{ // if (args[0].Contains("i")) // { // Execute("sc create MPS2_LoginDaemon binPath= LoginDaemon.exe start= auto", 10); // return; // } // if (args[0].Contains("u")) // { // Execute("sc delete MPS2_LoginDaemon ", 10); // return; // } //} while (true) { Thread.Sleep(1000); } }我已经简化成这样了。。 你是不是服务陷入死锁了,看你那简化程序就完全没有退出的出口啊,while(true),这个条件一直为真。 关于C#中,数据库数据的删除操作 正则问题.....请赐教. 请问客户端如何知道服务器端表数据的变化? 请教用c#写个程序把excel中的数据导入到sql server,用什么方法比较快? 感受到C#的局限,使用指针构造链表几乎不可能!!!!! C#与命名管道 C#十六进制转 关于treeview 和xml的问题 急急,谁能帮我解决一个C#中DATAGIRD的问题 Timer为何不能用? adapter.update奇怪的问题 连接ORACLE取数‘算术运算导致溢出’
{ static string[] _Printers;//所有打印机
private static System.Timers.Timer m_Timer; //监视进程
//-i /i 安装服务
//-u /u 卸载服务
static void Main(string[] args)
{
//if (args.Length > 0)
//{
// if (args[0].Contains("i"))
// {
// Execute("sc create MPS2_LoginDaemon binPath= LoginDaemon.exe start= auto", 10);
// return;
// }
// if (args[0].Contains("u"))
// {
// Execute("sc delete MPS2_LoginDaemon ", 10);
// return;
// }
//}
while (true)
{
Thread.Sleep(1000); } }我已经简化成这样了。。