Re: System.UnauthorizedAccessException - Using win forms application opening file - Urgent
- From: Dominick Baier <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 11 Sep 2006 11:08:01 +0000 (UTC)
hi,
a) make sure you *really* have access to that file
b) have a look at FileMon from www.sysinternals.com
---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com
I have some very simple code
FileStream fileStream = new
FileStream(@"K:\Development\Projects\POReport.asp", FileMode.Open);
Which throws an exception
Unhandled Exception: System.UnauthorizedAccessException: Access to the
path "K:\Development\Projects\POReport.asp" is denied
I could understand if this was an ASP.NET issue however as it's run
using the interactive account it's very strange.
Any ideas on how I can progress this issue e.g. are there tools I can
use to determine why were getting access to denied.
.
- Follow-Ups:
- References:
- Prev by Date: Re: What do FTP servers do when file send fails durring a file upload? Are partial files ever written? does ftp protocol cover this?
- Next by Date: System.UnauthorizedAccessException - Using win forms application opening file - Urgent
- Previous by thread: System.UnauthorizedAccessException - Using win forms application opening file - Urgent
- Next by thread: Re: System.UnauthorizedAccessException - Using win forms application opening file - Urgent
- Index(es):
Relevant Pages
|