473,581 Members | 2,757 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
<authenticati on
mode="Windows" />
<identity impersonate="tr ue" />

the dll code used to test file access is
Dim strTest As String
strTest = "User Name: " &
System.Security .Principal.Wind owsIdentity.Get Current.Name() & vbCrLf
strTest = strTest & "File Name: " & strZipFileName & vbCrLf
Dim ofile As File
strTest = strTest & "Exists: " &
ofile.Exists(st rZipFileName).T oString() & 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\ANONY MOUS LOGON
is login on to Sever 2 what happened to impersonation? What am I doing wrong?

Nov 19 '05 #1
2 2366
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****@discuss ions.microsoft. com> wrote in message
news:40******** *************** ***********@mic rosoft.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
<authenticati on
mode="Windows" />
<identity impersonate="tr ue" />

the dll code used to test file access is
Dim strTest As String
strTest = "User Name: " &
System.Security .Principal.Wind owsIdentity.Get Current.Name() & vbCrLf
strTest = strTest & "File Name: " & strZipFileName & vbCrLf
Dim ofile As File
strTest = strTest & "Exists: " &
ofile.Exists(st rZipFileName).T oString() & 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\ANONY MOUS
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
<authenticati on
mode="Windows" />
<identity impersonate="tr ue" />
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****@discuss ions.microsoft. com> wrote in message
news:40******** *************** ***********@mic rosoft.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
<authenticati on
mode="Windows" />
<identity impersonate="tr ue" />

the dll code used to test file access is
Dim strTest As String
strTest = "User Name: " &
System.Security .Principal.Wind owsIdentity.Get Current.Name() & vbCrLf
strTest = strTest & "File Name: " & strZipFileName & vbCrLf
Dim ofile As File
strTest = strTest & "Exists: " &
ofile.Exists(st rZipFileName).T oString() & 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\ANONY MOUS
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
4685
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 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...
9
1686
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 using an odbc connection on the workstation. We recently moved our database (and our web site) in-house. The new database is inside the firewall but...
9
3656
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 local webserver. I need to access the same database remotely through TCP/IP. There will be potentially many transactions coming from both the web...
14
9012
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 ..... So the PHP script does something on the server database, then when a linked table is viewed within access, the data changes have been made?
11
5540
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" + "\\root\\CIMV2:Win32_Process");
18
4332
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 get it to upload a file to the FTP server. I just get a "Cannot connect to remote server" error after this TRY: s = New...
6
4857
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 the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still...
7
4483
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
3472
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 to a directory called Services. When referenced from a webapplication running on localhost it operates correctly. When referenced from a...
0
7876
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8310
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
8180
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5681
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5366
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3809
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2307
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1409
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1144
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.