File System Access

M

MichaelR

I have an ASP.NET application running on the 1.1 Framework on 2 servers just
fine. However, on one server (Windows Server 2003) I'm having a problem.

This particular line of code throws an exception when run through the Visual
Studio 2003 debugger:

objFileStream = New
FileStream(objHttpContext.Server.MapPath("/virdir1/subdir/mrConfig.dat"),
FileMode.Open)
The exception text is:

Access to the path "C:\Inetpub\wwwroot\virdir1\subdir\mrConfig.dat" is
denied."

I've checked file system security on the directory and on the file itself.
The user NETWORK SERVICE has full control over both. What else do I need to
do to enable access?



Thanks.
 

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top