I'm having a very difficult time. I am running windows 2008 server, I have an Able Commerce site using ASP.NET with C#. I'm writing an automated task that will ftp some xml files down into a local directory on our web server and then the program parses the xml file and saves information to our database. The problem, once I save the files to our local directory, my program has no access to the files. The NETWORK SERVICE user permissions isn't being inherited by the xml files so my program can't do anything with them. I can manually change the permissions, but this wouldn't be automated and won't work. How can I get this to work? help please, it's very frustrating.
我有一段非常艰难的时期。我正在运行Windows 2008服务器,我有一个使用ASP.NET和C#的Able Commerce站点。我正在编写一个自动化任务,将一些xml文件下载到我们Web服务器上的本地目录中,然后程序解析xml文件并将信息保存到我们的数据库中。问题是,一旦我将文件保存到本地目录,我的程序就无法访问这些文件。 xml文件不会继承NETWORK SERVICE用户权限,因此我的程序无法对它们执行任何操作。我可以手动更改权限,但这不会自动化,也无法正常工作。我怎样才能让它发挥作用?请帮助,这非常令人沮丧。
1 个解决方案
#1
Cant you use Windows impersonationand open the XML file?
你不能使用Windows模拟并打开XML文件吗?