Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Denied Web Server to Remote Server on Network

Status
Not open for further replies.

jkb17

Programmer
Nov 27, 2000
156
US
Hello.

I'm working with ASP.NET 2.0 on Windows 2003 with IIS 6.0. I'm attempting to access a shared directory on a remote server (also, Win2k3 server) on the network.

I need to iterate through the files on the shared folder (I use System.IO.DirectoryInfo), create a copy of them and post them to a folder that is a sub-directory of the shared folder.

My application is failing on the read with "Access is denied."

I've added the web server as an allowed user to the share to no avail.

Does anyone have any other suggestions?

Thanks in advance

Jim
 
Hi,
By 'added the web server' do you mean that you added the account that IIS uses to communicate with other servers
( IUSR_machinename , I think) ?

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Sorry if I was not clear. I just added the computer itself to the permissions on the folder.

For example, right-click, security and when I clicked the Add... button, I clicked Object Types... and selected "Computers" check-box.

I enter the object name, "machinename," and once selected it appears as: domainname\machinename$ in the Security tab of the shared folder.

During my massive googling I remember reading an article that suggested this as an alternative so I tried that.

I did not add IUSR_machinename as its a local account to the web server and not accessible on domain users (at least to my knowledge it is not).

I am trying to allow that Network Service user from the web server access.
 
Does the account that runs the ASP.NET worker process have permissions to the share?

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Not NULL-terminated yet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top