问题描述
在花了无数个小时尝试之后,我放弃并希望得到一些帮助在这里。
在server1上我得到了网络myweb.com用我的test.asp。在test.asp中,我是
尝试使用FSO从UNC路径读取文件:
设置myFile =
的Server.CreateObject(QUOT; Scripting.FileSystemObject的")。 GetFile(" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\这笔交易:
- server1& server2是域的成员
- iis6与asp(不是.net)一起使用
- myweb.com在域用户的上下文中运行(我的管理员帐户甚至,对于
测试目的)
- unc共享拥有对每个人的完全权利
- server2上的文件权限设置为完全权限每个人
- 我可以在test.vbs
中使用相同的代码*成功读取文件* - 如果我使用&b设置虚拟文件夹到unc路径连接为在
iis6中,我可以使用我的webbrowser浏览远程文件 - 但是asp代码
仍然失败。
这个让我发疯我找到的所有howtos,帖子和页面告诉我运行
网站作为域用户拥有足够的权利 - 这就是我正在做的事情,
但是它只是不工作!
非常感谢任何帮助!
- 托马斯
你发布了很多详细信息,但你遗漏了最重要的一个 -
正是失败的确切含义并且不会工作是什么意思?
Jeff
after spending countless hours trying, i give up and hope to get some help
in here.
on server1 i got the web myweb.com with my test.asp. in the test.asp, i''m
trying to read a file from an UNC path with a FSO:
Set myFile =
Server.CreateObject("Scripting.FileSystemObject"). GetFile("\\server2\myshare\myfile.txt")
this fails with an Permission Denied.
here''s the deal:
- server1 & server2 are members of a domain
- iis6 is used with asp (not .net)
- myweb.com runs in the context of a domain user (my admin account even, for
testing purposes)
- the unc share has full rights to Everyone
- the file permissions on server2 are set to full rights to Everyone
- i can successfully read the file *with the same code* in a test.vbs
- if i set up a virtual folder to the unc path using "connect as" within the
iis6, i can browse the remote files with my webbrowser - but the asp code
still fails.
this is driving me crazy. all howtos, posts and pages i found tell me to run
the web as a domain user with sufficient rights -- this is what i''m doing,
but it just won''t work!
any help is greatly appreciated!
- thomas
You post lots of details, but you left out the most important one --
Just exactly what does "fails" and "won''t work" mean?
Jeff
这篇关于IIS6& ASP:使用FSO访问网络文件失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!