473,382 Members | 1,386 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,382 software developers and data experts.

can't access file on a remote file server

I have a problem that has been doggin me for 2 days now.

I have a web app that needs to access files on another server in the same
domain. but nothing that I have tried has allowed the web app access to the
files.

the system is set up as follows:

Server 2: Windows 2000 server contains report files needed by the webapp

Server 1: Window 2003 server
iis server with website
asp.net dll used to access files on server 2

web.config settings are
<authentication
mode="Windows" />
<identity impersonate="true" />

the dll code used to test file access is
Dim strTest As String
strTest = "User Name: " &
System.Security.Principal.WindowsIdentity.GetCurre nt.Name() & vbCrLf
strTest = strTest & "File Name: " & strZipFileName & vbCrLf
Dim ofile As File
strTest = strTest & "Exists: " &
ofile.Exists(strZipFileName).ToString() & vbCrLf
the output from the system is
User Name: <domain\user name>
File Name: \\uncpath\file.zip
Exists: False

but the file does exist and when I audit the logons on server 2 I am not
seeing attempts by <domain\user name>. instead NT AUTHORITY\ANONYMOUS LOGON
is login on to Sever 2 what happened to impersonation? What am I doing wrong?

Nov 19 '05 #1
2 2359
your configuration will not allow network access due to the 1 hop rule. you
will need to change to kerberos and enable creditial forwarding.

-- bruce (sqlwork.com)
"reycon" <re****@discussions.microsoft.com> wrote in message
news:40**********************************@microsof t.com...
I have a problem that has been doggin me for 2 days now.

I have a web app that needs to access files on another server in the same
domain. but nothing that I have tried has allowed the web app access to
the
files.

the system is set up as follows:

Server 2: Windows 2000 server contains report files needed by the webapp

Server 1: Window 2003 server
iis server with website
asp.net dll used to access files on server 2

web.config settings are
<authentication
mode="Windows" />
<identity impersonate="true" />

the dll code used to test file access is
Dim strTest As String
strTest = "User Name: " &
System.Security.Principal.WindowsIdentity.GetCurre nt.Name() & vbCrLf
strTest = strTest & "File Name: " & strZipFileName & vbCrLf
Dim ofile As File
strTest = strTest & "Exists: " &
ofile.Exists(strZipFileName).ToString() & vbCrLf
the output from the system is
User Name: <domain\user name>
File Name: \\uncpath\file.zip
Exists: False

but the file does exist and when I audit the logons on server 2 I am not
seeing attempts by <domain\user name>. instead NT AUTHORITY\ANONYMOUS
LOGON
is login on to Sever 2 what happened to impersonation? What am I doing
wrong?

Nov 19 '05 #2
thanks Bruce,

I don't have control over the domain controler and can't switch to kerberos.
I've also tried this configuration with no success.
web.config settings are
<authentication
mode="Windows" />
<identity impersonate="true" />
and then I granted read access to domain\server1$.
I can see that the server is being logged on and recognized through the
security audits. but it still can not read the files. Can you think of any
other way to get at remote files? FTP maybe?


"Bruce Barker" wrote:
your configuration will not allow network access due to the 1 hop rule. you
will need to change to kerberos and enable creditial forwarding.

-- bruce (sqlwork.com)
"reycon" <re****@discussions.microsoft.com> wrote in message
news:40**********************************@microsof t.com...
I have a problem that has been doggin me for 2 days now.

I have a web app that needs to access files on another server in the same
domain. but nothing that I have tried has allowed the web app access to
the
files.

the system is set up as follows:

Server 2: Windows 2000 server contains report files needed by the webapp

Server 1: Window 2003 server
iis server with website
asp.net dll used to access files on server 2

web.config settings are
<authentication
mode="Windows" />
<identity impersonate="true" />

the dll code used to test file access is
Dim strTest As String
strTest = "User Name: " &
System.Security.Principal.WindowsIdentity.GetCurre nt.Name() & vbCrLf
strTest = strTest & "File Name: " & strZipFileName & vbCrLf
Dim ofile As File
strTest = strTest & "Exists: " &
ofile.Exists(strZipFileName).ToString() & vbCrLf
the output from the system is
User Name: <domain\user name>
File Name: \\uncpath\file.zip
Exists: False

but the file does exist and when I audit the logons on server 2 I am not
seeing attempts by <domain\user name>. instead NT AUTHORITY\ANONYMOUS
LOGON
is login on to Sever 2 what happened to impersonation? What am I doing
wrong?


Nov 19 '05 #3

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

Similar topics

4
by: Rene' Nielsen | last post by:
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...
9
by: bcanavan | last post by:
Web server: win2003 server with iis6 DB: sql server 2000 I have 50+ remote offices running an Access 2002 app which connects directly to sql server at a 3rd party hosting company, in part...
9
by: Greg Gursky | last post by:
Hello: I'm doing some planning on a potential project with which I need some help. The database at the focus of this question is a MS Access database that is currently accessed by DAO from a...
14
by: jj | last post by:
Is it possible to call a remote php script from within Access? I'm thinking something like: DoCMD... http://www.domain.com/scripts/dataquery.php DoCmd.OpenQuery "update_data", acNormal, acEdit...
11
by: ricolee99 | last post by:
Hi everyone, I'm trying to invoke my .exe application from a remote server. Here is the code: ManagementClass processClass = new ManagementClass ("\\\\" +"RemoteServerName" +...
18
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
7
by: Ronald S. Cook | last post by:
In my .aspx page, I am trying to read file that is on a different on the company network. When I map a drive to it and call from within my .aspx page, I get this error:
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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:
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.