Read/Write/Modify actions needed on a remote server.



Hello,

I do not have much expertise in the security area, especially when it
comes to Windows Authentication.

We have a Win 2003 server that runs the ASP.NET 2.0 Web application.

I have a simple page that needs to access the directory info on a
remote server and if the directory does not exist then create the
directory.

Here is a snippet of the code I am trying to exectute:
string serverPath =
@"\\RemoteServer\webimages\8f3d7375-05e9-435d-b284-3d0a9179681c";
DirectoryInfo di = new DirectoryInfo(serverPath);
if (!di.Exists)
di.Create();

imagefiles = di.GetFiles();

The problem is the DirectoryInfo object always has false for the Exists
property.

Here is the exception I get when it tries to create the directory:
Method Name: WinIOError
Declaring Type: System.IO.__Error
Message:
Could not find file
'\\RemoteServer\webimages\8f3d7375-05e9-435d-b284-3d0a9179681c'.

Ops told me that they gave the ASP.NET user full control to the
webimages directory. The remote machine is on the same domain and is a
Win 2003 server.

What we have is an image server that sits on the same domain as the web
server. We want to give our users the ability to upload images to that
server and manage their images.

Can anyone please give me some resources to read up on when it comes to
this? Or just let me know what the best practice is when it comes to
working file and directory objects on remote machines?

Thanks,
Chris

.



Relevant Pages

  • Re: How to; Click on pic to bring up a larger photo and a caption
    ... to run the graphic compression feature on all the images. ... Create a folder on your host server called "biography". ... photo with a biography will appear about that person under the photo. ... some way to get back to the page with the other fallen comrades. ...
    (microsoft.public.publisher.webdesign)
  • Re: How to; Click on pic to bring up a larger photo and a caption
    ... I suspect you have, but if not, be sure to run the graphic compression feature on all the images. ... Create a folder on your host server called "biography". ... photo with a biography will appear about that person under the photo. ... some way to get back to the page with the other fallen comrades. ...
    (microsoft.public.publisher.webdesign)
  • Re: How to; Click on pic to bring up a larger photo and a caption
    ... the graphic compression feature on all the images. ... Create a folder on your host server called "biography". ... photo with a biography will appear about that person under the photo. ...
    (microsoft.public.publisher.webdesign)
  • Re: RIS failure
    ... > I'm trying to set up RIS at first time. ... > Check of server succeds. ... >> from seeing custom images ("Choice Options" of Remote Installation>> Services ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: How resource-intensive are these?
    ... > stringing together 8 smaller images. ... > month, because another little script of mine, BattleFishies ... > everything will come crashing down, with smoke coming out of the server ... requests in 1 second for example. ...
    (alt.php)