Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > asp.net security > october 2004 >

asp.net security : Access remote folder files in the network



Rajesh
10/27/2004 5:07:02 AM
In my ASP.NET application, all the images files are stored on a machine other
than my web-server. In a webform i am accessing the image files stored in
that folder in the remote machine. Folder path is configurable in the
web.config file. The webserver and the folder machine in the same network.
I am not able to access that foler. What is the shortest way to do this. So
Prodip Saha
10/28/2004 9:02:46 AM
Rajesh,
The easiest way to solve this problem is -Mirrored Account.

If you are using ASPNET (local on web server) account to run the ASP.NET
application, create another ASPNET(local on file server) account on the
file/remote server with strong password. You must change the password to run
the ASP.NET on web server in the machine.config (<ProcessModel> element) to
macth the paswords.

You can get additional details at -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT01.asp

This was a perfect solution for me since my file server and the web server
are located on two different domains. Hope this helps.

Prodip K. Saha
Programmer Analyst
EMC Mortgage Corporation

[quoted text, click to view]

Patrick Olurotimi Ige
12/28/2004 3:40:21 PM
Rajesh when u say ur not able to access the FOLDER what do you mean..!
Is it giving an error..or ur denied access..
Patrick



*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button