简体   繁体   English

在Windows XP SP3上启动Windows服务时出现问题

[英]Problems with starting windows service on windows xp SP3

I'm currently facing a problem which I can not resolve and I really don't know what to do anymore. 我目前面临一个无法解决的问题,我真的不知道该怎么办。

When I'm trying to start the service I receive the message: "The service is started but again also stopped, this because that some of the services will stop if they have nothing to do, for example the performance logs and the alerts service". 当我尝试启动该服务时,收到消息:“该服务已启动,但又又停止了,因为某些服务若无所事事将停止,例如性能日志和警报服务” 。

I've looked into the Windows Logs but nothing is written there which could describe why my service is all the time stopping. 我已经查看了Windows日志,但是那里没有任何内容可以描述为什么我的服务一直都在停止。 I've also tried to fire the windows service via the command prompt which gives me the message: "The service is not started, but the service didn't return any faults.". 我还尝试通过命令提示符启动Windows服务,该消息提示我:“该服务未启动,但该服务未返回任何错误。”。

I've tried to remove all keys which references to my service, which didn't resolve the issue. 我试图删除所有引用了我的服务的键,但这些键仍无法解决问题。

I've searched on google (maybe not good enough) to find an answer but I didn't found any. 我已经在Google上搜索(可能不够好)以找到答案,但没有找到答案。 I did found some websites which describes what I could do, but all of these suggestions didn't work. 我确实找到了一些描述我可以做什么的网站,但是所有这些建议都行不通。

This is kinda * * because I do not know where to look. 这有点* *,因为我不知道在哪里看。 I do not have any error message, i do not have any id which i can use to search on. 我没有任何错误消息,我没有任何可用于搜索的ID。 I really don't know where to start and I hope you guys can help me on this one. 我真的不知道从哪里开始,希望你们能在这方面帮助我。

Detailed explanation about the windows service 关于Windows服务的详细说明

OS: Windows XP SP3 操作系统: Windows XP SP3

.Net Framework: .Net 4.0 Client Profile .Net Framework: .Net 4.0客户端配置文件

Language: C# 语言: C#

Development environment: Visual Studio 2010 Professional (but Visual Studio 2012 RC is installed) 开发环境: Visual Studio 2010专业版(但已安装Visual Studio 2012 RC)

Communications: WCF (Named Pipes), WCF (BasicHTTPBinding) 通信: WCF(命名管道),WCF(BasicHTTPBinding)

Named Pipes: 命名管道:

I have chosen for this solution because I wanted to communicate from a windows service to a windows form application. 我之所以选择此解决方案,是因为我想从Windows服务与Windows窗体应用程序进行通信。 It worked now for quite some time but suddenly my windows service shuts it self down and I couldn't restart it anymore. 它现在已经工作了一段时间,但是突然我的Windows服务自动将其关闭,因此我无法重新启动它。

There are two named pipes services implemented: An event service which will send any notification to the windows form application and an management service which gives my windows form application the possibility to maintain my windows service. 实现了两个命名管道服务:事件服务将向Windows窗体应用程序发送任何通知,管理服务使Windows窗体应用程序可以维护我的Windows服务。

BasicHTTPBinding: BasicHTTPBinding:

The basic http binding makes the connection to a central server. 基本的http绑定建立了到中央服务器的连接。 This connection is then used for streaming information from the client to the server. 然后,此连接用于将信息从客户端流传输到服务器。

I do not know which additional information you will need, but if you guys need something then I'll try to give it as detailed as possible. 我不知道您需要哪些其他信息,但是如果你们需要一些信息,那么我会尽量提供详细信息。

Thank you in advance. 先感谢您。

Ok, I have solved the issue and really it is a stupid one. 好的,我已经解决了这个问题,实际上这是一个愚蠢的问题。 Windows XP will not throw any error or does not report to you that the book where all logs are stored is full!!! Windows XP将不会引发任何错误,也不会向您报告存储所有日志的书已满!!! After cleaning the log my service started perfectly and keeps running. 清除日志后,我的服务可以完美启动并继续运行。 How stupid! 真蠢! :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows XP SP3上的wlanAPI - wlanAPI on Windows XP SP3 如何在Windows XP SP3中创建SFTP服务? - How to create SFTP service in Windows xp sp3? DllImport在Windows XP SP3上失败,但在Windows 7上工作 - DllImport fails on windows XP SP3 but works on windows 7 在C#中为Windows 7和Xp Sp3控制Windows防火墙 - Controlling Windows Firewall in C# for Windows 7 and Xp Sp3 JsonConvert.SerializeObject在Windows XP SP3中崩溃 - JsonConvert.SerializeObject is crashing in windows Xp sp3 如何使用 C# 或免费的 XP 工具卸载或删除 Windows XP Sp3 游戏? - How can I uninstall or delete Windows XP Sp3 Games using C# or free XP tools? 使用VS2012开发的Windows应用程序未在Windows XP SP3中运行 - Windows application developed using VS2012 is not running in windows XP SP3 Windows窗体在Windows Xp sp3上安装时询问.Net Framework 4.5 - Windows Form asking .Net framework 4.5 while installing on Windows Xp sp3 在Windows XP sp3上安装SQL Server 2008 Express会导致错误(.netframework 2) - Install SQL Server 2008 Express on Windows XP sp3 causes an error (.netframework 2) 带有.NET Framework 4.0的Windows XP SP3上的.NET Framework 3.0应用程序 - .NET Framework 3.0 App on Windows XP SP3 with .NET Framework 4.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM