ASP.Net, Access to the path is denied from remote, works from local
Posted on 2009-04-21
I am trying to find out why an ASP.net program works when accessed from the same machine that has the web server, but fails when accessed from another machine in the local network.
I have an ASP.net program that puts a list of files into a list box. The files are in a network directory that resides on a 3rd machine, accessed via \\mach3\myDir\... I logon into machine A (where the web browser resides) and bring up the web page. All of the files are in the list box. I logon to machine B and bring up the web page, I get an error (see above). What is IIS doing differently to tasks that originate from the local machine and tasks that originate from another machine? Some other info:
- The security type is integrated windows, no annomyous user
- In the web.config file, I put the line <identity impersonate="true" />
- the windows user (MikeB) has full authority to the folder containing the files I am trying to access
- On the network share, I granted Network Service full authority to the folder containing the files I am trying to access