delphi windows服务无法从Internet下载文件 [英] delphi windows service can't download file from internet
问题描述
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 Service
account.
Check it to see if it fixes the issue !
这篇关于delphi windows服务无法从Internet下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!