Re: remote file access in .net app
- From: "Kevin Frey" <kevin_g_frey@xxxxxxxxxxx>
- Date: Fri, 3 Mar 2006 09:29:04 +1100
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.
path (\\servername\foldername\image.jpg) or virtual directoryFrom my localhost (Server A), I can access the image file via network
(../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!
.
- Follow-Ups:
- Re: remote file access in .net app
- From: Amie
- Re: remote file access in .net app
- References:
- remote file access in .net app
- From: Amie
- remote file access in .net app
- Prev by Date: Capture FormView Cancel Event
- Next by Date: 0x800C0008 The download of the specified resource has failed.
- Previous by thread: remote file access in .net app
- Next by thread: Re: remote file access in .net app
- Index(es):
Relevant Pages
|