delphi windows服务无法从Internet下载文件 [英] delphi windows service can't download file from internet

查看:127
本文介绍了delphi windows服务无法从Internet下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用delphi编写的Windows服务,该服务将用于从我的网站下载一个文件,但它不能下载文件,它也不会抛出任何异常,我也改变了目的地路径和文件为下载但结果是一样的,我的防火墙也被关闭了,我的项目正好在另一台电脑,我测试它,在Windows应用程序我的功能也正常工作,那么应该是什么问题?
thx for ur time

解决方案

Normaly,under LocalSystem ,一个服务无法访问网络资源。
你说它与另一台电脑配合使用,我无法解释为什么。
你说它在另一个应用程序中工作,是的,因为应用程序是使用当前帐户执行的。



解决方案可能是执行网络服务帐户。
检查它是否修复了问题!


i have a windows service written in delphi,the service will use to downloading a file from my website but it can't download the file,it doesn't thrown any exception also i change the destination path and the file to be download but the result was same,my firewall was off too,my project work properly in another PC that i test on it and in windows application my function works properly too, so what should be the problem ? thx for ur time

解决方案

Normaly, under LocalSystem, a service can't access network resources. You said it works with another PC, I can't explain why. You said it works in another application, yes, because application is executed with current account.

The solution may be to execute the service under the Network Serviceaccount. Check it to see if it fixes the issue !

这篇关于delphi windows服务无法从Internet下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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