通过Windows服务代理 [英] proxy through windows service

查看:92
本文介绍了通过Windows服务代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过Windows服务创建代理.代理是控制台应用程序.它工作正常,但我想用Windows服务启动代理.我安装了服务,但是当我开始服务时.我收到此消息:

启动本地计算机中的服务,然后终止.如果某些服务未被其他服务或程序使用,则会自动终止.

所以我尝试控制台应用程序.哪个服务使用它正确运行.

您知道哪里可能有问题吗?

Hi I trying create proxy through windows service. Proxy is console app. it´s work fine but I want use to start up proxy with windows service. I installed service but when I start service. I get this message :

Service in Local Computer started and then was terminated. Some services are terminated automatically if not used by other services or programs.

so I try console app. which service using it´run correct.

Do you know where can be problem ?

推荐答案

为什么不先尝试构建Windows服务,然后将现有代码合并到该服务.我在这里找到了一个很好的链接:在C#中创建基本Windows服务 [ ^ ]
Why don''t you try first building a Windows service, and then merging your existing code to the service. I found a good link here: Creating a Basic Windows Service in C#[^]


这篇关于通过Windows服务代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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