Re: remote file access in .net app

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I assume \\servername is different to Server A, Server B, and Server C?

As a guess I would examine whether ASP.NET is running under the same user
account of each machine. On our Windows 2003 server I think ASP.NET runs
under the "NETWORK SERVICE" account and I'm not sure whether this can cross
network boundaries at all.

Secondly, you are using a network share \\servername\\foldername to access
the resource. What permissions have been assigned to the network share? I
have found this to be a common gotcha.

Kevin.

"Amie" <amiekweon@xxxxxxxxx> wrote in message
news:1141332269.673114.155730@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

My .NET application has a script that checks whether an image file on a
remote server exists using File.Exists.

From my localhost (Server A), I can access the image file via network
path (\\servername\foldername\image.jpg) or virtual directory
(../foldername/image.jpg) within my application.

When I moved the app to a test server (Server B), it still works fine.

However, when the same codebase is run on a pilot server (Server C), it
somehow returns false when File.Exists() is executed. Same target, same
code.

Server A, B, and C are all Windows 2003 and the remote server is
Windows 2000. The target directory has Everyone to have full
permission.

What factors can affect file access on a remote server? I tried playing
with IIS, file system, etc but couldn't figure out.

Let me know if any of you has any suggestion.

Thanks in advance!



.



Relevant Pages

  • RE: Printing from Win9x clients stops
    ... Open Server Management. ... then right-click the name of the computer running Windows Small Business ... >From the client computer: ... The Select Network Component Type ...
    (microsoft.public.windows.server.sbs)
  • RE: Printing from Win9x clients stops
    ... The printers with 9x drivers on the server appeared automatically in the ... > then right-click the name of the computer running Windows Small Business ... > From the client computer: ... The Select Network Component Type ...
    (microsoft.public.windows.server.sbs)
  • Re: random lockouts
    ... >> I've got a network with several Windows 2000 Servers and ... >> about 150 Windows 98 clients. ... >This problem occurs because the Windows 2000-based server ... >because the session that is reused is against a DFS ...
    (microsoft.public.win2000.security)
  • Questions Relating to Administering Windows 2000 Server
    ... installed the network client on the target computer. ... Sarah has been attempting to install Windows 2000 ... Server for two days. ... Sarah has checked the cables and hard drives. ...
    (microsoft.public.cert.exam.mcse)
  • Questions Relating to Administering Windows 2000 Server
    ... installed the network client on the target computer. ... Sarah has been attempting to install Windows 2000 ... Server for two days. ... Sarah has checked the cables and hard drives. ...
    (microsoft.public.cert.exam.mcse)