473,395 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

remote file access fails

Context:
Running Windows 2003 Server on an intranet.

A web is configured with an anonymous access account that is a domain account that has been granted the desired access to a file on another server in the domain.

An asp page in the web attempts to open (or any other access) the remote file and fails.

Auditing is enabled on the remote system and for the file in question but no access denied records are being
recorded.

If the ASP is changed to access any file on the local server it works (regardless of location on the server).

Question: Why?

Is there a constraint that I am unaware of that precludes access to remote resources (via a redirector) through ASP? Or am I just missing something obvious?

Any suggestions on how to gather additional diagnostic info on this if it is possible?

TIA
Jul 19 '05 #1
4 4664
Plain text reply:

You're using a domain account for IIS, yes?
And the domain account has NTFS and share permissions to the resource, yes?
Is the IIS server able to resolve the servername?
When you log on to the IIS server as this account that you are using for IIS
and try to access the share via UNC, can you access it?
Are you getting an error?
How are you trying to access it?

Ray at work

"Rene' Nielsen" <rn******@radiantsystems.com> wrote in message
news:ON*************@TK2MSFTNGP10.phx.gbl...
Context:
Running Windows 2003 Server on an intranet.

A web is configured with an anonymous access account that is a domain
account that has been granted the desired access to a file on another server
in the domain.

An asp page in the web attempts to open (or any other access) the remote
file and fails.

Auditing is enabled on the remote system and for the file in question but no
access denied records are being
recorded.

If the ASP is changed to access any file on the local server it works
(regardless of location on the server).

Question: Why?

Is there a constraint that I am unaware of that precludes access to remote
resources (via a redirector) through ASP? Or am I just missing something
obvious?

Any suggestions on how to gather additional diagnostic info on this if it is
possible?

TIA
Jul 19 '05 #2
Thanks for your rapid reply.

Yes, I am using a domain account as the anonymous account for the web
hosting the ASP page.

Yes, the domain account has NTFS and share permissions to the remote
resource.

Yes, the IIS server is able to resolve the servername.

Yes, I can access the remote resource when logged onto the server hosting
IIS when I interactively use the domain account configured as the IIS web
anonymous account.

No, I am not receiving an error, at least not one I can find.

Here is a sample vbScript that has been tried on the ASP page that fails
silently:

If FSO.FileExists(\\remoteserver\sharename\firstfolde r\afile.XML) Then
Request.Write("exists")
Else
Request.Write("no-go")
End If

This code returns "no-go" in with the configuration described. Also, if I
map the remote share to a local drive letter the behavior persists (in the
above case the path becomes "Q:\firstfolder\afile.XML"). However if the
path is "C:\foo.xml" the code returns "exists" as desired.

================================================== ========================
"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:Op**************@tk2msftngp13.phx.gbl...
Plain text reply:

You're using a domain account for IIS, yes?
And the domain account has NTFS and share permissions to the resource, yes? Is the IIS server able to resolve the servername?
When you log on to the IIS server as this account that you are using for IIS and try to access the share via UNC, can you access it?
Are you getting an error?
How are you trying to access it?

Ray at work

"Rene' Nielsen" <rn******@radiantsystems.com> wrote in message
news:ON*************@TK2MSFTNGP10.phx.gbl...
Context:
Running Windows 2003 Server on an intranet.

A web is configured with an anonymous access account that is a domain
account that has been granted the desired access to a file on another server in the domain.

An asp page in the web attempts to open (or any other access) the remote
file and fails.

Auditing is enabled on the remote system and for the file in question but no access denied records are being
recorded.

If the ASP is changed to access any file on the local server it works
(regardless of location on the server).

Question: Why?

Is there a constraint that I am unaware of that precludes access to remote
resources (via a redirector) through ASP? Or am I just missing something obvious?

Any suggestions on how to gather additional diagnostic info on this if it is possible?

TIA

Jul 19 '05 #3

"Rene' Nielsen" <rn******@radiantsystems.com> wrote in message
news:eE**************@TK2MSFTNGP10.phx.gbl...


Here is a sample vbScript that has been tried on the ASP page that fails
silently:

If FSO.FileExists(\\remoteserver\sharename\firstfolde r\afile.XML) Then
Request.Write("exists")
Else
Request.Write("no-go")
End If

Do you have an On Error Resume Next?

Try doing this:

Set f = FSO.GetFile("\\remoteserver\sharename\firstfolder\ afile.xml")

If there's a permissions problem, you should receive an error.


This code returns "no-go" in with the configuration described. Also, if I map the remote share to a local drive letter the behavior persists (in the
above case the path becomes "Q:\firstfolder\afile.XML"). However if the
path is "C:\foo.xml" the code returns "exists" as desired.


I don't believe the drive mapping will work anyway, because although the
drive may map when you log in as this account that you're using for IIS, I
don't think that the user's shell environment is loaded with the IIS
service. But it doesn't matter much. The UNC path should work.

Also, try changing the IWAM account to that same account for the sake of
seeing if that's an issue.

Ray at work
Jul 19 '05 #4
>> and fails.

What does "fails" mean?

Remember that ASP by default runs under a *local* account called
IUSR_machinename, and that this user is *not* in the "Everyone" group on a
different server, unless you disable password synchronization, set the
password for the local IUSR account, and create an identical local account
on the machine that is hosting the file share. For more info and some KB
article links, see http://www.aspfaq.com/2168
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: ebobnar | last post by:
I've written a link aliasing script that allows users to rewrite urls on their web pages. The crux of the script is the following: if(getimagesize($redirect_to) == 0) header("Location:...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
2
by: Daniel | last post by:
when i use stream writer to write to a shared folder, and the network card of that remote computer is disabled in the middle of the write then reenabled later. every time i try to write to that...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
0
by: Winterminute | last post by:
I am trying to read a list of install programs using WMI with ASP.NET/C#. However, it fails with "Invalid Class". I have confirmed that if I query LOCALHOST then it works fine, but if I query a...
9
by: Ollie | last post by:
okay sorry for cross posting but want to see if any one can explain the solution to this problem for me: I have a .Net ASP.Net app written in C# that use COM+ components to do some business...
1
by: Thom Little | last post by:
I have a simple web service that requires no input and returns a character string. I created the service and FTPd it to a remote server. The .dll to the .bin directory and the single .asmx file...
3
by: Geoff McElhanon | last post by:
I have been struggling with a security issue that occurs under .NET 2.0, but does not occur under .NET 1.1. Essentially I am trying to open up a performance counter on a remote server and monitor...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.