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

Problems accessing files in ASP.NET using a UNC path

We are running Win2K / IIS5 in an Active Directory setup. We are running an
ASP.NET application that is configured to use Integrated Security (with
Anonymous and Basic turned off) and that has impersonation turned on in its
web config. Users of our application are logged into workstations on within
the same directory.

Our ASP.NET application at some point is trying to read a file that exists
on another server. If the application is accessed locally, that is to say
using a browser on the same machine as the web server, we have access to the
file no problem. If the application is accessed remotely, that is to say
using a browser on a machine in the same domain as the web server but not on
the same machine, we get an accessed denied error when trying to access the
file.

We have verified, so far as we can tell, that this is not a permission
problem. What else might we look into?

TIA//
Nov 19 '05 #1
2 1487
Chris,

I would create a virtual directory within the web site that points to the
network directory you want to access the file in. Then use a url to access
the file.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Chris Newby" <Ch*********@Rockcreekglobal.com> wrote in message
news:OO**************@TK2MSFTNGP09.phx.gbl...
We are running Win2K / IIS5 in an Active Directory setup. We are running
an ASP.NET application that is configured to use Integrated Security (with
Anonymous and Basic turned off) and that has impersonation turned on in
its web config. Users of our application are logged into workstations on
within the same directory.

Our ASP.NET application at some point is trying to read a file that exists
on another server. If the application is accessed locally, that is to say
using a browser on the same machine as the web server, we have access to
the file no problem. If the application is accessed remotely, that is to
say using a browser on a machine in the same domain as the web server but
not on the same machine, we get an accessed denied error when trying to
access the file.

We have verified, so far as we can tell, that this is not a permission
problem. What else might we look into?

TIA//

Nov 19 '05 #2
Chris Newby wrote:
We are running Win2K / IIS5 in an Active Directory setup. We are
running an ASP.NET application that is configured to use Integrated
Security (with Anonymous and Basic turned off) and that has
impersonation turned on in its web config. Users of our application
are logged into workstations on within the same directory.

Our ASP.NET application at some point is trying to read a file that
exists on another server. If the application is accessed locally,
that is to say using a browser on the same machine as the web server,
we have access to the file no problem. If the application is accessed
remotely, that is to say using a browser on a machine in the same
domain as the web server but not on the same machine, we get an
accessed denied error when trying to access the file.

We have verified, so far as we can tell, that this is not a permission
problem. What else might we look into?


This is caused by a delegation failure. In this scenario, you will need to
have Kerberos working.

http://support.microsoft.com/default...B;EN-US;810572

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

FrontPage add-ins for FrontPage 2000 - 2003


Nov 19 '05 #3

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

Similar topics

1
by: Brad Pears | last post by:
Our graphic designer is developing our new company website. We have switched providers and currently she is working on the new website which currently ressides on the new providers server as they...
36
by: Thomas | last post by:
after spending countless hours trying, i give up and hope to get some help in here. on server1 i got the web myweb.com with my test.asp. in the test.asp, i'm trying to read a file from an UNC...
3
by: dunleav1 | last post by:
I have an AMD Redhat 3.0 machine that is 64 bit. My kernel level is 2.4.21-21.0.1. I downloaded C58SBML.tar off of IBM's website. C58DBML.tar is listed as the 64 bit version of DB2 with the 2.4...
0
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or...
1
by: Bala | last post by:
Hi Currently I am displaying the list of files name on my datagrid. The files physcially stored on network machine call TestMachine, not in the webserver. r In grid the file path says...
5
by: Daniel Corbett | last post by:
I am trying to save a file dynamically created in a webpage. I get the following headers, but cannot figure out how to save the attachment. I am basically trying to replicate what internet...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
5
by: Khalique | last post by:
Hi everyone, I Hope that someone will be able to give me a hint to the solution to my problem. I have developed a web service (vb.net) that needs to access the folders / files and copy files to...
8
by: supasnail | last post by:
I have a happily working set of asp pages which read from the database via include file "./_private/include/database.mdb". However, when I try to gain access to this database on pages one folder...
34
by: Alexnb | last post by:
Gerhard Häring wrote: No, it didn't work, but it gave me some interesting feedback when I ran it in the shell. Heres what it told me: Traceback (most recent call last): File...
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?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
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...
0
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...

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.