Problems accessing files in ASP.NET using a UNC path

C

Chris Newby

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//
 
S

S. Justin Gengo

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
 
J

JIMCO Software

Chris said:
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.aspx?scid=KB;EN-US;810572

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

FrontPage add-ins for FrontPage 2000 - 2003
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top