Re: problems reading network file from ASP .NET
From: Steve C. Orr [MVP, MCSD] (Steve_at_Orr.net)
Date: 02/09/05
- Next message: Oleg Ogurok: "Re: DropDownList Issue with Firefox"
- Previous message: Sandy: "Checkboxlist"
- In reply to: zxkuqyb: "problems reading network file from ASP .NET"
- Next in thread: zxkuqyb: "Re: problems reading network file from ASP .NET"
- Reply: zxkuqyb: "Re: problems reading network file from ASP .NET"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 9 Feb 2005 14:32:52 -0800
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: Oleg Ogurok: "Re: DropDownList Issue with Firefox"
- Previous message: Sandy: "Checkboxlist"
- In reply to: zxkuqyb: "problems reading network file from ASP .NET"
- Next in thread: zxkuqyb: "Re: problems reading network file from ASP .NET"
- Reply: zxkuqyb: "Re: problems reading network file from ASP .NET"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|