Re: problems reading network file from ASP .NET
From: zxkuqyb (zxkuqyb_at_discussions.microsoft.com)
Date: 02/10/05
- Next message: arbabi_at_yahoo.com: "Re: Exporting to Excel via a Modal Dialog with <base target="_self"> in header"
- Previous message: Scott Allen: "Re: Asp vs ASPX pages in terms of security"
- In reply to: Steve C. Orr [MVP, MCSD]: "Re: problems reading network file from ASP .NET"
- Next in thread: Steve C. Orr [MVP, MCSD]: "Re: problems reading network file from ASP .NET"
- Reply: Steve C. Orr [MVP, MCSD]: "Re: problems reading network file from ASP .NET"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 10 Feb 2005 12:49:07 -0800
I am using impersonation, and exactly that seems to be the problem. If I set
identity impersonate to false, the files are read fine. Set to true, access
is denied. I went through and granted the approprite permissions to both the
IIS_WPG and the user accounts. Is there anything else that could be limiting
access?
"Steve C. Orr [MVP, MCSD]" wrote:
> The ASPNET user account that ASP.NET uses by default does not have network
> permissions. Either give the account such network permissions (likely with
> the help of your network administrator) or use impersonation to have it run
> under a different user account that does have such permissions.
> For testing purposes you can have it run under your personal user account.
> Here's more info:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconaspnetimpersonation.asp
>
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://SteveOrr.net
>
>
> "zxkuqyb" <zxkuqyb@discussions.microsoft.com> wrote in message
> news:C6DB0A87-8B02-4ED3-B5CE-360609D99E7A@microsoft.com...
> > I've written a simple ASP .NET web application that reads a text file and
> > displays it in the web browser. Works fine when reading a local path; but
> > fails with "can not find a part of the path", or "can not access network
> > file" when attemting to access a UNC network path. I am using IIS 6.0 on
> > Server 2003. SharePoint Portal Server is also installed on this server.
> > I
> > have granted full access to 'everyone' on the network file. An equivalent
> > .NET desktop application reads the file fine.
> >
> > This seems like a trival task. What am I missing?
>
>
>
- Next message: arbabi_at_yahoo.com: "Re: Exporting to Excel via a Modal Dialog with <base target="_self"> in header"
- Previous message: Scott Allen: "Re: Asp vs ASPX pages in terms of security"
- In reply to: Steve C. Orr [MVP, MCSD]: "Re: problems reading network file from ASP .NET"
- Next in thread: Steve C. Orr [MVP, MCSD]: "Re: problems reading network file from ASP .NET"
- Reply: Steve C. Orr [MVP, MCSD]: "Re: problems reading network file from ASP .NET"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|