运行需要网络访问的服务 [英] Running a service that needs net access
问题描述
你好,
我必须使用小型应用程序,服务器和客户端应用程序.
他们正在使用MSMQ队列进行通信.
两者都在处理文件,服务器使用FileWatcher查找文件,
将完整的文件名发送到客户端,客户端将转换为新格式.
两者都在同一个网络中,但不在同一个域中.他们可以使用ip彼此ping通.
问题:
现在,我必须为每个应用程序制作一个Windows服务.
与MSQM的通信仍然可以正常工作,但是现在无论是使用ip还是使用网络映射的驱动器,网络访问都不再起作用.
目前,它是一个本地服务,它使用专用队列.
任何的想法?我可以通过某种方式获得通过网络文件访问运行的本地服务吗?
它正在作为应用程序运行,因为它是一项服务,所以它不会...
非常感谢,
Eric
Hello,
I am having to small Applications, a server and a client application.
They are communicating using MSMQ Queues.
Both are working with files, the server uses a filewatcher to find files,
sending the complete filename to the client which does a conversion to a new format.
Both are in the same network but not domain. they can ping each other with the ip.
The Problem:
Now I have to make a windows service of each application.
Communication with MSQM is still working well, but now the network access is not working anymore, neither with ip or a network-mapped drive.
It is a local service at the moment, and it uses private queues.
Any idea? Can I get a local service running with network file access somehow?
It was working as application, since it is a service it does not...
Thanks a lot,
Eric
推荐答案
以有权访问您所需的专用队列的用户身份运行服务(从本地服务用户更改).
Run your service as a user (change from local service user) that has access to the private queues you need.
这篇关于运行需要网络访问的服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!