Using UNC to access a file from IIS
Posted on 1998-09-09
I am writing an ASP application. In my global.asa, I create an ActiveX control (that I developed) using:
RUNAT=SERVER SCOPE=Session ID=MyObject PROGID="MyObject.MyInterface">
The object tries to access a file on the server.
If the file is referenced using the local path
(like: c:\my documents\myfile.txt), then the file can
be properly accessed.
When I try to access the file using the UNC name
(like \\myserver\c\my documents\myfile.txt), then
the file cannot be seen.
I have the feeling that this has to do with permissions
on my NT server. I know that when using IIS 3.0, the server
is accessed via the IUSR_MACHINE_NAME account. I have made sure that this account has the same password under IIS and under NT server. I also made sure that this user has the right privileges to this directory.
However, the fact that using the local path works seems to indicate that permissions on that path are not the problem.