如何安装Windows服务开发的.NET 3.5? [英] How to install a Windows service developed in .NET 3.5?

查看:168
本文介绍了如何安装Windows服务开发的.NET 3.5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发使用Visual Studio 2008。我想安装该服务在未安装Visual Studio的一台机器一个Windows服务,但.NET 3.5的安装。

I have developed a Windows service using Visual Studio 2008. I want to install that service in a machine where Visual Studio is not installed, but .NET 3.5 is installed.

通常InstallUtil.exe将用于安装Windows服务,但InstallUtil.exe实用程序不是在.NET 3.5可用。当我试图安装使用.NET 2.0的服务,该服务是越来越显示在服务列表中,但启动时的服务Windows服务错误1053年即将到来。我们怎样才能避免这个问题,并成功安装服务?

Generally InstallUtil.exe shall be used for installing a Windows Service, but the InstallUtil.exe utility is not available in .NET 3.5. When I tried installing that service using .NET 2.0, the service is getting displayed in the list of services but when starting the service Windows Service error 1053 is coming. How we can avoid this problem and successfully install the service?

推荐答案

有一个微软KB的这个对于.NET 2.0和VS2005。具体操作过程完全在.net 3.5和VS2008一样的。

There's a Microsoft KB on this for .Net 2.0 and VS2005. The procedure is exactly the same in .Net 3.5 and VS2008.

http://support.microsoft.com/kb/317421

和这里的有图片,使之更清楚一个更好的文章。 (有时KB的并不友好的教程,你可以在其他地方找到。)

And here's a nicer article with pictures to make it clearer. (Sometimes the KB's aren't as friendly as tutorials you can find elsewhere.)

<一个href="http://aspalliance.com/1316%5FWorking%5Fwith%5FWindows%5FService%5FUsing%5FVisual%5FStudio%5F2005.3" rel="nofollow">http://aspalliance.com/1316_Working_with_Windows_Service_Using_Visual_Studio_2005.3

这篇关于如何安装Windows服务开发的.NET 3.5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆